Wire keywords (standard handler keywords documented in Wire )
set interrupt create event { name: "timer(1sec)" priority: 1 } create handler timer { interrupt: $interrupt cycletime: 1 }Events generated:
| Event Name | Type | Description |
|---|---|---|
| interrupt | AW_EVENT_TYPE_TIMESTAMP | It's time :) |
Events accepted:
| Type | Description |
|---|---|
| Any | Generate an event of type AW_EVENT_TYPE_TIMESTAMP with current timestamp |
NOTE: this is the simplest handler and useful as a template when developing new handlers.
#include "monitor.h"
#include "wire.h"
Go to the source code of this file.
Data Structures | |
| struct | aw_timerhandler_events_t |
| Events generated. More... | |
| struct | aw_timerhandler_t |
| Timer handler object. More... | |
Functions | |
| aw_timerhandler_t * | aw_create_timerhandler (const aw_timerhandler_events_t *events, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *logger) |
| Create a timer handler. | |
| void | aw_free_timerhandler (aw_timerhandler_t *h) |
| Free handler and all associated resources. | |
| aw_handler_t * | aw_wire_timerhandler (aw_wire_mkhandler_args_t *args) |
| Create a timer handler using "wire". See header doc for keyword documentation. | |
|
||||||||||||||||||||||||
|
Create a timer handler.
|
|
|
Free handler and all associated resources.
|
|
|
Create a timer handler using "wire". See header doc for keyword documentation.
|