OpenWSN Firmware
stupidmac.h File Reference
#include "openwsn.h"

Go to the source code of this file.

Enumerations

enum  {
  S_IDLE_LISTENING = 0, S_TX_TXDATAPREPARE = 1, S_TX_TXDATAREADY = 2, S_TX_TXDATA = 3,
  S_TX_RXACK = 4, S_RX_TXACKPREPARE = 5, S_RX_TXACKREADY = 6, S_RX_TXACK = 7
}
 Implementation of stupidMAC. More...
 
enum  { IMMEDIATELY = 1, WATCHDOG_PREPARESEND = 16000 }
 
enum  { WAS_ACKED = TRUE, WAS_NOT_ACKED = FALSE }
 
enum  { PERIODICTIMERPERIOD = 982, MINBACKOFF = 655, ACK_WAIT_TIME = 327 }
 

Functions

void stupidmac_init ()
 
error_t stupidmac_send (OpenQueueEntry_t *msg)
 
void stupidmac_sendDone (OpenQueueEntry_t *msg, error_t error)
 
void stupidmac_packet_received (OpenQueueEntry_t *pkt)
 
void timer_mac_backoff_fired ()
 
void timer_mac_watchdog_fired ()
 
void timer_mac_periodic_fired ()
 
bool stupidmac_debugPrint ()
 

Enumeration Type Documentation

anonymous enum

Implementation of stupidMAC.

Author
Thomas Watteyne watte.nosp@m.yne@.nosp@m.eecs..nosp@m.berk.nosp@m.eley..nosp@m.edu, August 2010
Enumerator
S_IDLE_LISTENING 
S_TX_TXDATAPREPARE 
S_TX_TXDATAREADY 
S_TX_TXDATA 
S_TX_RXACK 
S_RX_TXACKPREPARE 
S_RX_TXACKREADY 
S_RX_TXACK 
anonymous enum
Enumerator
IMMEDIATELY 
WATCHDOG_PREPARESEND 
anonymous enum
Enumerator
WAS_ACKED 
WAS_NOT_ACKED 
anonymous enum
Enumerator
PERIODICTIMERPERIOD 
MINBACKOFF 
ACK_WAIT_TIME 

Function Documentation

bool stupidmac_debugPrint ( )
void stupidmac_init ( )
void stupidmac_packet_received ( OpenQueueEntry_t pkt)
error_t stupidmac_send ( OpenQueueEntry_t msg)
void stupidmac_sendDone ( OpenQueueEntry_t msg,
error_t  error 
)
void timer_mac_backoff_fired ( )
void timer_mac_periodic_fired ( )
void timer_mac_watchdog_fired ( )