singlecell  2.0.0.0
Functions

Functions

void singlecell_cfg_setup (singlecell_cfg_t *cfg)
 Config Object Initialization function. More...
 
SINGLECELL_RETVAL singlecell_init (singlecell_t *ctx, singlecell_cfg_t *cfg)
 Initialization function. More...
 
void singlecell_default_cfg (singlecell_t *ctx)
 Click Default Configuration function. More...
 
void singlecell_set_power_mode (singlecell_t *ctx, uint8_t en_mode)
 Set power mode function. More...
 

Detailed Description

Function Documentation

◆ singlecell_cfg_setup()

void singlecell_cfg_setup ( singlecell_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.

◆ singlecell_default_cfg()

void singlecell_default_cfg ( singlecell_t ctx)

Click Default Configuration function.

Parameters
ctxClick object.

This function executes default configuration for Single Cell click.

Note
Disable en pin.

◆ singlecell_init()

SINGLECELL_RETVAL singlecell_init ( singlecell_t ctx,
singlecell_cfg_t cfg 
)

Initialization function.

Parameters
singlecellClick object.
cfgClick configuration structure.

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

◆ singlecell_set_power_mode()

void singlecell_set_power_mode ( singlecell_t ctx,
uint8_t  en_mode 
)

Set power mode function.

Parameters
ctxClick object.
en_modeEnable or disable mode.

This function enabled or disabled the regulator output by sets to '1' or '0' state of the EN pin for Single Cell click.