Class DataLinkLayer

Class Documentation

class DataLinkLayer

Public Functions

DataLinkLayer(DeviceObject &devObj, NetworkLayerEntity &netLayerEntity, Platform &platform)
void dataRequest(AckType ack, AddressType addrType, uint16_t destinationAddr, uint16_t sourceAddr, FrameFormat format, Priority priority, NPDU &npdu)
void systemBroadcastRequest(AckType ack, FrameFormat format, Priority priority, NPDU &npdu, uint16_t sourceAddr)
virtual void loop() = 0
virtual void enabled(bool value) = 0
virtual bool enabled() const = 0
virtual DptMedium mediumType() const = 0

Protected Functions

void frameReceived(CemiFrame &frame)
void dataConReceived(CemiFrame &frame, bool success)
bool sendTelegram(NPDU &npdu, AckType ack, uint16_t destinationAddr, AddressType addrType, uint16_t sourceAddr, FrameFormat format, Priority priority, SystemBroadcast systemBroadcast)
virtual bool sendFrame(CemiFrame &frame) = 0
uint8_t *frameData(CemiFrame &frame)

Protected Attributes

DeviceObject &_deviceObject
NetworkLayerEntity &_networkLayerEntity
Platform &_platform