efuse 2.0.0.0
|
API for configuring and manipulating eFuse Click driver. More...
Topics | |
eFuse MikroBUS Map | |
MikroBUS pin mapping of eFuse Click driver. | |
Functions | |
void | efuse_cfg_setup (efuse_cfg_t *cfg) |
eFuse configuration object setup function. | |
err_t | efuse_init (efuse_t *ctx, efuse_cfg_t *cfg) |
eFuse initialization function. | |
err_t | efuse_default_cfg (efuse_t *ctx) |
eFuse default configuration function. | |
void | efuse_enable_device (efuse_t *ctx) |
eFuse enable the device function. | |
void | efuse_disable_device (efuse_t *ctx) |
eFuse disable the device function. | |
void | efuse_enable_pwm (efuse_t *ctx) |
eFuse enable PWM function. | |
void | efuse_disable_pwm (efuse_t *ctx) |
eFuse disable the device function. | |
API for configuring and manipulating eFuse Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void efuse_cfg_setup | ( | efuse_cfg_t * | cfg | ) |
eFuse configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See efuse_cfg_t object definition for detailed explanation. |
err_t efuse_default_cfg | ( | efuse_t * | ctx | ) |
eFuse default configuration function.
This function executes a default configuration of eFuse click board.
[in] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
0
- Success, -1
- Error.void efuse_disable_device | ( | efuse_t * | ctx | ) |
eFuse disable the device function.
This function performs disable the device by clears the EN pin on the low level of eFuse click board.
[in] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
void efuse_disable_pwm | ( | efuse_t * | ctx | ) |
eFuse disable the device function.
This function performs disable the device by sets the PWM pin on the high level of eFuse click board.
[in] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
void efuse_enable_device | ( | efuse_t * | ctx | ) |
eFuse enable the device function.
This function performs enable the device by sets the EN pin on the high level of eFuse click board.
[in] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
void efuse_enable_pwm | ( | efuse_t * | ctx | ) |
eFuse enable PWM function.
This function performs enable PWM by clears the PWM pin on the low level of eFuse click board.
[in] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
err_t efuse_init | ( | efuse_t * | ctx, |
efuse_cfg_t * | cfg ) |
eFuse initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See efuse_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See efuse_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.