tilt 2.0.0.0
|
Functions | |
void | tilt_cfg_setup (tilt_cfg_t *cfg) |
Config Object Initialization function. | |
TILT_RETVAL | tilt_init (tilt_t *ctx, tilt_cfg_t *cfg) |
Initialization function. | |
uint8_t | tilt_left (tilt_t *ctx) |
Check the tilt left movement's direction function. | |
uint8_t | tilt_right (tilt_t *ctx) |
Check the tilt right movement's direction function. | |
uint8_t | tilt_up (tilt_t *ctx) |
Check the tilt up movement's direction function. | |
uint8_t | tilt_down (tilt_t *ctx) |
Check the tilt down movement's direction function. | |
uint8_t | tilt_direction (tilt_t *ctx) |
Check the tilt movement's direction function. | |
void tilt_cfg_setup | ( | tilt_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t tilt_direction | ( | tilt_t * | ctx | ) |
Check the tilt movement's direction function.
ctx | Click object. |
@description This function check the tilt movement's direction: left, right, up or down, of RPI-1035 Surface Mount Type 4-Direction Detector on Tilt click board.
uint8_t tilt_down | ( | tilt_t * | ctx | ) |
Check the tilt down movement's direction function.
ctx | Click object. |
@description This function check the tilt down movement's direction of RPI-1035 Surface Mount Type 4-Direction Detector on Tilt click board.
TILT_RETVAL tilt_init | ( | tilt_t * | ctx, |
tilt_cfg_t * | cfg ) |
Initialization function.
tilt | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t tilt_left | ( | tilt_t * | ctx | ) |
Check the tilt left movement's direction function.
ctx | Click object. |
@description This function check the tilt left movement's direction of RPI-1035 Surface Mount Type 4-Direction Detector on Tilt click board.
uint8_t tilt_right | ( | tilt_t * | ctx | ) |
Check the tilt right movement's direction function.
ctx | Click object. |
@description This function check the tilt right movement's direction of RPI-1035 Surface Mount Type 4-Direction Detector on Tilt click board.
uint8_t tilt_up | ( | tilt_t * | ctx | ) |
Check the tilt up movement's direction function.
ctx | Click object. |
@description This function check the tilt up movement's direction of RPI-1035 Surface Mount Type 4-Direction Detector on Tilt click board.