announcement.h File Reference

Header file for the announcement primitive. More...

#include "net/rime/rimeaddr.h"

Go to the source code of this file.

Data Structures

struct  announcement
 Representation of an announcement. More...

Functions

Application API



void announcement_register (struct announcement *a, uint16_t id, announcement_callback_t callback)
 Register an announcement.
void announcement_remove (struct announcement *a)
 Remove a previously registered announcement.
void announcement_set_value (struct announcement *a, uint16_t value)
 Set the value of an announcement.
void announcement_remove_value (struct announcement *a)
 Remove the value of an announcement.
void announcement_bump (struct announcement *a)
 Bump an announcement.
void announcement_listen (int periods)
 Listen for announcements for a specific amount of announcement periods.

System API



enum  
typedef void(* announcement_observer )(uint16_t id, uint8_t has_value, uint16_t newvalue, uint16_t oldvalue, uint8_t bump)
void announcement_init (void)
 Initialize the announcement module.
struct announcementannouncement_list (void)
 Get the list of registered announcements.
void announcement_heard (const rimeaddr_t *from, uint16_t id, uint16_t value)
 Inform the announcement module of an incoming announcement.
void announcement_register_listen_callback (void(*callback)(int time))
 Register a listen callback with the announcement module.
void announcement_register_observer_callback (announcement_observer observer)
 Register an observer callback with the announcement module.

Detailed Description

Header file for the announcement primitive.

Author:
Adam Dunkels <adam@sics.se>

Definition in file announcement.h.


Generated on Mon Apr 11 14:23:46 2011 for Contiki 2.5 by  doxygen 1.6.1