ups 2.0.0.0
|
Functions | |
void | ups_cfg_setup (ups_cfg_t *cfg) |
Config Object Initialization function. | |
UPS_RETVAL | ups_init (ups_t *ctx, ups_cfg_t *cfg) |
Initialization function. | |
void | usp_set_mode (ups_t *ctx, uint8_t mode) |
Functions for settings chip mode. | |
uint8_t | ups_get_power_good (ups_t *ctx) |
Functions for reading PGD state. | |
void ups_cfg_setup | ( | ups_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t ups_get_power_good | ( | ups_t * | ctx | ) |
Functions for reading PGD state.
ctx | Click object. |
@description PGD goes high when Vout is within 6% of target value (4.98V)
UPS_RETVAL ups_init | ( | ups_t * | ctx, |
ups_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 usp_set_mode | ( | ups_t * | ctx, |
uint8_t | mode ) |
Functions for settings chip mode.
ctx | Click object. |
mode | Mode which be set |
Options: Active mode, Sleep mode