current 2.0.0.0
|
This file contains API for Current Click driver. More...
#include "drv_digital_out.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | current_t |
Click ctx object definition. More... | |
struct | current_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | CURRENT_MAP_MIKROBUS(cfg, mikrobus) |
#define | CURRENT_RETVAL uint8_t |
#define | CURRENT_OK 0x00 |
#define | CURRENT_INIT_ERROR 0xFF |
#define | CURRENT_FILTER_USEFULL_DATA 0x0FFF |
#define | CURRENT_SAMPLE_NUM 10 |
#define | CURRENT_RSHUNT_0_05 0.05 |
#define | CURRENT_RSHUNT_0_2 0.2 |
#define | CURRENT_RSHUNT_1 1.0 |
#define | CURRENT_RSHUNT_10 10.0 |
#define | CURRENT_CAL_COEF 0.025 |
#define | RFMETER_DEF_LIMIT_HIGH 4096 |
#define | RFMETER_DEF_LIMIT_LOW 800 |
#define | CURRENT_OUT_OF_RANGE -1.0 |
Functions | |
void | current_cfg_setup (current_cfg_t *cfg) |
Config Object Initialization function. | |
CURRENT_RETVAL | current_init (current_t *ctx, current_cfg_t *cfg) |
Initialization function. | |
uint16_t | current_data_read (current_t *ctx) |
Data read function. | |
uint16_t | current_get_raw_data (current_t *ctx) |
Get raw data function. | |
float | current_avg_rata (current_t *ctx) |
Calculate average data function. | |
float | current_get_current_data (current_t *ctx, float r_hunt) |
Get current value function. | |
This file contains API for Current Click driver.