efuse3 2.0.0.0
|
API for configuring and manipulating e Fuse 3 Click driver. More...
Topics | |
e Fuse 3 Registers Settings | |
Settings for registers of e Fuse 3 Click driver. | |
e Fuse 3 MikroBUS Map | |
MikroBUS pin mapping of e Fuse 3 Click driver. | |
Vc_sel | |
Efuse3_get | |
Functions | |
void | efuse3_cfg_setup (efuse3_cfg_t *cfg) |
e Fuse 3 configuration object setup function. | |
err_t | efuse3_init (efuse3_t *ctx, efuse3_cfg_t *cfg) |
e Fuse 3 initialization function. | |
void | efuse3_default_cfg (efuse3_t *ctx) |
e Fuse 3 default configuration function. | |
err_t | efuse3_generic_read (efuse3_t *ctx, uint8_t *data_out, uint8_t len) |
e Fuse 3 data reading function. | |
err_t | efuse3_get_monitor_output (efuse3_t *ctx, float *voltage, uint8_t *overflow) |
e Fuse 3 get monitor output function. | |
err_t | efuse3_get_current (efuse3_t *ctx, float *current) |
e Fuse 3 get current function. | |
void | efuse3_enable_device (efuse3_t *ctx) |
e Fuse 3 enable device function. | |
void | efuse3_reset (efuse3_t *ctx) |
e Fuse 3 reset function. | |
void | efuse3_disable_device (efuse3_t *ctx) |
e Fuse 3 disable device function. | |
void | efuse3_set_overvoltage_clamp (efuse3_t *ctx, uint8_t vc_sel) |
e Fuse 3 set overvoltage clamp function. | |
uint8_t | efuse3_get_flag (efuse3_t *ctx) |
e Fuse 3 get flag function. | |
API for configuring and manipulating e Fuse 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 efuse3_cfg_setup | ( | efuse3_cfg_t * | cfg | ) |
e Fuse 3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See efuse3_cfg_t object definition for detailed explanation. |
void efuse3_default_cfg | ( | efuse3_t * | ctx | ) |
e Fuse 3 default configuration function.
This function executes a default configuration of e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
void efuse3_disable_device | ( | efuse3_t * | ctx | ) |
e Fuse 3 disable device function.
This function idsble the the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
0
- Success, -1
- Error.void efuse3_enable_device | ( | efuse3_t * | ctx | ) |
e Fuse 3 enable device function.
This function enable the the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t efuse3_generic_read | ( | efuse3_t * | ctx, |
uint8_t * | data_out, | ||
uint8_t | len ) |
e Fuse 3 data reading function.
This function reads a desired number of data bytes starting from the selected register by using SPI serial interface.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
0
- Success, -1
- Error.err_t efuse3_get_current | ( | efuse3_t * | ctx, |
float * | current ) |
e Fuse 3 get current function.
This function reads current of the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
[out] | current | : Current [ V ]. |
0
- Success, -1
- Error.uint8_t efuse3_get_flag | ( | efuse3_t * | ctx | ) |
e Fuse 3 get flag function.
This function get flag state of the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
0
( EFUSE3_FLAG_NORMAL_OPERATION )- Normal operation, 1
( EFUSE3_FLAG_DEVICE_OFF ) - device off when one of the following conditions occurs:err_t efuse3_get_monitor_output | ( | efuse3_t * | ctx, |
float * | voltage, | ||
uint8_t * | overflow ) |
e Fuse 3 get monitor output function.
This function reads and monitoring an output voltage of the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
[out] | voltage | : Output volatge [ V ]. |
[out] | overflow | : Overflow status. |
0
- Success, -1
- Error.err_t efuse3_init | ( | efuse3_t * | ctx, |
efuse3_cfg_t * | cfg ) |
e Fuse 3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See efuse3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void efuse3_reset | ( | efuse3_t * | ctx | ) |
e Fuse 3 reset function.
This function reset the the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
0
- Success, -1
- Error.void efuse3_set_overvoltage_clamp | ( | efuse3_t * | ctx, |
uint8_t | vc_sel ) |
e Fuse 3 set overvoltage clamp function.
This function set overvoltage clamp to be set at either a 5.7 V or 6.5 V minimum of the NIS6150 +5 Volt Electronic eFuse on the e Fuse 3 click board.
[in] | ctx | : Click context object. See efuse3_t object definition for detailed explanation. |
[in] | vc_sel | :
|
0
- Success, -1
- Error.