Searched refs:eErrStatus (Results 1 – 5 of 5) sorted by relevance
92 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadCoils() local94 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqReadCoils()95 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqReadCoils()107 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqReadCoils()110 return eErrStatus; in eMBMasterReqReadCoils()198 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqWriteCoil() local200 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqWriteCoil()201 else if ( ( usCoilData != 0xFF00 ) && ( usCoilData != 0x0000 ) ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqWriteCoil()202 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqWriteCoil()214 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqWriteCoil()[all …]
104 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqWriteHoldingRegister() local106 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqWriteHoldingRegister()107 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqWriteHoldingRegister()119 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqWriteHoldingRegister()121 return eErrStatus; in eMBMasterReqWriteHoldingRegister()175 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqWriteMultipleHoldingRegister() local177 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqWriteMultipleHoldingRegister()178 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqWriteMultipleHoldingRegister()197 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqWriteMultipleHoldingRegister()199 return eErrStatus; in eMBMasterReqWriteMultipleHoldingRegister()[all …]
75 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadInputRegister() local77 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqReadInputRegister()78 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqReadInputRegister()90 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqReadInputRegister()92 return eErrStatus; in eMBMasterReqReadInputRegister()
76 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadDiscreteInputs() local78 if ( ucSndAddr > MB_MASTER_TOTAL_SLAVE_NUM ) eErrStatus = MB_MRE_ILL_ARG; in eMBMasterReqReadDiscreteInputs()79 else if ( xMBMasterRunResTake( lTimeOut ) == FALSE ) eErrStatus = MB_MRE_MASTER_BUSY; in eMBMasterReqReadDiscreteInputs()91 eErrStatus = eMBMasterWaitRequestFinish( ); in eMBMasterReqReadDiscreteInputs()93 return eErrStatus; in eMBMasterReqReadDiscreteInputs()
274 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterWaitRequestFinish() local291 eErrStatus = MB_MRE_NO_ERR; in eMBMasterWaitRequestFinish()293 eErrStatus = MB_MRE_TIMEDOUT; in eMBMasterWaitRequestFinish()295 eErrStatus = MB_MRE_REV_DATA; in eMBMasterWaitRequestFinish()297 eErrStatus = MB_MRE_EXE_FUN; in eMBMasterWaitRequestFinish()306 eErrStatus = MB_MRE_TIMEDOUT; in eMBMasterWaitRequestFinish()308 return eErrStatus; in eMBMasterWaitRequestFinish()