optoencoder 2.0.0.0
|
Functions | |
void | optoencoder_cfg_setup (optoencoder_cfg_t *cfg) |
Config Object Initialization function. | |
OPTOENCODER_RETVAL | optoencoder_init (optoencoder_t *ctx, optoencoder_cfg_t *cfg) |
Initialization function. | |
uint8_t | optoencoder_get_o1 (optoencoder_t *ctx) |
Function for reading O1 state. | |
uint8_t | optoencoder_get_o2 (optoencoder_t *ctx) |
Function for reading O2 state. | |
void | optoencoder_init_dev (optoencoder_t *ctx) |
Initialization function. | |
int16_t | optoencoder_get_position (optoencoder_t *ctx) |
Function for reading the position of the encoder. | |
void optoencoder_cfg_setup | ( | optoencoder_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t optoencoder_get_o1 | ( | optoencoder_t * | ctx | ) |
Function for reading O1 state.
ctx | Click object. |
uint8_t optoencoder_get_o2 | ( | optoencoder_t * | ctx | ) |
Function for reading O2 state.
ctx | Click object. |
int16_t optoencoder_get_position | ( | optoencoder_t * | ctx | ) |
Function for reading the position of the encoder.
ctx | Click object. |
OPTOENCODER_RETVAL optoencoder_init | ( | optoencoder_t * | ctx, |
optoencoder_cfg_t * | cfg ) |
Initialization function.
optoencoder | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void optoencoder_init_dev | ( | optoencoder_t * | ctx | ) |
Initialization function.
ctx | Click object. |