Searched refs:usRegCount (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.6.0/components/freemodbus/modbus/functions/ |
D | mbfuncholding.c | 114 USHORT usRegCount; in eMBFuncWriteMultipleHoldingRegister() local 126 usRegCount = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_MUL_REGCNT_OFF] << 8 ); in eMBFuncWriteMultipleHoldingRegister() 127 usRegCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_MUL_REGCNT_OFF + 1] ); in eMBFuncWriteMultipleHoldingRegister() 131 if( ( usRegCount >= 1 ) && in eMBFuncWriteMultipleHoldingRegister() 132 ( usRegCount <= MB_PDU_FUNC_WRITE_MUL_REGCNT_MAX ) && in eMBFuncWriteMultipleHoldingRegister() 133 ( ucRegByteCount == ( UCHAR ) ( 2 * usRegCount ) ) ) in eMBFuncWriteMultipleHoldingRegister() 138 usRegAddress, usRegCount, MB_REG_WRITE ); in eMBFuncWriteMultipleHoldingRegister() 174 USHORT usRegCount; in eMBFuncReadHoldingRegister() local 186 usRegCount = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF] << 8 ); in eMBFuncReadHoldingRegister() 187 usRegCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF + 1] ); in eMBFuncReadHoldingRegister() [all …]
|
D | mbfuncinput.c | 64 USHORT usRegCount; in eMBFuncReadInputRegister() local 76 usRegCount = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF] << 8 ); in eMBFuncReadInputRegister() 77 usRegCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF + 1] ); in eMBFuncReadInputRegister() 82 if( ( usRegCount >= 1 ) in eMBFuncReadInputRegister() 83 && ( usRegCount < MB_PDU_FUNC_READ_REGCNT_MAX ) ) in eMBFuncReadInputRegister() 94 *pucFrameCur++ = ( UCHAR )( usRegCount * 2 ); in eMBFuncReadInputRegister() 98 eMBRegInputCB( pucFrameCur, usRegAddress, usRegCount ); in eMBFuncReadInputRegister() 107 *usLen += usRegCount * 2; in eMBFuncReadInputRegister()
|
D | mbfuncinput_m.c | 100 USHORT usRegCount; in eMBMasterFuncReadInputRegister() local 117 usRegCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF] << 8 ); in eMBMasterFuncReadInputRegister() 118 usRegCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF + 1] ); in eMBMasterFuncReadInputRegister() 123 if( ( usRegCount >= 1 ) && ( 2 * usRegCount == pucFrame[MB_PDU_FUNC_READ_BYTECNT_OFF] ) ) in eMBMasterFuncReadInputRegister() 126 …egStatus = eMBMasterRegInputCB( &pucFrame[MB_PDU_FUNC_READ_VALUES_OFF], usRegAddress, usRegCount ); in eMBMasterFuncReadInputRegister()
|
D | mbfuncholding_m.c | 207 USHORT usRegCount; in eMBMasterFuncWriteMultipleHoldingRegister() local 221 usRegCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_WRITE_MUL_REGCNT_OFF] << 8 ); in eMBMasterFuncWriteMultipleHoldingRegister() 222 usRegCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_WRITE_MUL_REGCNT_OFF + 1] ); in eMBMasterFuncWriteMultipleHoldingRegister() 226 if( ucRegByteCount == 2 * usRegCount ) in eMBMasterFuncWriteMultipleHoldingRegister() 230 usRegAddress, usRegCount, MB_REG_WRITE ); in eMBMasterFuncWriteMultipleHoldingRegister() 293 USHORT usRegCount; in eMBMasterFuncReadHoldingRegister() local 310 usRegCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF] << 8 ); in eMBMasterFuncReadHoldingRegister() 311 usRegCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF + 1] ); in eMBMasterFuncReadHoldingRegister() 316 if( ( usRegCount >= 1 ) && ( 2 * usRegCount == pucFrame[MB_PDU_FUNC_READ_BYTECNT_OFF] ) ) in eMBMasterFuncReadHoldingRegister() 319 …asterRegHoldingCB( &pucFrame[MB_PDU_FUNC_READ_VALUES_OFF], usRegAddress, usRegCount, MB_REG_READ ); in eMBMasterFuncReadHoldingRegister()
|