#include <avr/pgmspace.h>
#include <inttypes.h>
#include "net/buffers.h"
#include "net/network.h"
#include "net/transport.h"
#include "net.h"
Go to the source code of this file.
Data Structures | |
struct | AppObject |
An application object. More... | |
struct | param_desc_t |
Structure describing a method parameter or an event. More... | |
Typedefs | |
typedef void | appObjCallback_t (void *self, uint8_t method, uint8_t *buf, uint8_t *result, uint8_t repeated) |
Functions | |
void | app_init (void) |
Initialize layer. | |
void | app_process (void) |
Process waiting events. | |
void | app_trigger_event (uint8_t obj, uint8_t event) |
Fire an event. | |
uint8_t | app_register_obj (struct AppObject *obj, uint8_t events) |
Dynamically register an object. |
Constants and definitions of the application layer.
Definition in file application.h.
|
Initialize layer. Should be called after lnk_init(). Definition at line 431 of file application.c. |
|
Process waiting events. This function should be called from your main loop.
Definition at line 446 of file application.c. References tsp_clear_to_send(), tsp_requ(), and tsp_service_e. |
|
Dynamically register an object. In the current implementation it is not possible to unregister an object. Furthermore all objects must be registered in the same order if a reset occurs. Otherwise the event configurations will be corrupted.
Definition at line 519 of file application.c. |
|
Fire an event.
Definition at line 500 of file application.c. |