|
Contiki-NG
|
Platform-independent button driver. More...
#include "contiki.h"#include "sys/process.h"#include "sys/ctimer.h"#include "sys/critical.h"#include "dev/gpio-hal.h"#include "dev/button-hal.h"#include <stdint.h>#include <stdbool.h>#include <string.h>Go to the source code of this file.
Functions | |
| button_hal_button_t * | button_hal_get_by_id (uint8_t unique_id) |
| Retrieve a button by ID. More... | |
| button_hal_button_t * | button_hal_get_by_index (uint8_t index) |
| Retrieve a button by its index. More... | |
| uint8_t | button_hal_get_state (button_hal_button_t *button) |
| Get the state of a button (pressed / released) More... | |
| void | button_hal_init (void) |
| Initialise the button HAL. | |
Variables | |
| process_event_t | button_hal_press_event |
| A broadcast event generated when a button gets pressed. | |
| process_event_t | button_hal_release_event |
| A broadcast event generated when a button gets released. | |
| process_event_t | button_hal_periodic_event |
| A broadcast event generated every second while a button is kept pressed. | |
Platform-independent button driver.
Definition in file button-hal.c.
1.8.13