#include <RadioState.h>
Inherits BBItem.
Inheritance diagram for RadioState:
Public Types | |
enum | States { SLEEP, RECV, SEND, SWITCH_TO_SLEEP, SWITCH_TO_RECV, SWITCH_TO_SEND } |
possible states of this channel of the radio | |
Public Member Functions | |
States | getState () const |
function to get the state | |
void | setState (States s) |
set the state of the radio | |
RadioState (States s=RECV) | |
Constructor. | |
std::string | info () const |
Enables inspection. | |
Protected Attributes | |
States | state |
holds the state for this channel | |
Private Member Functions | |
BBITEM_METAINFO (BBItem) |
SLEEP: the radio is sleeping SWITCH_TO_RECV: RECV: the radio is able to receive a message SWITCH_TO_SEND: SEND: the radio is sending a message