button2
2.1.0.0
|
This file contains API for Button 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | button2_t |
Button 2 Click context object. More... | |
struct | button2_cfg_t |
Button 2 Click configuration object. More... | |
Macros | |
#define | BUTTON2_SWITCH_OFF 0 |
Button 2 switch state setting. More... | |
#define | BUTTON2_SWITCH_ON 1 |
#define | BUTTON2_BUTTON_PRESSED 0 |
Button 2 button state setting. More... | |
#define | BUTTON2_BUTTON_RELESED 1 |
#define | BUTTON2_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
Enumerations | |
enum | button2_return_value_t { BUTTON2_OK = 0, BUTTON2_ERROR = -1 } |
Button 2 Click return value data. More... | |
Functions | |
void | button2_cfg_setup (button2_cfg_t *cfg) |
Button 2 configuration object setup function. More... | |
err_t | button2_init (button2_t *ctx, button2_cfg_t *cfg) |
Button 2 initialization function. More... | |
void | button2_enable_led (button2_t *ctx) |
Button 2 enable led function. More... | |
void | button2_disable_led (button2_t *ctx) |
Button 2 disable led function. More... | |
void | button2_toggle_led (button2_t *ctx) |
Button 2 toggle led function. More... | |
uint8_t | button2_get_int_pin (button2_t *ctx) |
Button 2 get int pin function. More... | |
This file contains API for Button 2 Click Driver.