Contiki 2.5
|
Implementation of the announcement primitiveMore...
Go to the source code of this file.
Functions | |
System API | |
void | announcement_init (void) |
Initialize the announcement module. More... | |
void | announcement_register_listen_callback (void(*callback)(int time)) |
Register a listen callback with the announcement module. More... | |
void | announcement_register_observer_callback (announcement_observer observer) |
Register an observer callback with the announcement module. More... | |
struct announcement * | announcement_list (void) |
Get the list of registered announcements. More... | |
void | announcement_heard (const rimeaddr_t *from, uint16_t id, uint16_t value) |
Inform the announcement module of an incoming announcement. More... | |
Application API | |
void | announcement_register (struct announcement *a, uint16_t id, announcement_callback_t callback) |
Register an announcement. More... | |
void | announcement_remove (struct announcement *a) |
Remove a previously registered announcement. More... | |
void | announcement_remove_value (struct announcement *a) |
Remove the value of an announcement. More... | |
void | announcement_set_value (struct announcement *a, uint16_t value) |
Set the value of an announcement. More... | |
void | announcement_bump (struct announcement *a) |
Bump an announcement. More... | |
void | announcement_listen (int periods) |
Listen for announcements for a specific amount of announcement periods. More... | |
Implementation of the announcement primitive
Definition in file announcement.c.