Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/freemodbus/modbus/functions/
Dmbfuncholding.c239 USHORT usRegReadCount; in eMBFuncReadWriteMultipleHoldingRegister() local
254 usRegReadCount = ( USHORT )( pucFrame[MB_PDU_FUNC_READWRITE_READ_REGCNT_OFF] << 8U ); in eMBFuncReadWriteMultipleHoldingRegister()
255 usRegReadCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_READWRITE_READ_REGCNT_OFF + 1] ); in eMBFuncReadWriteMultipleHoldingRegister()
266 if( ( usRegReadCount >= 1 ) && ( usRegReadCount <= 0x7D ) && in eMBFuncReadWriteMultipleHoldingRegister()
285 *pucFrameCur++ = ( UCHAR ) ( usRegReadCount * 2 ); in eMBFuncReadWriteMultipleHoldingRegister()
290 eMBRegHoldingCB( pucFrameCur, usRegReadAddress, usRegReadCount, MB_REG_READ ); in eMBFuncReadWriteMultipleHoldingRegister()
293 *usLen += 2 * usRegReadCount; in eMBFuncReadWriteMultipleHoldingRegister()
Dmbfuncholding_m.c398 USHORT usRegReadCount; in eMBMasterFuncReadWriteMultipleHoldingRegister() local
418 usRegReadCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READWRITE_READ_REGCNT_OFF] << 8U ); in eMBMasterFuncReadWriteMultipleHoldingRegister()
419 usRegReadCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READWRITE_READ_REGCNT_OFF + 1] ); in eMBMasterFuncReadWriteMultipleHoldingRegister()
428 if( ( 2 * usRegReadCount ) == pucFrame[MB_PDU_FUNC_READWRITE_READ_BYTECNT_OFF] ) in eMBMasterFuncReadWriteMultipleHoldingRegister()
438 usRegReadAddress, usRegReadCount, MB_REG_READ); in eMBMasterFuncReadWriteMultipleHoldingRegister()