Home
last modified time | relevance | path

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

/hal_espressif-3.5.0/components/freemodbus/modbus/functions/
Dmbfuncholding.c78 eMBFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteHoldingRegister() argument
84 if( *usLen == ( MB_PDU_FUNC_WRITE_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncWriteHoldingRegister()
111 eMBFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteMultipleHoldingRegister() argument
120 if( *usLen >= ( MB_PDU_FUNC_WRITE_MUL_SIZE_MIN + MB_PDU_SIZE_MIN ) ) in eMBFuncWriteMultipleHoldingRegister()
151 *usLen = MB_PDU_FUNC_WRITE_MUL_BYTECNT_OFF; in eMBFuncWriteMultipleHoldingRegister()
171 eMBFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadHoldingRegister() argument
180 if( *usLen == ( MB_PDU_FUNC_READ_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncReadHoldingRegister()
196 *usLen = MB_PDU_FUNC_OFF; in eMBFuncReadHoldingRegister()
200 *usLen += 1; in eMBFuncReadHoldingRegister()
204 *usLen += 1; in eMBFuncReadHoldingRegister()
[all …]
Dmbfunccoils.c70 eMBFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadCoils() argument
80 if( *usLen == ( MB_PDU_FUNC_READ_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncReadCoils()
97 *usLen = MB_PDU_FUNC_OFF; in eMBFuncReadCoils()
101 *usLen += 1; in eMBFuncReadCoils()
114 *usLen += 1; in eMBFuncReadCoils()
130 *usLen += ucNBytes;; in eMBFuncReadCoils()
149 eMBFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteCoil() argument
157 if( *usLen == ( MB_PDU_FUNC_WRITE_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncWriteCoil()
203 eMBFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteMultipleCoils() argument
213 if( *usLen > ( MB_PDU_FUNC_WRITE_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncWriteMultipleCoils()
[all …]
Dmbfuncinput.c61 eMBFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadInputRegister() argument
70 if( *usLen == ( MB_PDU_FUNC_READ_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncReadInputRegister()
87 *usLen = MB_PDU_FUNC_OFF; in eMBFuncReadInputRegister()
91 *usLen += 1; in eMBFuncReadInputRegister()
95 *usLen += 1; in eMBFuncReadInputRegister()
107 *usLen += usRegCount * 2; in eMBFuncReadInputRegister()
Dmbfuncdisc.c65 eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadDiscreteInputs() argument
75 if( *usLen == ( MB_PDU_FUNC_READ_SIZE + MB_PDU_SIZE_MIN ) ) in eMBFuncReadDiscreteInputs()
92 *usLen = MB_PDU_FUNC_OFF; in eMBFuncReadDiscreteInputs()
96 *usLen += 1; in eMBFuncReadDiscreteInputs()
109 *usLen += 1; in eMBFuncReadDiscreteInputs()
124 *usLen += ucNBytes;; in eMBFuncReadDiscreteInputs()
Dmbfuncholding_m.c125 eMBMasterFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteHoldingRegister() argument
131 if( *usLen == ( MB_PDU_SIZE_MIN + MB_PDU_FUNC_WRITE_SIZE ) ) in eMBMasterFuncWriteHoldingRegister()
203 eMBMasterFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteMultipleHoldingRegister() argument
214 … if( ( *usLen == MB_PDU_SIZE_MIN + MB_PDU_FUNC_WRITE_MUL_SIZE ) || xMBMasterRequestIsBroadcast() ) in eMBMasterFuncWriteMultipleHoldingRegister()
289 eMBMasterFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadHoldingRegister() argument
303 else if( *usLen >= MB_PDU_SIZE_MIN + MB_PDU_FUNC_READ_SIZE_MIN ) in eMBMasterFuncReadHoldingRegister()
395 eMBMasterFuncReadWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadWriteMultipleHoldingRegister() argument
411 else if( *usLen >= MB_PDU_SIZE_MIN + MB_PDU_FUNC_READWRITE_SIZE_MIN ) in eMBMasterFuncReadWriteMultipleHoldingRegister()
Dmbfunccoils_m.c114 eMBMasterFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadCoils() argument
129 else if ( *usLen >= MB_PDU_SIZE_MIN + MB_PDU_FUNC_READ_SIZE_MIN ) in eMBMasterFuncReadCoils()
220 eMBMasterFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteCoil() argument
228 if( *usLen == ( MB_PDU_FUNC_WRITE_SIZE + MB_PDU_SIZE_MIN ) ) in eMBMasterFuncWriteCoil()
330 eMBMasterFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteMultipleCoils() argument
342 if( ( *usLen == MB_PDU_FUNC_WRITE_MUL_SIZE ) || xMBMasterRequestIsBroadcast() ) in eMBMasterFuncWriteMultipleCoils()
Dmbfuncother.c83 eMBFuncReportSlaveID( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReportSlaveID() argument
86 *usLen = ( USHORT )( MB_PDU_DATA_OFF + usMBSlaveIDLen ); in eMBFuncReportSlaveID()
Dmbfuncinput_m.c96 eMBMasterFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadInputRegister() argument
110 else if( *usLen >= MB_PDU_SIZE_MIN + MB_PDU_FUNC_READ_SIZE_MIN ) in eMBMasterFuncReadInputRegister()
Dmbfuncdisc_m.c97 eMBMasterFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadDiscreteInputs() argument
112 else if( *usLen >= MB_PDU_SIZE_MIN + MB_PDU_FUNC_READ_SIZE_MIN ) in eMBMasterFuncReadDiscreteInputs()
/hal_espressif-3.5.0/components/freemodbus/modbus/include/
Dmbfunc.h38 eMBException eMBFuncReportSlaveID( UCHAR * pucFrame, USHORT * usLen );
42 eMBException eMBFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen );
46 eMBException eMBFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
50 eMBException eMBFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
54 eMBException eMBFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
58 eMBException eMBFuncReadCoils( UCHAR * pucFrame, USHORT * usLen );
62 eMBException eMBFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen );
66 eMBException eMBFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen );
70 eMBException eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen );
74 eMBException eMBFuncReadWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
Dmb_m.h367 eMBMasterFuncReportSlaveID( UCHAR * pucFrame, USHORT * usLen );
369 eMBMasterFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen );
371 eMBMasterFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
373 eMBMasterFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
375 eMBMasterFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
377 eMBMasterFuncReadCoils( UCHAR * pucFrame, USHORT * usLen );
379 eMBMasterFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen );
381 eMBMasterFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen );
383 eMBMasterFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen );
385 eMBMasterFuncReadWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
/hal_espressif-3.5.0/components/freemodbus/modbus/rtu/
Dmbcrc.c88 usMBCRC16( UCHAR * pucFrame, USHORT usLen ) in usMBCRC16() argument
94 while( usLen-- ) in usMBCRC16()
Dmbcrc.h34 USHORT usMBCRC16( UCHAR * pucFrame, USHORT usLen );
/hal_espressif-3.5.0/components/freemodbus/modbus/ascii/
Dmbascii.c81 static UCHAR prvucMBLRC( UCHAR * pucFrame, USHORT usLen );
459 prvucMBLRC( UCHAR * pucFrame, USHORT usLen ) in prvucMBLRC() argument
463 while( usLen-- ) in prvucMBLRC()
Dmbascii_m.c88 static UCHAR prvucMBLRC( UCHAR * pucFrame, USHORT usLen );
559 prvucMBLRC( UCHAR * pucFrame, USHORT usLen ) in prvucMBLRC() argument
563 while( usLen-- ) in prvucMBLRC()