nanopower2 2.0.0.0

Functions

void nanopower2_cfg_setup (nanopower2_cfg_t *cfg)
 Config Object Initialization function.
 
err_t nanopower2_init (nanopower2_t *ctx, nanopower2_cfg_t *cfg)
 Initialization function.
 
uint8_t nanopower2_check_output (nanopower2_t *ctx)
 Click Check Output function.
 

Detailed Description

Function Documentation

◆ nanopower2_cfg_setup()

void nanopower2_cfg_setup ( nanopower2_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.

◆ nanopower2_check_output()

uint8_t nanopower2_check_output ( nanopower2_t * ctx)

Click Check Output function.

Parameters
ctxClick object.

This function checks the output of the Nano Power 2 click.

Returns
Out pin value

◆ nanopower2_init()

err_t nanopower2_init ( nanopower2_t * ctx,
nanopower2_cfg_t * cfg )

Initialization function.

Parameters
nanopower2Click object.
cfgClick configuration structure.

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