efuse7 2.1.0.0
efuse7.h File Reference

This file contains API for eFuse 7 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  efuse7_t
 eFuse 7 Click context object. More...
 
struct  efuse7_cfg_t
 eFuse 7 Click configuration object. More...
 

Macros

#define EFUSE7_CONVERSION_MUL   156.25f
 eFuse 7 description setting.
 
#define EFUSE7_MAX_RESISTANCE   12000
 
#define EFUSE7_R5_RESISTANCE   2000
 
#define EFUSE7_LIMIT_1A_RESISTANCE   10500
 
#define EFUSE7_LIMIT_2A_RESISTANCE   5200
 
#define EFUSE7_LIMIT_2A5_RESISTANCE   4200
 
#define EFUSE7_LIMIT_3A_RESISTANCE   3500
 
#define EFUSE7_LIMIT_3A5_RESISTANCE   3000
 
#define EFUSE7_LIMIT_4A_RESISTANCE   2700
 
#define EFUSE7_LIMIT_4A5_RESISTANCE   2400
 
#define EFUSE7_LIMIT_5A_RESISTANCE   2100
 
#define EFUSE7_POT_STEPS   64
 
#define EFUSE7_CURRENT_LIMIT_1A   0x00
 eFuse 7 current limit setting.
 
#define EFUSE7_CURRENT_LIMIT_2A   0x01
 
#define EFUSE7_CURRENT_LIMIT_2A5   0x02
 
#define EFUSE7_CURRENT_LIMIT_3A   0x03
 
#define EFUSE7_CURRENT_LIMIT_3A5   0x04
 
#define EFUSE7_CURRENT_LIMIT_4A   0x05
 
#define EFUSE7_CURRENT_LIMIT_4A5   0x06
 
#define EFUSE7_CURRENT_LIMIT_5A   0x07
 
#define EFUSE7_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  efuse7_return_value_t { EFUSE7_OK = 0 , EFUSE7_ERROR = -1 }
 eFuse 7 Click return value data. More...
 

Functions

void efuse7_cfg_setup (efuse7_cfg_t *cfg)
 eFuse 7 configuration object setup function.
 
err_t efuse7_init (efuse7_t *ctx, efuse7_cfg_t *cfg)
 eFuse 7 initialization function.
 
err_t efuse7_default_cfg (efuse7_t *ctx)
 eFuse 7 default configuration function.
 
void efuse7_enable_output (efuse7_t *ctx)
 eFuse 7 output enable function.
 
void efuse7_disable_output (efuse7_t *ctx)
 eFuse 7 output disable function.
 
void efuse7_wiper_inc (efuse7_t *ctx, uint8_t inc_num)
 eFuse 7 wiper position increase function.
 
void efuse7_wiper_dec (efuse7_t *ctx, uint8_t dec_num)
 eFuse 7 wiper position decrease function.
 
err_t efuse7_set_resistance (efuse7_t *ctx, uint16_t resistance)
 eFuse 7 set digital potentiometer resistance function.
 
err_t efuse7_set_limit (efuse7_t *ctx, uint8_t set_current)
 eFuse 7 set current limit function.
 

Detailed Description

This file contains API for eFuse 7 Click Driver.

Enumeration Type Documentation

◆ efuse7_return_value_t

eFuse 7 Click return value data.

Predefined enum values for driver return values.

Enumerator
EFUSE7_OK 
EFUSE7_ERROR