stepdown3 2.0.0.0
|
API for configuring and manipulating Step Down 3 Click driver. More...
Topics | |
Step Down 3 Settings | |
Settings of Step Down 3 Click driver. | |
Step Down 3 MikroBUS Map | |
MikroBUS pin mapping of Step Down 3 Click driver. | |
Functions | |
void | stepdown3_cfg_setup (stepdown3_cfg_t *cfg) |
Step Down 3 configuration object setup function. | |
err_t | stepdown3_init (stepdown3_t *ctx, stepdown3_cfg_t *cfg) |
Step Down 3 initialization function. | |
void | stepdown3_enable_device (stepdown3_t *ctx) |
Step Down 3 enable device function. | |
void | stepdown3_disable_device (stepdown3_t *ctx) |
Step Down 3 disable device function. | |
void | stepdown3_enable_aux_output (stepdown3_t *ctx) |
Step Down 3 enable aux output function. | |
void | stepdown3_disable_aux_output (stepdown3_t *ctx) |
Step Down 3 disable aux output function. | |
void | stepdown3_set_output_voltage (stepdown3_t *ctx, uint8_t vout) |
Step Down 3 set output voltage function. | |
API for configuring and manipulating Step Down 3 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void stepdown3_cfg_setup | ( | stepdown3_cfg_t * | cfg | ) |
Step Down 3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See stepdown3_cfg_t object definition for detailed explanation. |
void stepdown3_disable_aux_output | ( | stepdown3_t * | ctx | ) |
Step Down 3 disable aux output function.
This function disables the auxiliary output (VOUT_AUX) by setting the AUX pin to LOW logic state.
[in] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
void stepdown3_disable_device | ( | stepdown3_t * | ctx | ) |
Step Down 3 disable device function.
This function disables the device by setting the EN pin to LOW logic state.
[in] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
void stepdown3_enable_aux_output | ( | stepdown3_t * | ctx | ) |
Step Down 3 enable aux output function.
This function enables the auxiliary output (VOUT_AUX) by setting the AUX pin to HIGH logic state.
[in] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
void stepdown3_enable_device | ( | stepdown3_t * | ctx | ) |
Step Down 3 enable device function.
This function enables the device by setting the EN pin to HIGH logic state.
[in] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
err_t stepdown3_init | ( | stepdown3_t * | ctx, |
stepdown3_cfg_t * | cfg ) |
Step Down 3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See stepdown3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void stepdown3_set_output_voltage | ( | stepdown3_t * | ctx, |
uint8_t | vout ) |
Step Down 3 set output voltage function.
This function sets the output voltage by setting the D2, D1, and D0 pins to a desired state.
[in] | ctx | : Click context object. See stepdown3_t object definition for detailed explanation. |
[in] | vout | : Voltage output
|