charger13  2.0.0.0
Functions

Functions

void charger13_cfg_setup (charger13_cfg_t *cfg)
 Config Object Initialization function. More...
 
CHARGER13_RETVAL charger13_init (charger13_t *ctx, charger13_cfg_t *cfg)
 Initialization function. More...
 
void charger13_enable (charger13_t *ctx)
 Enabled charging function. More...
 
void charger13_disable (charger13_t *ctx)
 Disabled charging function. More...
 
uint8_t charger13_check (charger13_t *ctx)
 Check battery charging function. More...
 

Detailed Description

Function Documentation

◆ charger13_cfg_setup()

void charger13_cfg_setup ( charger13_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ charger13_check()

uint8_t charger13_check ( charger13_t ctx)

Check battery charging function.

Parameters
ctxClick object.

This function check if the battery is charging of the Charger 13 click board.

◆ charger13_disable()

void charger13_disable ( charger13_t ctx)

Disabled charging function.

Parameters
ctxClick object.

This function disable battery charging by sets to HIGH state of the EN ( PWM ) pin of the Charger 13 click board.

◆ charger13_enable()

void charger13_enable ( charger13_t ctx)

Enabled charging function.

Parameters
ctxClick object.

This function enable battery charging by cleared to LOW state of the EN ( PWM ) pin of the Charger 13 click board.

◆ charger13_init()

CHARGER13_RETVAL charger13_init ( charger13_t ctx,
charger13_cfg_t cfg 
)

Initialization function.

Parameters
charger13Click object.
cfgClick configuration structure.

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