balancer2 2.0.0.0
|
This file contains API for BALANCER 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 | balancer2_t |
Click ctx object definition. More... | |
struct | balancer2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | balancer2_cfg_setup (balancer2_cfg_t *cfg) |
Config Object Initialization function. | |
BALANCER2_RETVAL | balancer2_init (balancer2_t *ctx, balancer2_cfg_t *cfg) |
Initialization function. | |
void | balancer2_default_cfg (balancer2_t *ctx) |
Click Default Configuration function. | |
void | balancer2_cell_1_state (balancer2_t *ctx, uint8_t state) |
Generic function for setting cell 1 pin status. | |
void | balancer2_cell_2_state (balancer2_t *ctx, uint8_t state) |
Generic function for setting cell 2 pin status. | |
void | balancer2_supply_state (balancer2_t *ctx, uint8_t state) |
Generic function for setting supply pin status. | |
void | balancer2_status_led_state (balancer2_t *ctx, uint8_t state) |
Generic function for setting status led pin status. | |
uint16_t | balancer2_read_adc (balancer2_t *ctx, uint8_t cmd_byte) |
Function for reading adc value. | |
void | balancer2_set_vref (balancer2_t *ctx, uint16_t vref) |
Function for setting reference value. | |
float | balancer2_get_batttery_lvl (balancer2_t *ctx, uint8_t bat_num) |
Function for getting real battery lvl. | |
float | balancer2_adc_to_mv (balancer2_t *ctx, uint16_t adc_val) |
Function for converting adc value to mV. | |
This file contains API for BALANCER 2 Click driver.