battman 2.0.0.0
|
Functions | |
void | battman_cfg_setup (battman_cfg_t *cfg) |
Config Object Initialization function. | |
BATTMAN_RETVAL | battman_init (battman_t *ctx, battman_cfg_t *cfg) |
Initialization function. | |
void | battman_set_enable (battman_t *ctx, uint8_t state) |
Enable/Disable control. | |
uint8_t | battman_get_charging_indicator (battman_t *ctx) |
Charging indicator status. | |
uint8_t | battman_get_fault_indicator (battman_t *ctx) |
Fault indicator status. | |
void battman_cfg_setup | ( | battman_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t battman_get_charging_indicator | ( | battman_t * | ctx | ) |
Charging indicator status.
ctx | Click object. |
@description Function for getting charging indicator status.
uint8_t battman_get_fault_indicator | ( | battman_t * | ctx | ) |
Fault indicator status.
ctx | Click object. |
@description Function for getting fault indicator status.
BATTMAN_RETVAL battman_init | ( | battman_t * | ctx, |
battman_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void battman_set_enable | ( | battman_t * | ctx, |
uint8_t | state ) |
Enable/Disable control.
ctx | Click object. |
state | 1 = enable, 0 = disable |
@description Controls the operation of the click.