Home
last modified time | relevance | path

Searched refs:usMBSlaveIDLen (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/modbus/functions/
Dmbfuncother.c50 static USHORT usMBSlaveIDLen; variable
65 usMBSlaveIDLen = 0; in eMBSetSlaveID()
66 ucMBSlaveID[usMBSlaveIDLen++] = ucSlaveID; in eMBSetSlaveID()
67 ucMBSlaveID[usMBSlaveIDLen++] = ( UCHAR )( xIsRunning ? 0xFF : 0x00 ); in eMBSetSlaveID()
70 memcpy( &ucMBSlaveID[usMBSlaveIDLen], pucAdditional, in eMBSetSlaveID()
72 usMBSlaveIDLen += usAdditionalLen; in eMBSetSlaveID()
85 memcpy( &pucFrame[MB_PDU_DATA_OFF], &ucMBSlaveID[0], ( size_t )usMBSlaveIDLen ); in eMBFuncReportSlaveID()
86 *usLen = ( USHORT )( MB_PDU_DATA_OFF + usMBSlaveIDLen ); in eMBFuncReportSlaveID()