singlecell 2.0.0.0

Functions

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

Detailed Description

Function Documentation

◆ singlecell_cfg_setup()

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

◆ singlecell_default_cfg()

void singlecell_default_cfg ( singlecell_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

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

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

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