/hal_espressif-3.4.0/components/freemodbus/modbus/ |
D | mb.c | 133 eMBErrorCode eStatus = MB_ENOERR; in eMBInit() local 139 eStatus = MB_EINVAL; in eMBInit() 158 eStatus = eMBRTUInit( ucMBAddress, ucPort, ulBaudRate, eParity ); in eMBInit() 172 eStatus = eMBASCIIInit( ucMBAddress, ucPort, ulBaudRate, eParity ); in eMBInit() 176 eStatus = MB_EINVAL; in eMBInit() 179 if( eStatus == MB_ENOERR ) in eMBInit() 184 eStatus = MB_EPORTERR; in eMBInit() 193 return eStatus; in eMBInit() 200 eMBErrorCode eStatus = MB_ENOERR; in eMBTCPInit() local 202 if( ( eStatus = eMBTCPDoInit( ucTCPPort ) ) != MB_ENOERR ) in eMBTCPInit() [all …]
|
D | mb_m.c | 152 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterTCPInit() local 154 if( ( eStatus = eMBMasterTCPDoInit( ucTCPPort ) ) != MB_ENOERR ) { in eMBMasterTCPInit() 159 eStatus = MB_EPORTERR; in eMBMasterTCPInit() 175 eStatus = MB_EPORTERR; in eMBMasterTCPInit() 179 return eStatus; in eMBMasterTCPInit() 186 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterSerialInit() local 202 eStatus = eMBMasterRTUInit(ucPort, ulBaudRate, eParity); in eMBMasterSerialInit() 217 eStatus = eMBMasterASCIIInit(ucPort, ulBaudRate, eParity ); in eMBMasterSerialInit() 221 eStatus = MB_EINVAL; in eMBMasterSerialInit() 225 if (eStatus == MB_ENOERR) in eMBMasterSerialInit() [all …]
|
/hal_espressif-3.4.0/components/freemodbus/modbus/functions/ |
D | mbfuncholding.c | 81 eMBException eStatus = MB_EX_NONE; in eMBFuncWriteHoldingRegister() local 97 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncWriteHoldingRegister() 103 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncWriteHoldingRegister() 105 return eStatus; in eMBFuncWriteHoldingRegister() 117 eMBException eStatus = MB_EX_NONE; in eMBFuncWriteMultipleHoldingRegister() local 143 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncWriteMultipleHoldingRegister() 156 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncWriteMultipleHoldingRegister() 162 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncWriteMultipleHoldingRegister() 164 return eStatus; in eMBFuncWriteMultipleHoldingRegister() 177 eMBException eStatus = MB_EX_NONE; in eMBFuncReadHoldingRegister() local [all …]
|
D | mbfunccoils.c | 77 eMBException eStatus = MB_EX_NONE; in eMBFuncReadCoils() local 123 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncReadCoils() 135 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadCoils() 142 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadCoils() 144 return eStatus; in eMBFuncReadCoils() 154 eMBException eStatus = MB_EX_NONE; in eMBFuncWriteCoil() local 182 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncWriteCoil() 187 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncWriteCoil() 194 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncWriteCoil() 196 return eStatus; in eMBFuncWriteCoil() [all …]
|
D | mbfuncholding_m.c | 128 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncWriteHoldingRegister() local 144 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncWriteHoldingRegister() 150 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncWriteHoldingRegister() 152 return eStatus; in eMBMasterFuncWriteHoldingRegister() 210 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncWriteMultipleHoldingRegister() local 235 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncWriteMultipleHoldingRegister() 240 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncWriteMultipleHoldingRegister() 246 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncWriteMultipleHoldingRegister() 248 return eStatus; in eMBMasterFuncWriteMultipleHoldingRegister() 295 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncReadHoldingRegister() local [all …]
|
D | mbfunccoils_m.c | 121 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncReadCoils() local 127 eStatus = MB_EX_NONE; in eMBMasterFuncReadCoils() 162 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncReadCoils() 167 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadCoils() 174 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadCoils() 176 return eStatus; in eMBMasterFuncReadCoils() 225 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncWriteCoil() local 253 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncWriteCoil() 258 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncWriteCoil() 265 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncWriteCoil() [all …]
|
D | mbfuncinput_m.c | 102 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncReadInputRegister() local 108 eStatus = MB_EX_NONE; in eMBMasterFuncReadInputRegister() 130 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncReadInputRegister() 135 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadInputRegister() 141 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadInputRegister() 143 return eStatus; in eMBMasterFuncReadInputRegister()
|
D | mbutils.c | 119 eMBException eStatus; in prveMBError2Exception() local 124 eStatus = MB_EX_NONE; in prveMBError2Exception() 128 eStatus = MB_EX_ILLEGAL_DATA_ADDRESS; in prveMBError2Exception() 132 eStatus = MB_EX_SLAVE_BUSY; in prveMBError2Exception() 136 eStatus = MB_EX_SLAVE_DEVICE_FAILURE; in prveMBError2Exception() 140 return eStatus; in prveMBError2Exception()
|
D | mbfuncdisc_m.c | 104 eMBException eStatus = MB_EX_NONE; in eMBMasterFuncReadDiscreteInputs() local 110 eStatus = MB_EX_NONE; in eMBMasterFuncReadDiscreteInputs() 144 eStatus = prveMBError2Exception( eRegStatus ); in eMBMasterFuncReadDiscreteInputs() 149 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadDiscreteInputs() 156 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBMasterFuncReadDiscreteInputs() 158 return eStatus; in eMBMasterFuncReadDiscreteInputs()
|
D | mbfuncinput.c | 67 eMBException eStatus = MB_EX_NONE; in eMBFuncReadInputRegister() local 103 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncReadInputRegister() 112 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadInputRegister() 119 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadInputRegister() 121 return eStatus; in eMBFuncReadInputRegister()
|
D | mbfuncdisc.c | 72 eMBException eStatus = MB_EX_NONE; in eMBFuncReadDiscreteInputs() local 117 eStatus = prveMBError2Exception( eRegStatus ); in eMBFuncReadDiscreteInputs() 129 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadDiscreteInputs() 136 eStatus = MB_EX_ILLEGAL_DATA_VALUE; in eMBFuncReadDiscreteInputs() 138 return eStatus; in eMBFuncReadDiscreteInputs()
|
D | mbfuncother.c | 58 eMBErrorCode eStatus = MB_ENOERR; in eMBSetSlaveID() local 77 eStatus = MB_ENORES; in eMBSetSlaveID() 79 return eStatus; in eMBSetSlaveID()
|
/hal_espressif-3.4.0/components/freemodbus/modbus/tcp/ |
D | mbtcp.c | 77 eMBErrorCode eStatus = MB_ENOERR; in eMBTCPDoInit() local 81 eStatus = MB_EPORTERR; in eMBTCPDoInit() 83 return eStatus; in eMBTCPDoInit() 104 eMBErrorCode eStatus = MB_EIO; in eMBTCPReceive() local 118 eStatus = MB_ENOERR; in eMBTCPReceive() 128 eStatus = MB_EIO; in eMBTCPReceive() 130 return eStatus; in eMBTCPReceive() 136 eMBErrorCode eStatus = MB_ENOERR; in eMBTCPSend() local 150 eStatus = MB_EIO; in eMBTCPSend() 152 return eStatus; in eMBTCPSend()
|
D | mbtcp_m.c | 77 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterTCPDoInit() local 81 eStatus = MB_EPORTERR; in eMBMasterTCPDoInit() 83 return eStatus; in eMBMasterTCPDoInit() 103 eMBErrorCode eStatus = MB_EIO; in eMBMasterTCPReceive() local 117 eStatus = MB_ENOERR; in eMBMasterTCPReceive() 127 eStatus = MB_EIO; in eMBMasterTCPReceive() 129 return eStatus; in eMBMasterTCPReceive() 135 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterTCPSend() local 149 eStatus = MB_EIO; in eMBMasterTCPSend() 151 return eStatus; in eMBMasterTCPSend()
|
/hal_espressif-3.4.0/components/freemodbus/modbus/rtu/ |
D | mbrtu.c | 80 eMBErrorCode eStatus = MB_ENOERR; in eMBRTUInit() local 89 eStatus = MB_EPORTERR; in eMBRTUInit() 114 eStatus = MB_EPORTERR; in eMBRTUInit() 119 return eStatus; in eMBRTUInit() 150 eMBErrorCode eStatus = MB_ENOERR; in eMBRTUReceive() local 174 eStatus = MB_EIO; in eMBRTUReceive() 178 return eStatus; in eMBRTUReceive() 184 eMBErrorCode eStatus = MB_ENOERR; in eMBRTUSend() local 214 eStatus = MB_EIO; in eMBRTUSend() 217 return eStatus; in eMBRTUSend()
|
D | mbrtu_m.c | 87 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterRTUInit() local 95 eStatus = MB_EPORTERR; in eMBMasterRTUInit() 120 eStatus = MB_EPORTERR; in eMBMasterRTUInit() 125 return eStatus; in eMBMasterRTUInit() 156 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterRTUReceive() local 180 eStatus = MB_EIO; in eMBMasterRTUReceive() 184 return eStatus; in eMBMasterRTUReceive() 190 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterRTUSend() local 223 eStatus = MB_EIO; in eMBMasterRTUSend() 226 return eStatus; in eMBMasterRTUSend()
|
/hal_espressif-3.4.0/components/freemodbus/modbus/ascii/ |
D | mbascii.c | 102 eMBErrorCode eStatus = MB_ENOERR; in eMBASCIIInit() local 110 eStatus = MB_EPORTERR; in eMBASCIIInit() 114 eStatus = MB_EPORTERR; in eMBASCIIInit() 119 return eStatus; in eMBASCIIInit() 146 eMBErrorCode eStatus = MB_ENOERR; in eMBASCIIReceive() local 170 eStatus = MB_EIO; in eMBASCIIReceive() 173 return eStatus; in eMBASCIIReceive() 179 eMBErrorCode eStatus = MB_ENOERR; in eMBASCIISend() local 207 eStatus = MB_EIO; in eMBASCIISend() 210 return eStatus; in eMBASCIISend()
|
D | mbascii_m.c | 110 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterASCIIInit() local 117 eStatus = MB_EPORTERR; in eMBMasterASCIIInit() 121 eStatus = MB_EPORTERR; in eMBMasterASCIIInit() 126 return eStatus; in eMBMasterASCIIInit() 151 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterASCIIReceive() local 175 eStatus = MB_EIO; in eMBMasterASCIIReceive() 178 return eStatus; in eMBMasterASCIIReceive() 184 eMBErrorCode eStatus = MB_ENOERR; in eMBMasterASCIISend() local 214 eStatus = MB_EIO; in eMBMasterASCIISend() 217 return eStatus; in eMBMasterASCIISend()
|
/hal_espressif-3.4.0/components/freemodbus/serial_master/modbus_controller/ |
D | mbc_serial_master.c | 482 eMBErrorCode eStatus = MB_ENOERR; in eMBRegInputCBSerialMaster() local 492 eStatus = MB_ENOREG; in eMBRegInputCBSerialMaster() 494 return eStatus; in eMBRegInputCBSerialMaster() 520 eMBErrorCode eStatus = MB_ENOERR; in eMBRegHoldingCBSerialMaster() local 542 eStatus = MB_ENOREG; in eMBRegHoldingCBSerialMaster() 544 return eStatus; in eMBRegHoldingCBSerialMaster() 568 eMBErrorCode eStatus = MB_ENOERR; in eMBRegCoilsCBSerialMaster() local 596 eStatus = MB_ENOREG; in eMBRegCoilsCBSerialMaster() 598 return eStatus; in eMBRegCoilsCBSerialMaster() 621 eMBErrorCode eStatus = MB_ENOERR; in eMBRegDiscreteCBSerialMaster() local [all …]
|
/hal_espressif-3.4.0/components/freemodbus/tcp_master/modbus_controller/ |
D | mbc_tcp_master.c | 597 eMBErrorCode eStatus = MB_ENOERR; in eMBRegInputCBTcpMaster() local 607 eStatus = MB_ENOREG; in eMBRegInputCBTcpMaster() 609 return eStatus; in eMBRegInputCBTcpMaster() 632 eMBErrorCode eStatus = MB_ENOERR; in eMBRegHoldingCBTcpMaster() local 658 eStatus = MB_ENOREG; in eMBRegHoldingCBTcpMaster() 660 return eStatus; in eMBRegHoldingCBTcpMaster() 682 eMBErrorCode eStatus = MB_ENOERR; in eMBRegCoilsCBTcpMaster() local 710 eStatus = MB_ENOREG; in eMBRegCoilsCBTcpMaster() 712 return eStatus; in eMBRegCoilsCBTcpMaster() 733 eMBErrorCode eStatus = MB_ENOERR; in eMBRegDiscreteCBTcpMaster() local [all …]
|