Class RouterObject

Inheritance Relationships

Base Type

Class Documentation

class RouterObject : public TableObject

Public Functions

RouterObject(Memory &memory, uint32_t staticTableAdr = 0, uint32_t staticTableSize = 0)
void initialize1x(DptMedium mediumType, uint16_t maxApduSize)
void initialize20(uint8_t objIndex, DptMedium mediumType, RouterObjectType rtType, uint16_t maxApduSize)
void initialize(CouplerModel model, uint8_t objIndex, DptMedium mediumType, RouterObjectType rtType, uint16_t maxApduSize)
bool isGroupAddressInFilterTable(uint16_t groupAddress)
bool isRfSbcRoutingEnabled()
bool isIpSbcRoutingEnabled()
virtual void masterReset(EraseCode eraseCode, uint8_t channel) override
virtual const uint8_t *restore(const uint8_t *buffer) override

This method is called when the object should restore its state from the buffer.

Parameters:

buffer – The buffer the object should restore its state from.

Returns:

The buffer plus the size of the object state. The next object will use this value as the start of its buffer.

Protected Functions

virtual void beforeStateChange(LoadState &newState) override

This method is called before the interface object enters a new LoadState.

If there is a error changing the state newState should be set to LS_ERROR and errorCode() to a reason for the failure.