buck10 2.0.0.0
|
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. | |
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.
void buck10_cfg_setup | ( | buck10_cfg_t * | cfg | ) |
Buck 10 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See buck10_cfg_t object definition for detailed explanation. |
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.
[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. |
0
- Success, -1
- Error.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.
[in] | ctx | : Click context object. See buck10_t object definition for detailed explanation. |
[in] | mode | : Disable or enable device |