Searched refs:usCoilCount (Results 1 – 2 of 2) sorted by relevance
73 USHORT usCoilCount; in eMBFuncReadCoils() local86 usCoilCount = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_COILCNT_OFF] << 8 ); in eMBFuncReadCoils()87 usCoilCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_COILCNT_OFF + 1] ); in eMBFuncReadCoils()92 if( ( usCoilCount >= 1 ) && in eMBFuncReadCoils()93 ( usCoilCount < MB_PDU_FUNC_READ_COILCNT_MAX ) ) in eMBFuncReadCoils()105 if( ( usCoilCount & 0x0007 ) != 0 ) in eMBFuncReadCoils()107 ucNBytes = ( UCHAR )( usCoilCount / 8 + 1 ); in eMBFuncReadCoils()111 ucNBytes = ( UCHAR )( usCoilCount / 8 ); in eMBFuncReadCoils()117 eMBRegCoilsCB( pucFrameCur, usRegAddress, usCoilCount, in eMBFuncReadCoils()
118 USHORT usCoilCount; in eMBMasterFuncReadCoils() local136 usCoilCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF] << 8 ); in eMBMasterFuncReadCoils()137 usCoilCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF + 1] ); in eMBMasterFuncReadCoils()141 if( ( usCoilCount & 0x0007 ) != 0 ) in eMBMasterFuncReadCoils()143 ucByteCount = ( UCHAR )( usCoilCount / 8 + 1 ); in eMBMasterFuncReadCoils()147 ucByteCount = ( UCHAR )( usCoilCount / 8 ); in eMBMasterFuncReadCoils()153 if( ( usCoilCount >= 1 ) && in eMBMasterFuncReadCoils()157 …MasterRegCoilsCB( &pucFrame[MB_PDU_FUNC_READ_VALUES_OFF], usRegAddress, usCoilCount, MB_REG_READ ); in eMBMasterFuncReadCoils()