Beispiel #1
0
STATIC void A12(void)                                              /* (Client only.) */
#endif /* KSTACK_MEMORY_MAPPING */
{
    KnxTLC_SetConnectionAddress(KnxTLC_GetSourceAddress()); /* connection_address=address from T_CONNECT_requ */

/*  send N_Data_Individual.req with T_CONNECT_REQ_PDU */
    (void)KnxMSG_ClearBuffer(KnxMSG_ScratchBufferPtr);
    T_Connect_Req(KnxMSG_ScratchBufferPtr, KnxADR_GetPhysAddr(), KnxTLC_GetConnectionAddress());

    KnxTLC_SetSequenceNumberSend((uint8)0);
    KnxTLC_SetSequenceNumberReceived((uint8)0);
    StartConnectionTimeoutTimer();
}
STATIC void A12(void)                                              /* (Client only.) */
#endif /* KSTACK_MEMORY_MAPPING */
{
#if 0

/*  send N_Data_Individual.req with T_CONNECT_REQ_PDU */
    (void)KnxMsg_ClearBuffer(KnxMsg_ScratchBufferPtr);
    T_Connect_Req(KnxMsg_ScratchBufferPtr, KnxTlc_GetSourceAddress(), /* KnxADR_GetPhysAddr(), */ KnxTlc_GetConnectionAddress());
#endif

    DBG_PRINTLN("A12()");

//    KnxTlc_SetConnectionAddress(KnxMsg_GetDestAddress(KnxMsg_ScratchBufferPtr)); /* connection_address=address from T_CONNECT_requ */

    KnxTlc_SetSequenceNumberSend((uint8_t)0);
    KnxTlc_SetSequenceNumberReceived((uint8_t)0);
    KnxTlc_StartConnectionTimeoutTimer();
}