|
indexcounter 2.2.0
|
This file contains API for Index Counter Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"Go to the source code of this file.
Data Structures | |
| struct | indexcounter_t |
| Click ctx object definition. More... | |
| struct | indexcounter_cfg_t |
| Click configuration structure definition. More... | |
Macros | |
| #define | INDEXCOUNTER_MAP_MIKROBUS(cfg, mikrobus) |
| #define | INDEXCOUNTER_RETVAL uint8_t |
| #define | INDEXCOUNTER_OK 0x00 |
| #define | INDEXCOUNTER_INIT_ERROR 0xFF |
| #define | INDEXCOUNTER_ACTIVE 1 |
| #define | INDEXCOUNTER_INACTIVE 0 |
| #define | INDEXCOUNTER_SPEED_ENABLE 1 |
| #define | INDEXCOUNTER_SPEED_DISABLE 0 |
| #define | INDEXCOUNTER_ONE_MIN_CONV_MS 60000.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. | |
This file contains API for Index Counter Click driver.