vibrasense 2.0.0.0
|
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. | |
void vibrasense_cfg_setup | ( | vibrasense_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t vibrasense_check_interrupt | ( | vibrasense_t * | ctx | ) |
Check interrupt function.
vibrasense | Click object. |
0 Interrupt has not occured;
1 Interrupt has occured;
Function is used to check for an interrupt that indicates that the device has detected vibrations.
VIBRASENSE_RETVAL vibrasense_init | ( | vibrasense_t * | ctx, |
vibrasense_cfg_t * | cfg ) |
Initialization function.
vibrasense | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void vibrasense_reset | ( | vibrasense_t * | ctx | ) |
Reset vibra sense function.
vibrasense | Click object. |
Function resets the device.
void vibrasense_set_mode | ( | vibrasense_t * | ctx, |
uint8_t | en_mode ) |
Set vibra sense mode function.
vibrasense | Click object. | |
[in] | en_mode | 0 : Disable vibra sense; 1 : Enable vibra sense; |
Function sets the vibra sense mode.