current2 2.0.0.0
|
This file contains API for Current 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | current2_t |
Click ctx object definition. More... | |
struct | current2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | CURRENT2_MAP_MIKROBUS(cfg, mikrobus) |
#define | CURRENT2_RETVAL uint8_t |
#define | CURRENT2_OK 0x00 |
#define | CURRENT2_INIT_ERROR 0xFF |
Functions | |
void | current2_cfg_setup (current2_cfg_t *cfg) |
Config Object Initialization function. | |
uint8_t | current2_init (current2_t *ctx, current2_cfg_t *cfg) |
Initialization function. | |
void | current2_generic_transfer (current2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint16_t | current2_get_adc (current2_t *ctx) |
Get ADC function. | |
uint16_t | current2_get_average_adc (current2_t *ctx, uint8_t n_samp) |
Get Averaged ADC function. | |
uint16_t | current2_get_current (current2_t *ctx, uint8_t n_sample) |
Get Current function. | |
This file contains API for Current 2 Click driver.