buck10 2.0.0.0
Buck 10 Click Driver

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

Topics

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

Functions

void buck10_cfg_setup (buck10_cfg_t *cfg)
 Buck 10 configuration object setup function.
 
err_t buck10_init (buck10_t *ctx, buck10_cfg_t *cfg)
 Buck 10 initialization function.
 
void buck10_set_device_mode (buck10_t *ctx, uint8_t mode)
 Function for enable or disable device.
 

Detailed Description

API for configuring and manipulating Buck 10 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

◆ buck10_cfg_setup()

void buck10_cfg_setup ( buck10_cfg_t * cfg)

Buck 10 configuration object setup function.

This function initializes click configuration structure to initial values.

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

◆ buck10_init()

err_t buck10_init ( buck10_t * ctx,
buck10_cfg_t * cfg )

Buck 10 initialization function.

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

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

◆ buck10_set_device_mode()

void buck10_set_device_mode ( buck10_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 buck10_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.