Interface: tos.interfaces.CsmaBackoff

interface CsmaBackoff

Interface for MAC Backoff values from the radio stack. Allows application to change the backoff on a per packet basis. Only used if congestion control is enabled.

Author:
Joe Polastre

Events
event uint16_t congestion(message_t *m) Return backoff time after message m could not be send due to congestion.
event uint16_t initial(message_t *m) Return initial backoff time before attempting to send message m.

Events - Details

congestion

event uint16_t congestion(message_t *m)

Return backoff time after message m could not be send due to congestion. The units are raio dependent.

Parameters:
'message_t* ONE m'
Returns:
Backoff time after congestion

initial

event uint16_t initial(message_t *m)

Return initial backoff time before attempting to send message m. The units are radio dependent.

Parameters:
'message_t* ONE m'
Returns:
Initial backoff time