efuse3 2.0.0.0
efuse3.h File Reference

This file contains API for e Fuse 3 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  efuse3_t
 e Fuse 3 Click context object. More...
 
struct  efuse3_cfg_t
 e Fuse 3 Click configuration object. More...
 

Macros

#define EFUSE3_OVERFLOW_LOW   2
 e Fuse 3 description setting.
 
#define EFUSE3_OVERFLOW_HIGH   1
 
#define EFUSE3_NO_OVERFLOW   0
 
#define EFUSE3_VC_SEL_6_1_V   0
 e Fuse 3 Vclamp level setting.
 
#define EFUSE3_VC_SEL_6_9_V   1
 
#define EFUSE3_FLAG_NORMAL_OPERATION   0
 e Fuse 3 description flag status.
 
#define EFUSE3_FLAG_DEVICE_OFF   1
 
#define EFUSE3_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  efuse3_return_value_t { EFUSE3_OK = 0 , EFUSE3_ERROR = -1 }
 e Fuse 3 Click return value data. More...
 

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.
 

Detailed Description

This file contains API for e Fuse 3 Click Driver.

Enumeration Type Documentation

◆ efuse3_return_value_t

e Fuse 3 Click return value data.

Predefined enum values for driver return values.

Enumerator
EFUSE3_OK 
EFUSE3_ERROR