Home
last modified time | relevance | path

Searched refs:usNRegs (Results 1 – 8 of 8) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/modbus/functions/
Dmbfuncholding_m.c171 USHORT usRegAddr, USHORT usNRegs, USHORT * pusDataBuffer, LONG lTimeOut ) in eMBMasterReqWriteMultipleHoldingRegister() argument
186 ucMBFrame[MB_PDU_REQ_WRITE_MUL_REGCNT_OFF] = usNRegs >> 8; in eMBMasterReqWriteMultipleHoldingRegister()
187 ucMBFrame[MB_PDU_REQ_WRITE_MUL_REGCNT_OFF + 1] = usNRegs ; in eMBMasterReqWriteMultipleHoldingRegister()
188 ucMBFrame[MB_PDU_REQ_WRITE_MUL_BYTECNT_OFF] = usNRegs * 2; in eMBMasterReqWriteMultipleHoldingRegister()
190 while( usNRegs > usRegIndex) in eMBMasterReqWriteMultipleHoldingRegister()
195 vMBMasterSetPDUSndLength( MB_PDU_SIZE_MIN + MB_PDU_REQ_WRITE_MUL_SIZE_MIN + 2*usNRegs ); in eMBMasterReqWriteMultipleHoldingRegister()
265 eMBMasterReqReadHoldingRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut ) in eMBMasterReqReadHoldingRegister() argument
279 ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF] = usNRegs >> 8; in eMBMasterReqReadHoldingRegister()
280 ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF + 1] = usNRegs; in eMBMasterReqReadHoldingRegister()
Dmbfuncinput_m.c72 eMBMasterReqReadInputRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut ) in eMBMasterReqReadInputRegister() argument
86 ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF] = usNRegs >> 8; in eMBMasterReqReadInputRegister()
87 ucMBFrame[MB_PDU_REQ_READ_REGCNT_OFF + 1] = usNRegs; in eMBMasterReqReadInputRegister()
/hal_espressif-3.6.0/components/freemodbus/modbus/include/
Dmb_m.h257 USHORT usNRegs );
286 USHORT usNRegs, eMBRegisterMode eMode );
344 eMBMasterReqReadInputRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut );
349 USHORT usNRegs, USHORT * pusDataBuffer, LONG lTimeOut );
351 eMBMasterReqReadHoldingRegister( UCHAR ucSndAddr, USHORT usRegAddr, USHORT usNRegs, LONG lTimeOut );
Dmb.h313 USHORT usNRegs );
348 USHORT usNRegs, eMBRegisterMode eMode );
/hal_espressif-3.6.0/components/freemodbus/common/
Desp_modbus_master.c220 USHORT usNRegs, eMBRegisterMode eMode) in eMBMasterRegHoldingCB() argument
230 usNRegs, eMode); in eMBMasterRegHoldingCB()
235 USHORT usNRegs) in eMBMasterRegInputCB() argument
244 error = master_interface_ptr->master_reg_cb_input(pucRegBuffer, usAddress, usNRegs); in eMBMasterRegInputCB()
Desp_modbus_slave.c510 USHORT usNRegs, eMBRegisterMode eMode) in eMBRegHoldingCB() argument
518 error = slave_interface_ptr->slave_reg_cb_holding(pucRegBuffer, usAddress, usNRegs, eMode); in eMBRegHoldingCB()
520 error = mbc_reg_holding_slave_cb(pucRegBuffer, usAddress, usNRegs, eMode); in eMBRegHoldingCB()
525 eMBErrorCode eMBRegInputCB(UCHAR * pucRegBuffer, USHORT usAddress, USHORT usNRegs) in eMBRegInputCB() argument
533 error = slave_interface_ptr->slave_reg_cb_input(pucRegBuffer, usAddress, usNRegs); in eMBRegInputCB()
535 error = mbc_reg_input_slave_cb(pucRegBuffer, usAddress, usNRegs); in eMBRegInputCB()
/hal_espressif-3.6.0/components/freemodbus/serial_master/modbus_controller/
Dmbc_serial_master.c470 USHORT usNRegs) in eMBRegInputCBSerialMaster() argument
481 USHORT usRegs = usNRegs; in eMBRegInputCBSerialMaster()
485 && (usNRegs >= 1) in eMBRegInputCBSerialMaster()
510 USHORT usNRegs, eMBRegisterMode eMode) in eMBRegHoldingCBSerialMaster() argument
521 USHORT usRegs = usNRegs; in eMBRegHoldingCBSerialMaster()
524 && (usRegHoldingNregs == usNRegs) in eMBRegHoldingCBSerialMaster()
525 && (usNRegs >= 1)) { in eMBRegHoldingCBSerialMaster()
/hal_espressif-3.6.0/components/freemodbus/tcp_master/modbus_controller/
Dmbc_tcp_master.c589 eMBErrorCode eMBRegInputCBTcpMaster(UCHAR* pucRegBuffer, USHORT usAddress, USHORT usNRegs) in eMBRegInputCBTcpMaster() argument
596 USHORT usRegs = usNRegs; in eMBRegInputCBTcpMaster()
600 && (usNRegs >= 1) in eMBRegInputCBTcpMaster()
625 USHORT usNRegs, eMBRegisterMode eMode) in eMBRegHoldingCBTcpMaster() argument
633 USHORT usRegs = usNRegs; in eMBRegHoldingCBTcpMaster()
635 if ((pucHoldingBuffer != NULL) && (usRegHoldingNregs == usNRegs) && (usNRegs >= 1)) in eMBRegHoldingCBTcpMaster()