current3 2.0.0.0
|
This file contains API for Current 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | current3_t |
Click ctx object definition. More... | |
struct | current3_cfg_t |
Click configuration structure definition. More... | |
struct | current3_cfg_data_t |
Click configuration data definition. More... | |
struct | current3_status_data_t |
Click status data structure definition. More... | |
struct | current3_voltage_cfg_data_t |
Click voltage configuration structure definition. More... | |
struct | current3_sense_cfg_data_t |
Click sense configuration structure definition. More... | |
Functions | |
void | current3_cfg_setup (current3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | current3_init (current3_t *ctx, current3_cfg_t *cfg) |
Initialization function. | |
void | current3_default_cfg (current3_t *ctx, current3_sense_cfg_data_t sense_cfg_data) |
Click Default Configuration function. | |
err_t | current3_generic_write (current3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Generic write function. | |
err_t | current3_generic_read (current3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Generic read function. | |
float | current3_get_temperature (current3_t *ctx, uint8_t temp_sel) |
Get temperature function. | |
void | current3_get_status (current3_t *ctx, current3_status_data_t *status_cfg) |
Get status function. | |
void | current3_set_configuration (current3_t *ctx, current3_cfg_data_t cfg_data) |
Set configuration function. | |
void | current3_get_configuration (current3_t *ctx, current3_cfg_data_t *cfg_data) |
Get configuration function. | |
void | current3_set_voltage_sampling_config (current3_t *ctx, current3_voltage_cfg_data_t vtg_cfg_data) |
Set voltage sampling configuration function. | |
void | current3_get_voltage_sampling_config (current3_t *ctx, current3_voltage_cfg_data_t *vtg_cfg_data) |
Get voltage sampling configuration function. | |
void | current3_set_sense_sampling_config (current3_t *ctx, current3_sense_cfg_data_t sense_cfg_data) |
Set sense sampling configuration function. | |
void | current3_get_sense_sampling_config (current3_t *ctx, current3_sense_cfg_data_t *sense_cfg_data) |
Get sense sampling configuration function. | |
int16_t | current3_get_sense_voltage (current3_t *ctx) |
Get sense voltage function. | |
float | current3_get_source_voltage (current3_t *ctx) |
Get source voltage function. | |
float | current3_get_current (current3_t *ctx) |
Get current measurement function. | |
uint8_t | current3_check_therm (current3_t *ctx) |
Check therm ststus function. | |
uint8_t | current3_check_alert (current3_t *ctx) |
Check alert ststus function. | |
This file contains API for Current 3 Click driver.