ups 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ ups_cfg_setup()

void ups_cfg_setup ( ups_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ ups_get_power_good()

uint8_t ups_get_power_good ( ups_t * ctx)

Functions for reading PGD state.

Parameters
ctxClick object.
Returns
PGD (Power good) pin state

@description PGD goes high when Vout is within 6% of target value (4.98V)

◆ ups_init()

UPS_RETVAL ups_init ( ups_t * ctx,
ups_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ usp_set_mode()

void usp_set_mode ( ups_t * ctx,
uint8_t mode )

Functions for settings chip mode.

Parameters
ctxClick object.
modeMode which be set
Note
Options:
   Active mode,
   Sleep mode