tilt2 2.0.0.0
|
Functions | |
void | tilt2_cfg_setup (tilt2_cfg_t *cfg) |
Config Object Initialization function. | |
TILT2_RETVAL | tilt2_init (tilt2_t *ctx, tilt2_cfg_t *cfg) |
Initialization function. | |
uint8_t | tilt2_tilt_detection (tilt2_t *ctx) |
Tilt detection function. | |
void tilt2_cfg_setup | ( | tilt2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
TILT2_RETVAL tilt2_init | ( | tilt2_t * | ctx, |
tilt2_cfg_t * | cfg ) |
Initialization function.
tilt2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t tilt2_tilt_detection | ( | tilt2_t * | ctx | ) |
Tilt detection function.
ctx | Click object. |
@description This function detection tilt.