vibrasense 2.0.0.0
|
This file contains API for Vibra sense Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | vibrasense_t |
Click ctx object definition. More... | |
struct | vibrasense_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | VIBRASENSE_MAP_MIKROBUS(cfg, mikrobus) |
#define | VIBRASENSE_RETVAL uint8_t |
#define | VIBRASENSE_OK 0x00 |
#define | VIBRASENSE_INIT_ERROR 0xFF |
#define | VIBRASENSE_DISABLE 0 |
#define | VIBRASENSE_ENABLE 1 |
Functions | |
void | vibrasense_cfg_setup (vibrasense_cfg_t *cfg) |
Config Object Initialization function. | |
VIBRASENSE_RETVAL | vibrasense_init (vibrasense_t *ctx, vibrasense_cfg_t *cfg) |
Initialization function. | |
void | vibrasense_set_mode (vibrasense_t *ctx, uint8_t en_mode) |
Set vibra sense mode function. | |
void | vibrasense_reset (vibrasense_t *ctx) |
Reset vibra sense function. | |
uint8_t | vibrasense_check_interrupt (vibrasense_t *ctx) |
Check interrupt function. | |
This file contains API for Vibra sense Click driver.