/hal_espressif-3.4.0/components/freemodbus/modbus/include/ |
D | mb_m.h | 140 eMBErrorCode eMBMasterTCPInit( USHORT usTCPPort ); 256 eMBErrorCode eMBMasterRegInputCB( UCHAR * pucRegBuffer, USHORT usAddress, 257 USHORT usNRegs ); 285 eMBErrorCode eMBMasterRegHoldingCB( UCHAR * pucRegBuffer, USHORT usAddress, 286 USHORT usNRegs, eMBRegisterMode eMode ); 314 eMBErrorCode eMBMasterRegCoilsCB( UCHAR * pucRegBuffer, USHORT usAddress, 315 USHORT usNCoils, eMBRegisterMode eMode ); 337 eMBErrorCode eMBMasterRegDiscreteCB( UCHAR * pucRegBuffer, USHORT usAddress, 338 USHORT usNDiscrete ); 344 eMBMasterReqReadInputRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut ); [all …]
|
D | mbfunc.h | 38 eMBException eMBFuncReportSlaveID( UCHAR * pucFrame, USHORT * usLen ); 42 eMBException eMBFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ); 46 eMBException eMBFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); 50 eMBException eMBFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); 54 eMBException eMBFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); 58 eMBException eMBFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ); 62 eMBException eMBFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ); 66 eMBException eMBFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen ); 70 eMBException eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ); 74 eMBException eMBFuncReadWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen );
|
D | mb.h | 168 eMBErrorCode eMBTCPInit( USHORT usTCPPort ); 243 USHORT usAdditionalLen ); 312 eMBErrorCode eMBRegInputCB( UCHAR * pucRegBuffer, USHORT usAddress, 313 USHORT usNRegs ); 347 eMBErrorCode eMBRegHoldingCB( UCHAR * pucRegBuffer, USHORT usAddress, 348 USHORT usNRegs, eMBRegisterMode eMode ); 382 eMBErrorCode eMBRegCoilsCB( UCHAR * pucRegBuffer, USHORT usAddress, 383 USHORT usNCoils, eMBRegisterMode eMode ); 411 eMBErrorCode eMBRegDiscreteCB( UCHAR * pucRegBuffer, USHORT usAddress, 412 USHORT usNDiscrete );
|
D | mbport.h | 157 BOOL xMBPortTimersInit( USHORT usTimeOut50us ); 165 void vMBPortTimersDelay( USHORT usTimeOutMS ); 168 BOOL xMBMasterPortTimersInit( USHORT usTimeOut50us ); 183 USHORT ucPDULength ); 186 USHORT ucPDULength ); 189 USHORT ucPDULength ); 221 BOOL xMBTCPPortInit( USHORT usTCPPort ); 229 BOOL xMBTCPPortGetRequest( UCHAR **ppucMBTCPFrame, USHORT * usTCPLength ); 231 BOOL xMBTCPPortSendResponse( UCHAR *pucMBTCPFrame, USHORT usTCPLength ); 236 BOOL xMBMasterTCPPortInit( USHORT usTCPPort ); [all …]
|
/hal_espressif-3.4.0/components/freemodbus/modbus/functions/ |
D | mbfuncholding_m.c | 101 eMBMasterReqWriteHoldingRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usRegData, LONG lTimeOu… in eMBMasterReqWriteHoldingRegister() 125 eMBMasterFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteHoldingRegister() 127 USHORT usRegAddress; in eMBMasterFuncWriteHoldingRegister() 133 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_ADDR_OFF] << 8 ); in eMBMasterFuncWriteHoldingRegister() 134 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_ADDR_OFF + 1] ); in eMBMasterFuncWriteHoldingRegister() 171 USHORT usRegAddr, USHORT usNRegs, USHORT * pusDataBuffer, LONG lTimeOut ) in eMBMasterReqWriteMultipleHoldingRegister() 174 USHORT usRegIndex = 0; in eMBMasterReqWriteMultipleHoldingRegister() 203 eMBMasterFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteMultipleHoldingRegister() 206 USHORT usRegAddress; in eMBMasterFuncWriteMultipleHoldingRegister() 207 USHORT usRegCount; in eMBMasterFuncWriteMultipleHoldingRegister() [all …]
|
D | mbfuncholding.c | 78 eMBFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteHoldingRegister() 80 USHORT usRegAddress; in eMBFuncWriteHoldingRegister() 86 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_ADDR_OFF] << 8 ); in eMBFuncWriteHoldingRegister() 87 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_ADDR_OFF + 1] ); in eMBFuncWriteHoldingRegister() 111 eMBFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteMultipleHoldingRegister() 113 USHORT usRegAddress; in eMBFuncWriteMultipleHoldingRegister() 114 USHORT usRegCount; in eMBFuncWriteMultipleHoldingRegister() 122 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_MUL_ADDR_OFF] << 8 ); in eMBFuncWriteMultipleHoldingRegister() 123 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_MUL_ADDR_OFF + 1] ); in eMBFuncWriteMultipleHoldingRegister() 126 usRegCount = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_MUL_REGCNT_OFF] << 8 ); in eMBFuncWriteMultipleHoldingRegister() [all …]
|
D | mbutils.c | 47 xMBUtilSetBits( UCHAR * ucByteBuf, USHORT usBitOffset, UCHAR ucNBits, in xMBUtilSetBits() 50 USHORT usWordBuf; in xMBUtilSetBits() 51 USHORT usMask; in xMBUtilSetBits() 52 USHORT usByteOffset; in xMBUtilSetBits() 53 USHORT usNPreBits; in xMBUtilSetBits() 54 USHORT usValue = ucValue; in xMBUtilSetBits() 61 usByteOffset = ( USHORT )( ( usBitOffset ) / BITS_UCHAR ); in xMBUtilSetBits() 64 usNPreBits = ( USHORT )( usBitOffset - usByteOffset * BITS_UCHAR ); in xMBUtilSetBits() 70 usMask = ( USHORT )( ( 1 << ( USHORT ) ucNBits ) - 1 ); in xMBUtilSetBits() 78 usWordBuf = ( USHORT )( ( usWordBuf & ( ~usMask ) ) | usValue ); in xMBUtilSetBits() [all …]
|
D | mbfunccoils_m.c | 89 eMBMasterReqReadCoils( UCHAR ucSndAddr, USHORT usCoilAddr, USHORT usNCoils, LONG lTimeOut ) in eMBMasterReqReadCoils() 114 eMBMasterFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadCoils() 117 USHORT usRegAddress; in eMBMasterFuncReadCoils() 118 USHORT usCoilCount; in eMBMasterFuncReadCoils() 132 usRegAddress = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] << 8 ); in eMBMasterFuncReadCoils() 133 usRegAddress |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] ); in eMBMasterFuncReadCoils() 136 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() 195 eMBMasterReqWriteCoil( UCHAR ucSndAddr, USHORT usCoilAddr, USHORT usCoilData, LONG lTimeOut ) in eMBMasterReqWriteCoil() 220 eMBMasterFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncWriteCoil() [all …]
|
D | mbfunccoils.c | 70 eMBFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadCoils() 72 USHORT usRegAddress; in eMBFuncReadCoils() 73 USHORT usCoilCount; in eMBFuncReadCoils() 82 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF] << 8 ); in eMBFuncReadCoils() 83 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF + 1] ); in eMBFuncReadCoils() 86 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() 149 eMBFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncWriteCoil() 151 USHORT usRegAddress; in eMBFuncWriteCoil() 159 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_WRITE_ADDR_OFF] << 8 ); in eMBFuncWriteCoil() [all …]
|
D | mbfuncinput_m.c | 72 eMBMasterReqReadInputRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut ) in eMBMasterReqReadInputRegister() 96 eMBMasterFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadInputRegister() 99 USHORT usRegAddress; in eMBMasterFuncReadInputRegister() 100 USHORT usRegCount; in eMBMasterFuncReadInputRegister() 113 usRegAddress = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] << 8 ); in eMBMasterFuncReadInputRegister() 114 usRegAddress |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] ); in eMBMasterFuncReadInputRegister() 117 usRegCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF] << 8 ); in eMBMasterFuncReadInputRegister() 118 usRegCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF + 1] ); in eMBMasterFuncReadInputRegister()
|
D | mbfuncdisc_m.c | 73 eMBMasterReqReadDiscreteInputs( UCHAR ucSndAddr, USHORT usDiscreteAddr, USHORT usNDiscreteIn, LONG … in eMBMasterReqReadDiscreteInputs() 97 eMBMasterFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ) in eMBMasterFuncReadDiscreteInputs() 99 USHORT usRegAddress; in eMBMasterFuncReadDiscreteInputs() 100 USHORT usDiscreteCnt; in eMBMasterFuncReadDiscreteInputs() 115 usRegAddress = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] << 8 ); in eMBMasterFuncReadDiscreteInputs() 116 usRegAddress |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] ); in eMBMasterFuncReadDiscreteInputs() 119 usDiscreteCnt = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF] << 8 ); in eMBMasterFuncReadDiscreteInputs() 120 usDiscreteCnt |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF + 1] ); in eMBMasterFuncReadDiscreteInputs()
|
D | mbfuncinput.c | 61 eMBFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadInputRegister() 63 USHORT usRegAddress; in eMBFuncReadInputRegister() 64 USHORT usRegCount; in eMBFuncReadInputRegister() 72 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF] << 8 ); in eMBFuncReadInputRegister() 73 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF + 1] ); in eMBFuncReadInputRegister() 76 usRegCount = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF] << 8 ); in eMBFuncReadInputRegister() 77 usRegCount |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_REGCNT_OFF + 1] ); in eMBFuncReadInputRegister()
|
D | mbfuncdisc.c | 65 eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ) in eMBFuncReadDiscreteInputs() 67 USHORT usRegAddress; in eMBFuncReadDiscreteInputs() 68 USHORT usDiscreteCnt; in eMBFuncReadDiscreteInputs() 77 usRegAddress = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF] << 8 ); in eMBFuncReadDiscreteInputs() 78 usRegAddress |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_ADDR_OFF + 1] ); in eMBFuncReadDiscreteInputs() 81 usDiscreteCnt = ( USHORT )( pucFrame[MB_PDU_FUNC_READ_DISCCNT_OFF] << 8 ); in eMBFuncReadDiscreteInputs() 82 usDiscreteCnt |= ( USHORT )( pucFrame[MB_PDU_FUNC_READ_DISCCNT_OFF + 1] ); in eMBFuncReadDiscreteInputs()
|
/hal_espressif-3.4.0/components/freemodbus/serial_master/modbus_controller/ |
D | mbc_serial_master.c | 202 mb_error = eMBMasterReqReadCoils((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_serial_master_send_request() 203 (USHORT)mb_size , (LONG)MB_RESPONSE_TICS ); in mbc_serial_master_send_request() 206 mb_error = eMBMasterReqWriteCoil((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_serial_master_send_request() 207 *(USHORT*)data_ptr, (LONG)MB_RESPONSE_TICS ); in mbc_serial_master_send_request() 210 mb_error = eMBMasterReqWriteMultipleCoils((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_serial_master_send_request() 211 … (USHORT)mb_size, (UCHAR*)data_ptr, (LONG)MB_RESPONSE_TICS); in mbc_serial_master_send_request() 214 mb_error = eMBMasterReqReadDiscreteInputs((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_serial_master_send_request() 215 (USHORT)mb_size, (LONG)MB_RESPONSE_TICS ); in mbc_serial_master_send_request() 218 mb_error = eMBMasterReqReadHoldingRegister((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_serial_master_send_request() 219 … (USHORT)mb_size, (LONG)MB_RESPONSE_TICS ); in mbc_serial_master_send_request() [all …]
|
/hal_espressif-3.4.0/components/freemodbus/tcp_master/modbus_controller/ |
D | mbc_tcp_master.c | 155 status = eMBMasterTCPInit((USHORT)comm_info->ip_port); in mbc_tcp_master_start() 284 mb_error = eMBMasterReqReadCoils((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_tcp_master_send_request() 285 (USHORT)mb_size, (LONG)MB_RESPONSE_TIMEOUT); in mbc_tcp_master_send_request() 288 mb_error = eMBMasterReqWriteCoil((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_tcp_master_send_request() 289 *(USHORT *)data_ptr, (LONG)MB_RESPONSE_TIMEOUT); in mbc_tcp_master_send_request() 292 mb_error = eMBMasterReqWriteMultipleCoils((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_tcp_master_send_request() 293 (USHORT)mb_size, (UCHAR *)data_ptr, in mbc_tcp_master_send_request() 297 mb_error = eMBMasterReqReadDiscreteInputs((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_tcp_master_send_request() 298 (USHORT)mb_size, (LONG)MB_RESPONSE_TIMEOUT); in mbc_tcp_master_send_request() 301 mb_error = eMBMasterReqReadHoldingRegister((UCHAR)mb_slave_addr, (USHORT)mb_offset, in mbc_tcp_master_send_request() [all …]
|
/hal_espressif-3.4.0/components/freemodbus/common/ |
D | esp_modbus_callbacks.h | 24 typedef eMBErrorCode (*reg_input_cb)(UCHAR*, USHORT, USHORT); 25 typedef eMBErrorCode (*reg_holding_cb)(UCHAR*, USHORT, USHORT, eMBRegisterMode); 26 typedef eMBErrorCode (*reg_coils_cb)(UCHAR*, USHORT, USHORT, eMBRegisterMode); 27 typedef eMBErrorCode (*reg_discrete_cb)(UCHAR*, USHORT, USHORT);
|
D | esp_modbus_slave.c | 292 eMBErrorCode mbc_reg_input_slave_cb(UCHAR * reg_buffer, USHORT address, USHORT n_regs) in mbc_reg_input_slave_cb() 329 eMBErrorCode mbc_reg_holding_slave_cb(UCHAR * reg_buffer, USHORT address, USHORT n_regs, eMBRegiste… in mbc_reg_holding_slave_cb() 381 eMBErrorCode mbc_reg_coils_slave_cb(UCHAR* reg_buffer, USHORT address, USHORT n_coils, eMBRegisterM… in mbc_reg_coils_slave_cb() 432 eMBErrorCode mbc_reg_discrete_slave_cb(UCHAR* reg_buffer, USHORT address, USHORT n_discrete) in mbc_reg_discrete_slave_cb() 477 eMBErrorCode eMBRegDiscreteCB(UCHAR * pucRegBuffer, USHORT usAddress, USHORT usNDiscrete) in eMBRegDiscreteCB() 493 eMBErrorCode eMBRegCoilsCB(UCHAR* pucRegBuffer, USHORT usAddress, in eMBRegCoilsCB() 494 USHORT usNCoils, eMBRegisterMode eMode) in eMBRegCoilsCB() 509 eMBErrorCode eMBRegHoldingCB(UCHAR * pucRegBuffer, USHORT usAddress, in eMBRegHoldingCB() 510 USHORT usNRegs, eMBRegisterMode eMode) in eMBRegHoldingCB() 525 eMBErrorCode eMBRegInputCB(UCHAR * pucRegBuffer, USHORT usAddress, USHORT usNRegs) in eMBRegInputCB()
|
D | esp_modbus_master.c | 190 eMBErrorCode eMBMasterRegDiscreteCB(UCHAR * pucRegBuffer, USHORT usAddress, in eMBMasterRegDiscreteCB() 191 USHORT usNDiscrete) in eMBMasterRegDiscreteCB() 204 eMBErrorCode eMBMasterRegCoilsCB(UCHAR* pucRegBuffer, USHORT usAddress, in eMBMasterRegCoilsCB() 205 USHORT usNCoils, eMBRegisterMode eMode) in eMBMasterRegCoilsCB() 219 eMBErrorCode eMBMasterRegHoldingCB(UCHAR * pucRegBuffer, USHORT usAddress, in eMBMasterRegHoldingCB() 220 USHORT usNRegs, eMBRegisterMode eMode) in eMBMasterRegHoldingCB() 234 eMBErrorCode eMBMasterRegInputCB(UCHAR * pucRegBuffer, USHORT usAddress, in eMBMasterRegInputCB() 235 USHORT usNRegs) in eMBMasterRegInputCB()
|
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/ |
D | port_tcp_master.h | 72 USHORT usRcvPos; /*!< Receive buffer position */ 83 USHORT usPort; /*!< Master TCP/UDP port number */ 84 USHORT usMbSlaveInfoCount; /*!< Master count of connected slaves */ 85 USHORT ucCurSlaveIndex; /*!< Master current processing slave index */ 94 USHORT usIndex; /*!< index of the address info */ 111 BOOL xMBTCPPortMasterAddSlaveIp(const USHORT usIndex, const CHAR* pcIpStr, UCHAR ucSlaveAddress); 122 BOOL xMBTCPPortMasterWaitEvent(EventGroupHandle_t xEventHandle, EventBits_t xEvent, USHORT usTimeou…
|
/hal_espressif-3.4.0/components/freemodbus/modbus/tcp/ |
D | mbtcp.c | 75 eMBTCPDoInit( USHORT ucTCPPort ) in eMBTCPDoInit() 102 eMBTCPReceive( UCHAR * pucRcvAddress, UCHAR ** ppucFrame, USHORT * pusLength ) in eMBTCPReceive() 106 USHORT usLength; in eMBTCPReceive() 107 USHORT usPID; in eMBTCPReceive() 134 eMBTCPSend( UCHAR _unused, const UCHAR * pucFrame, USHORT usLength ) in eMBTCPSend() 138 USHORT usTCPLength = usLength + MB_TCP_FUNC; in eMBTCPSend()
|
D | mbtcp_m.c | 75 eMBMasterTCPDoInit( USHORT ucTCPPort ) in eMBMasterTCPDoInit() 101 eMBMasterTCPReceive( UCHAR * pucRcvAddress, UCHAR ** ppucFrame, USHORT * pusLength ) in eMBMasterTCPReceive() 105 USHORT usLength; in eMBMasterTCPReceive() 106 USHORT usPID; in eMBMasterTCPReceive() 133 eMBMasterTCPSend( UCHAR _unused, const UCHAR * pucFrame, USHORT usLength ) in eMBMasterTCPSend() 137 USHORT usTCPLength = usLength + MB_TCP_FUNC; in eMBMasterTCPSend()
|
/hal_espressif-3.4.0/components/freemodbus/port/ |
D | porttimer_m.c | 55 static USHORT usT35TimeOut50us; 58 static const USHORT usTimerIndex = CONFIG_FMB_MASTER_TIMER_INDEX; 59 static const USHORT usTimerGroupIndex = CONFIG_FMB_MASTER_TIMER_GROUP; 74 BOOL xMBMasterPortTimersInit(USHORT usTimeOut50us) in xMBMasterPortTimersInit() 118 static BOOL xMBMasterPortTimersEnable(USHORT usTimerTics50us) in xMBMasterPortTimersEnable() 151 USHORT usTimerTicks = usT35TimeOut50us; in vMBMasterPortTimersT35Enable() 162 USHORT usTimerTicks = ((MB_MASTER_DELAY_MS_CONVERT * 1000) / MB_TICK_TIME_US); in vMBMasterPortTimersConvertDelayEnable() 172 USHORT usTimerTicks = (MB_MASTER_TIMEOUT_MS_RESPOND * 1000 / MB_TICK_TIME_US); in vMBMasterPortTimersRespondTimeoutEnable()
|
/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/ |
D | port_tcp_slave.h | 70 USHORT usTCPBufPos; /*!< buffer active position */ 71 USHORT usTCPFrameBytesLeft; /*!< buffer left bytes to receive transaction */ 74 USHORT usTidCnt; /*!< last TID counter from packet */ 82 USHORT usPort; /*!< TCP/UDP port number */ 85 USHORT usClientCount; /*!< Client connection count */
|
/hal_espressif-3.4.0/components/freemodbus/modbus/rtu/ |
D | mbrtu.c | 71 static volatile USHORT usSndBufferCount; 73 static volatile USHORT usRcvBufferPos; 112 if( xMBPortTimersInit( ( USHORT ) usTimerT35_50us ) != TRUE ) in eMBRTUInit() 148 eMBRTUReceive( UCHAR * pucRcvAddress, UCHAR ** pucFrame, USHORT * pusLength ) in eMBRTUReceive() 167 *pusLength = ( USHORT )( usRcvBufferPos - MB_SER_PDU_PDU_OFF - MB_SER_PDU_SIZE_CRC ); in eMBRTUReceive() 182 eMBRTUSend( UCHAR ucSlaveAddress, const UCHAR * pucFrame, USHORT usLength ) in eMBRTUSend() 185 USHORT usCRC16; in eMBRTUSend()
|
D | mbrtu_m.c | 77 static volatile USHORT usMasterSndBufferCount; 78 static volatile USHORT usMasterRcvBufferPos; 118 if( xMBMasterPortTimersInit( ( USHORT ) usTimerT35_50us ) != TRUE ) in eMBMasterRTUInit() 154 eMBMasterRTUReceive( UCHAR * pucRcvAddress, UCHAR ** pucFrame, USHORT * pusLength ) in eMBMasterRTUReceive() 173 *pusLength = ( USHORT )( usMasterRcvBufferPos - MB_SER_PDU_PDU_OFF - MB_SER_PDU_SIZE_CRC ); in eMBMasterRTUReceive() 188 eMBMasterRTUSend( UCHAR ucSlaveAddress, const UCHAR * pucFrame, USHORT usLength ) in eMBMasterRTUSend() 191 USHORT usCRC16; in eMBMasterRTUSend()
|