boost2 2.0.0.0
Public function

Functions

void boost2_cfg_setup (boost2_cfg_t *cfg)
 Config Object Initialization function.
 
BOOST2_RETVAL boost2_init (boost2_t *ctx, boost2_cfg_t *cfg)
 Initialization function.
 
void boost2_set_en_pin (boost2_t *ctx, uint8_t new_state)
 Set enable pin.
 
uint8_t boost2_get_pg_pin (boost2_t *ctx)
 Get PG pin state.
 

Detailed Description

Function Documentation

◆ boost2_cfg_setup()

void boost2_cfg_setup ( boost2_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.

◆ boost2_get_pg_pin()

uint8_t boost2_get_pg_pin ( boost2_t * ctx)

Get PG pin state.

Parameters
ctxClick object.

@description This function returns the state of PG pin.

◆ boost2_init()

BOOST2_RETVAL boost2_init ( boost2_t * ctx,
boost2_cfg_t * cfg )

Initialization function.

Parameters
boost2Click object.
cfgClick configuration structure.

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

◆ boost2_set_en_pin()

void boost2_set_en_pin ( boost2_t * ctx,
uint8_t new_state )

Set enable pin.

Parameters
ctxClick object.
new_stateSelected new state of the enable pin.

@description This function sets the state of EN pin.