buck9 2.0.0.0
Buck 9 Click Driver

API for configuring and manipulating Buck 9 Click driver. More...

Topics

 Buck 9 Device mode.
 Settings for device mode of Buck 9 Click driver.
 
 Buck 9 MikroBUS Map
 MikroBUS pin mapping of Buck 9 Click driver.
 

Functions

void buck9_cfg_setup (buck9_cfg_t *cfg)
 Buck 9 configuration object setup function.
 
err_t buck9_init (buck9_t *ctx, buck9_cfg_t *cfg)
 Buck 9 initialization function.
 
void buck9_set_device_mode (buck9_t *ctx, uint8_t mode)
 Function for enable or disable device.
 

Detailed Description

API for configuring and manipulating Buck 9 Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ buck9_cfg_setup()

void buck9_cfg_setup ( buck9_cfg_t * cfg)

Buck 9 configuration object setup function.

This function initializes click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See buck9_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ buck9_init()

err_t buck9_init ( buck9_t * ctx,
buck9_cfg_t * cfg )

Buck 9 initialization function.

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

Parameters
[out]ctx: Click context object. See buck9_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See buck9_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.

◆ buck9_set_device_mode()

void buck9_set_device_mode ( buck9_t * ctx,
uint8_t mode )

Function for enable or disable device.

This function enables and disables output of this click board.

Parameters
[in]ctx: Click context object. See buck9_t object definition for detailed explanation.
[in]mode: Disable or enable device
Returns
Nothing.
Note
When the device is enabled at the output gives 3.3v or 5v depending on the position of the jumper.