|
indexcounter 2.2.0
|
Functions | |
| void | indexcounter_cfg_setup (indexcounter_cfg_t *cfg) |
| Config Object Initialization function. | |
| INDEXCOUNTER_RETVAL | indexcounter_init (indexcounter_t *ctx, indexcounter_cfg_t *cfg) |
| Initialization function. | |
| void | indexcounter_default_cfg (indexcounter_t *ctx) |
| Click Default Configuration function. | |
| uint8_t | indexcounter_get_dir (indexcounter_t *ctx) |
| Get state of the direction pin function. | |
| uint8_t | indexcounter_get_speed (indexcounter_t *ctx) |
| Get state of the speed pin function. | |
| void indexcounter_cfg_setup | ( | indexcounter_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void indexcounter_default_cfg | ( | indexcounter_t * | ctx | ) |
Click Default Configuration function.
| ctx | Click object. |
@description This function executes default configuration for Index Counter Click.
| uint8_t indexcounter_get_dir | ( | indexcounter_t * | ctx | ) |
Get state of the direction pin function.
@description This function returns a state of the direction DIR ( AN ) pin.
| uint8_t indexcounter_get_speed | ( | indexcounter_t * | ctx | ) |
Get state of the speed pin function.
@description This function returns a state of the speed SPD ( RST ) pin.
| INDEXCOUNTER_RETVAL indexcounter_init | ( | indexcounter_t * | ctx, |
| indexcounter_cfg_t * | cfg ) |
Initialization function.
| indexcounter | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.