DSME Message interface implementation for GNRC. More...
DSME Message interface implementation for GNRC.
Definition at line 50 of file DSMEMessage.h.
#include <DSMEMessage.h>
Public Member Functions | |
void | prependFrom (DSMEMessageElement *msg) override |
prepend a header to current message | |
void | decapsulateTo (DSMEMessageElement *msg) override |
decapsulate header to a message | |
void | copyTo (DSMEMessageElement *msg) |
copy payload to DSME Message Element | |
bool | hasPayload () override |
check whether the message has payload | |
uint32_t | getStartOfFrameDelimiterSymbolCounter () override |
get the symbol counter at the end of the SFD | |
void | setStartOfFrameDelimiterSymbolCounter (uint32_t symbolCounter) override |
set the symbol counter at the end of the SFD | |
uint16_t | getTotalSymbols () override |
get the total number of symbols in current frame | |
uint8_t | getMPDUSymbols () override |
get number of MPDU Symbols | |
IEEE802154eMACHeader & | getHeader () override |
get IEEE 802.15.4 header | |
uint8_t | getLQI () override |
get LQI of the message | |
bool | getReceivedViaMCPS () override |
check whether the message was received via MCPS | |
void | setReceivedViaMCPS (bool receivedViaMCPS) override |
indicated that message was received via MCPS | |
bool | getCurrentlySending () override |
whether the message is being sent | |
void | setCurrentlySending (bool currentlySending) override |
indicate that the message is being sent | |
void | increaseRetryCounter () override |
increase retry counter for current message | |
uint8_t | getRetryCounter () override |
get retry counter | |
uint8_t | getPayloadLength () |
get payload length | |
int8_t | getRSSI () override |
get RSSI of frame | |
int | loadBuffer (size_t len) |
preallocate buffer with a given length | |
int | loadBuffer (iolist_t *pkt) |
load a GNRC packet into the internal openDSME message representation | |
uint8_t * | getPayload () |
get buffer associated to the current payload | |
int | dropHdr (size_t len) |
drop a number of bytes from the header | |
void | releaseMessage () |
release the message | |
void | dispatchMessage () |
dispatch the message to upper layers | |
iolist_t * | getIolPayload () |
get the IOLIST representation of the message | |
void | clearMessage () |
clear the message | |
Data Fields | |
bool | firstTry |
whether the message is being sent on the first try | |
bool | free |
whether the message is free | |
Friends | |
class | DSMEPlatform |
class | DSMEMessageElement |
class | DSMEPlatformBase |
class | DSMEMessageBuffer |
|
inlineoverride |
whether the message is being sent
Definition at line 151 of file DSMEMessage.h.
|
inlineoverride |
get IEEE 802.15.4 header
Definition at line 119 of file DSMEMessage.h.
|
inlineoverride |
get LQI of the message
Definition at line 127 of file DSMEMessage.h.
|
override |
get number of MPDU Symbols
|
inline |
get buffer associated to the current payload
Definition at line 210 of file DSMEMessage.h.
|
inline |
get payload length
Definition at line 183 of file DSMEMessage.h.
|
inlineoverride |
check whether the message was received via MCPS
Definition at line 135 of file DSMEMessage.h.
|
inlineoverride |
get retry counter
Definition at line 175 of file DSMEMessage.h.
|
inlineoverride |
get RSSI of frame
Definition at line 192 of file DSMEMessage.h.
|
inlineoverride |
get the symbol counter at the end of the SFD
Definition at line 80 of file DSMEMessage.h.
|
inlineoverride |
get the total number of symbols in current frame
Definition at line 96 of file DSMEMessage.h.
|
inlineoverride |
check whether the message has payload
Definition at line 72 of file DSMEMessage.h.
|
inlineoverride |
increase retry counter for current message
Definition at line 167 of file DSMEMessage.h.
|
inlineoverride |
indicate that the message is being sent
Definition at line 159 of file DSMEMessage.h.
|
inlineoverride |
indicated that message was received via MCPS
Definition at line 143 of file DSMEMessage.h.
|
inlineoverride |
set the symbol counter at the end of the SFD
Definition at line 88 of file DSMEMessage.h.
|
friend |
Definition at line 330 of file DSMEMessage.h.
|
friend |
Definition at line 328 of file DSMEMessage.h.
|
friend |
Definition at line 327 of file DSMEMessage.h.
|
friend |
Definition at line 329 of file DSMEMessage.h.
bool dsme::DSMEMessage::firstTry |
whether the message is being sent on the first try
Definition at line 244 of file DSMEMessage.h.
bool dsme::DSMEMessage::free |
whether the message is free
Definition at line 249 of file DSMEMessage.h.