boost2  2.0.0.0
Functions
Public function

Functions

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

Detailed Description

Function Documentation

◆ boost2_cfg_setup()

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

◆ boost2_get_pg_pin()

uint8_t boost2_get_pg_pin ( boost2_t ctx)

Get PG pin state.

Parameters
ctxClick object.

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.

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.

This function sets the state of EN pin.