Lines Matching +full:4 +full:- +full:byte
31 /* ----------------------- System includes ----------------------------------*/
35 /* ----------------------- Platform includes --------------------------------*/
38 /* ----------------------- Modbus includes ----------------------------------*/
47 /* ----------------------- Defines ------------------------------------------*/
49 /* ----------------------- MBAP Header --------------------------------------*/
52 * <------------------------ MODBUS TCP/IP ADU(1) ------------------------->
53 * <----------- MODBUS PDU (1') ---------------->
54 * +-----------+---------------+------------------------------------------+
56 * +-----------+---------------+------------------------------------------+
58 * (2) (3) (4) (5) (6)
60 * (2) ... MB_TCP_TID = 0 (Transaction Identifier - 2 Byte)
61 * (3) ... MB_TCP_PID = 2 (Protocol Identifier - 2 Byte)
62 * (4) ... MB_TCP_LEN = 4 (Number of bytes - 2 Byte)
63 * (5) ... MB_TCP_UID = 6 (Unit Identifier - 1 Byte)
72 #define MB_TCP_LEN 4
79 /* ----------------------- Start implementation -----------------------------*/
120 *pusLength = usLength - MB_TCP_FUNC; in eMBTCPReceive()
140 UCHAR *pucMBTCPFrame = ( UCHAR * ) pucFrame - MB_TCP_FUNC; in eMBTCPSend()
146 * header includes the size of the Modbus PDU and the UID Byte. Therefore in eMBTCPSend()