battmon 2.0.0.0
|
This file contains API for BATT-MON 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 | battmon_t |
Click ctx object definition. More... | |
struct | battmon_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | battmon_cfg_setup (battmon_cfg_t *cfg) |
Config Object Initialization function. | |
BATTMON_RETVAL | battmon_init (battmon_t *ctx, battmon_cfg_t *cfg) |
Initialization function. | |
void | battmon_default_cfg (battmon_t *ctx) |
Click Default Configuration function. | |
void | battmon_generic_write (battmon_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | battmon_generic_read (battmon_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | battmon_read_bytes (battmon_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint8_t n_bytes) |
Bytes Read function. | |
uint8_t | battmon_read_word (battmon_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Word Read function. | |
uint8_t | battmon_write_byte (battmon_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Byte Write function. | |
uint8_t | battmon_write_word (battmon_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Word Write function. | |
float | battmon_get_data (battmon_t *ctx, uint8_t data_addr) |
Data Get function. | |
uint8_t | battmon_set_alarm (battmon_t *ctx, uint8_t alarm_addr, float alarm_value) |
Alarm Set function. | |
uint8_t | battmon_get_rio_pin (battmon_t *ctx) |
RIO Pin Get function. | |
uint8_t | battmon_get_alm_pin (battmon_t *ctx) |
ALM Pin Get function. | |
uint8_t | battmon_check_clear_alarm (battmon_t *ctx) |
Alarm Check And Clear function. | |
void | battmon_sw_reset (battmon_t *ctx) |
SW Reset function. | |
void | battmon_reset_conv_cnt (battmon_t *ctx) |
Conversion Counter Reset function. | |
This file contains API for BATT-MON Click driver.