smartbuck4 2.1.0.0
|
API for configuring and manipulating Smart Buck 4 Click driver. More...
Topics | |
Smart Buck 4 Registers List | |
List of registers of Smart Buck 4 Click driver. | |
Smart Buck 4 Registers Settings | |
Settings for registers of Smart Buck 4 Click driver. | |
Smart Buck 4 MikroBUS Map | |
MikroBUS pin mapping of Smart Buck 4 Click driver. | |
Functions | |
void | smartbuck4_cfg_setup (smartbuck4_cfg_t *cfg) |
Smart Buck 4 configuration object setup function. | |
err_t | smartbuck4_init (smartbuck4_t *ctx, smartbuck4_cfg_t *cfg) |
Smart Buck 4 initialization function. | |
err_t | smartbuck4_default_cfg (smartbuck4_t *ctx) |
Smart Buck 4 default configuration function. | |
void | smartbuck4_set_r40_out (smartbuck4_t *ctx, uint8_t out_level) |
Smart Buck 4 set R40 pin state function. | |
void | smartbuck4_en_r40_reg (smartbuck4_t *ctx) |
Smart Buck 4 enable 400A regulator function. | |
void | smartbuck4_dis_r40_reg (smartbuck4_t *ctx) |
Smart Buck 4 disable 400A regulator function. | |
void | smartbuck4_set_r60_out (smartbuck4_t *ctx, uint8_t out_level) |
Smart Buck 4 set R60 pin state function. | |
void | smartbuck4_en_r60_reg (smartbuck4_t *ctx) |
Smart Buck 4 enable 600A regulator function. | |
void | smartbuck4_dis_r60_reg (smartbuck4_t *ctx) |
Smart Buck 4 disable 600A regulator function. | |
err_t | smartbuck4_send_command (smartbuck4_t *ctx, uint8_t addr, uint8_t data_in) |
Smart Buck 4 send command function. | |
err_t | smartbuck4_disable_regulators (smartbuck4_t *ctx) |
Smart Buck 4 disable regulators function. | |
API for configuring and manipulating Smart Buck 4 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void smartbuck4_cfg_setup | ( | smartbuck4_cfg_t * | cfg | ) |
Smart Buck 4 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See smartbuck4_cfg_t object definition for detailed explanation. |
err_t smartbuck4_default_cfg | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 default configuration function.
This function executes a default configuration of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void smartbuck4_dis_r40_reg | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 disable 400A regulator function.
This function is used to disable 400A regulator of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
void smartbuck4_dis_r60_reg | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 disable 600A regulator function.
This function is used to disable 600A regulator of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
err_t smartbuck4_disable_regulators | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 disable regulators function.
This function is used to disable regulator output of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void smartbuck4_en_r40_reg | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 enable 400A regulator function.
This function is used to enable 400A regulator of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
void smartbuck4_en_r60_reg | ( | smartbuck4_t * | ctx | ) |
Smart Buck 4 enable 600A regulator function.
This function is used to enable 600A regulator of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
err_t smartbuck4_init | ( | smartbuck4_t * | ctx, |
smartbuck4_cfg_t * | cfg ) |
Smart Buck 4 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See smartbuck4_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t smartbuck4_send_command | ( | smartbuck4_t * | ctx, |
uint8_t | addr, | ||
uint8_t | data_in ) |
Smart Buck 4 send command function.
This function is used to send a specific command of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
[in] | addr | : Specific sub-address. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void smartbuck4_set_r40_out | ( | smartbuck4_t * | ctx, |
uint8_t | out_level ) |
Smart Buck 4 set R40 pin state function.
This function is used to set R40 pin value of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
[in] | out_level | : Pin output value. |
void smartbuck4_set_r60_out | ( | smartbuck4_t * | ctx, |
uint8_t | out_level ) |
Smart Buck 4 set R60 pin state function.
This function is used to set R60 pin value of Smart Buck 4 click board.
[in] | ctx | : Click context object. See smartbuck4_t object definition for detailed explanation. |
[in] | out_level | : Pin output value. |