co 2.0.0.0
|
This file contains API for CO Click Driver. More...
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | co_t |
CO Click context object. More... | |
struct | co_cfg_t |
CO Click configuration object. More... | |
Macros | |
#define | CO_MAP_MIKROBUS(cfg, mikrobus) cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ) |
MikroBUS pin mapping. | |
Enumerations | |
enum | co_return_value_t { CO_OK = 0 , CO_ERROR = -1 } |
CO Click return value data. More... | |
Functions | |
void | co_cfg_setup (co_cfg_t *cfg) |
CO configuration object setup function. | |
err_t | co_init (co_t *ctx, co_cfg_t *cfg) |
CO initialization function. | |
err_t | co_read_an_pin_value (co_t *ctx, uint16_t *data_out) |
CO read AN pin value function. | |
err_t | co_read_an_pin_voltage (co_t *ctx, float *data_out) |
CO read AN pin voltage level function. | |
This file contains API for CO Click Driver.
enum co_return_value_t |