OpenWSN Firmware
stupidmac.c File Reference
#include "openwsn.h"
#include "stupidmac.h"
#include "IEEE802154.h"
#include "radio.h"
#include "packetfunctions.h"
#include "idmanager.h"
#include "openserial.h"
#include "openqueue.h"
#include "timers.h"
#include "neighbors.h"
#include "nores.h"
#include "IEEE802154_common.c"

Functions

void packetReceived ()
 
void armRandomBackoffTimer ()
 
void change_state (uint8_t newstate)
 
void stupidmac_init ()
 
error_t stupidmac_send (OpenQueueEntry_t *msg)
 
void stupidmac_sendDone (OpenQueueEntry_t *pkt, error_t error)
 
void radio_packet_received (OpenQueueEntry_t *msg)
 
bool stupidmac_debugPrint ()
 
void timer_mac_periodic_fired ()
 
void timer_mac_backoff_fired ()
 
void timer_mac_watchdog_fired ()
 

Variables

OpenQueueEntry_tstupidmac_dataFrameToSend
 Implementation of stupidMAC. More...
 
OpenQueueEntry_tstupidmac_packetACK
 
OpenQueueEntry_tstupidmac_dataFrameReceived
 
uint8_t stupidmac_dsn
 
uint8_t stupidmac_state
 
bool stupidmac_serialInOutputMode
 

Function Documentation

void armRandomBackoffTimer ( )
void change_state ( uint8_t  newstate)
void packetReceived ( )
void radio_packet_received ( OpenQueueEntry_t msg)
bool stupidmac_debugPrint ( )
void stupidmac_init ( )
error_t stupidmac_send ( OpenQueueEntry_t msg)
void stupidmac_sendDone ( OpenQueueEntry_t pkt,
error_t  error 
)
void timer_mac_backoff_fired ( )
void timer_mac_periodic_fired ( )
void timer_mac_watchdog_fired ( )

Variable Documentation

OpenQueueEntry_t* stupidmac_dataFrameReceived
OpenQueueEntry_t* stupidmac_dataFrameToSend

Implementation of stupidMAC.

Author
Thomas Watteyne watte.nosp@m.yne@.nosp@m.eecs..nosp@m.berk.nosp@m.eley..nosp@m.edu, August 2010
uint8_t stupidmac_dsn
OpenQueueEntry_t* stupidmac_packetACK
bool stupidmac_serialInOutputMode
uint8_t stupidmac_state