charger13 2.0.0.0

Functions

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

Detailed Description

Function Documentation

◆ charger13_cfg_setup()

void charger13_cfg_setup ( charger13_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.

◆ charger13_check()

uint8_t charger13_check ( charger13_t * ctx)

Check battery charging function.

Parameters
ctxClick object.

@description 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.

@description 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.

@description 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.

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