supla-device
Loading...
Searching...
No Matches
ModbusDeviceHandler Class Reference
Inheritance diagram for ModbusDeviceHandler:
Collaboration diagram for ModbusDeviceHandler:

Public Member Functions

 ModbusDeviceHandler (uint16_t offset=0)
 
Supla::Modbus::Result holdingProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer, Supla::Modbus::Access access) override
 
bool isHoldingSupported () override
 
bool isInputSupported () override
 
- Public Member Functions inherited from Supla::ModbusClientHandler
virtual bool isDiscreteSupported ()
 
virtual bool isCoilsSupported ()
 
virtual bool holdingRespondsToAddress (uint16_t address, uint16_t nRegs)
 
virtual bool inputRespondsToAddress (uint16_t address, uint16_t nRegs)
 
virtual Supla::Modbus::Result inputProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer)
 
virtual bool coilsRespondsToAddress (uint16_t address, uint16_t nRegs)
 
virtual Supla::Modbus::Result coilsProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer, Supla::Modbus::Access access)
 
virtual bool discreteRespondsToAddress (uint16_t address, uint16_t nRegs)
 
virtual Supla::Modbus::Result discreteProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer)
 

Additional Inherited Members

- Static Public Member Functions inherited from Supla::ModbusClientHandler
static Supla::Modbus::Result HoldingProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer, Supla::Modbus::Access access)
 
static Supla::Modbus::Result InputProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer)
 
static Supla::Modbus::Result CoilsProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer, Supla::Modbus::Access access)
 
static Supla::Modbus::Result DiscreteProcessRequest (uint16_t address, uint16_t nRegs, uint8_t *regBuffer)
 
static bool IsInputSupported ()
 
static bool IsDiscreteSupported ()
 
static bool IsCoilsSupported ()
 
static bool IsHoldingSupported ()
 
- Protected Member Functions inherited from Supla::ModbusClientHandler
void storeBigEndian (uint64_t value, uint8_t *regBuffer, uint8_t registerOffset, uint8_t registerCount)
 
- Protected Attributes inherited from Supla::ModbusClientHandler
uint16_t modbusAddressOffset = 0
 
uint16_t usedRegistersCount = 0
 

Member Function Documentation

◆ holdingProcessRequest()

Supla::Modbus::Result ModbusDeviceHandler::holdingProcessRequest ( uint16_t address,
uint16_t nRegs,
uint8_t * regBuffer,
Supla::Modbus::Access access )
overridevirtual

Reimplemented from Supla::ModbusClientHandler.

◆ isHoldingSupported()

bool ModbusDeviceHandler::isHoldingSupported ( )
overridevirtual

Reimplemented from Supla::ModbusClientHandler.

◆ isInputSupported()

bool ModbusDeviceHandler::isInputSupported ( )
overridevirtual

Reimplemented from Supla::ModbusClientHandler.


The documentation for this class was generated from the following files: