charger9 2.0.0.0
Public function

Functions

void charger9_cfg_setup (charger9_cfg_t *cfg)
 Config Object Initialization function.
 
CHARGER9_RETVAL charger9_init (charger9_t *ctx, charger9_cfg_t *cfg)
 Initialization function.
 
CHARGER9_RETVAL charger9_enable (charger9_t *ctx, CHARGER9_STATE pwr_state)
 Enable function.
 
CHARGER9_RETVAL charger9_fast_charge_ind (charger9_t *ctx)
 Fast-Charge Indicate function.
 
CHARGER9_RETVAL charger9_full_charge_ind (charger9_t *ctx)
 Full-Charge Indicate function.
 
CHARGER9_RETVAL charger9_fault_ind (charger9_t *ctx)
 Fault Indicate function.
 

Detailed Description

Function Documentation

◆ charger9_cfg_setup()

void charger9_cfg_setup ( charger9_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.

◆ charger9_enable()

CHARGER9_RETVAL charger9_enable ( charger9_t * ctx,
CHARGER9_STATE pwr_state )

Enable function.

Parameters
ctxClick object.
pwr_state0 - Shutdown state, 1 - Power ON state
Returns
0 - OK, 1 - Invalid parameter value

@description This function allows user to enable or disable the device.

◆ charger9_fast_charge_ind()

CHARGER9_RETVAL charger9_fast_charge_ind ( charger9_t * ctx)

Fast-Charge Indicate function.

Parameters
ctxClick object.
Returns
0 - Active process, 1 - Inactive process

@description This function indicates the Fast-Charge mode, constant current charging.

◆ charger9_fault_ind()

CHARGER9_RETVAL charger9_fault_ind ( charger9_t * ctx)

Fault Indicate function.

Parameters
ctxClick object.
Returns
0 - Active process, 1 - Inactive process

@description This function indicates the Fault condition, charging terminates abnormally.

◆ charger9_full_charge_ind()

CHARGER9_RETVAL charger9_full_charge_ind ( charger9_t * ctx)

Full-Charge Indicate function.

Parameters
ctxClick object.
Returns
0 - Active process, 1 - Inactive process

@description This function indicates the Full-Charge mode, constant voltage charging.

◆ charger9_init()

CHARGER9_RETVAL charger9_init ( charger9_t * ctx,
charger9_cfg_t * cfg )

Initialization function.

Parameters
charger9Click object.
cfgClick configuration structure.

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