Home
last modified time | relevance | path

Searched refs:eErrStatus (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/modbus/functions/
Dmbfunccoils_m.c92 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadCoils() local
94 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() local
200 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 …]
Dmbfuncholding_m.c104 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqWriteHoldingRegister() local
106 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() local
177 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 …]
Dmbfuncinput_m.c75 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadInputRegister() local
77 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()
Dmbfuncdisc_m.c76 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterReqReadDiscreteInputs() local
78 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()
/hal_espressif-3.6.0/components/freemodbus/port/
Dportevent_m.c274 eMBMasterReqErrCode eErrStatus = MB_MRE_NO_ERR; in eMBMasterWaitRequestFinish() local
291 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()