Microchip® Advanced Software Framework

phase.h File Reference

    Common functionality for phase optimization in duty cycling radio protocols
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "net/linkaddr.h"
#include "sys/timer.h"
#include "sys/rtimer.h"
#include "lib/list.h"
#include "lib/memb.h"
#include "net/netstack.h"

Enumerations

enum  phase_status_t {
  PHASE_UNKNOWN,
  PHASE_SEND_NOW,
  PHASE_DEFERRED
}
 

Functions

void phase_init (void)
 
void phase_remove (const linkaddr_t *neighbor)
 
void phase_update (const linkaddr_t *neighbor, rtimer_clock_t time, int mac_status)
 
phase_status_t phase_wait (const linkaddr_t *neighbor, rtimer_clock_t cycle_time, rtimer_clock_t wait_before, mac_callback_t mac_callback, void *mac_callback_ptr, struct rdc_buf_list *buf_list)
 

Enumerator
PHASE_UNKNOWN 
PHASE_SEND_NOW 
PHASE_DEFERRED 

void phase_init ( void  )

References memb_init(), nbr_table_register(), and NULL.

Referenced by init().

void phase_remove ( const linkaddr_t neighbor)