39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define EFUSE7_CONVERSION_MUL 156.25f
73#define EFUSE7_MAX_RESISTANCE 12000
74#define EFUSE7_R5_RESISTANCE 2000
75#define EFUSE7_LIMIT_1A_RESISTANCE 10500
76#define EFUSE7_LIMIT_2A_RESISTANCE 5200
77#define EFUSE7_LIMIT_2A5_RESISTANCE 4200
78#define EFUSE7_LIMIT_3A_RESISTANCE 3500
79#define EFUSE7_LIMIT_3A5_RESISTANCE 3000
80#define EFUSE7_LIMIT_4A_RESISTANCE 2700
81#define EFUSE7_LIMIT_4A5_RESISTANCE 2400
82#define EFUSE7_LIMIT_5A_RESISTANCE 2100
83#define EFUSE7_POT_STEPS 64
89#define EFUSE7_CURRENT_LIMIT_1A 0x00
90#define EFUSE7_CURRENT_LIMIT_2A 0x01
91#define EFUSE7_CURRENT_LIMIT_2A5 0x02
92#define EFUSE7_CURRENT_LIMIT_3A 0x03
93#define EFUSE7_CURRENT_LIMIT_3A5 0x04
94#define EFUSE7_CURRENT_LIMIT_4A 0x05
95#define EFUSE7_CURRENT_LIMIT_4A5 0x06
96#define EFUSE7_CURRENT_LIMIT_5A 0x07
115#define EFUSE7_MAP_MIKROBUS( cfg, mikrobus ) \
116 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
117 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
118 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
119 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI )
efuse7_return_value_t
eFuse 7 Click return value data.
Definition efuse7.h:156
@ EFUSE7_ERROR
Definition efuse7.h:158
@ EFUSE7_OK
Definition efuse7.h:157
err_t efuse7_set_limit(efuse7_t *ctx, uint8_t set_current)
eFuse 7 set current limit function.
err_t efuse7_init(efuse7_t *ctx, efuse7_cfg_t *cfg)
eFuse 7 initialization function.
void efuse7_cfg_setup(efuse7_cfg_t *cfg)
eFuse 7 configuration object setup function.
void efuse7_wiper_inc(efuse7_t *ctx, uint8_t inc_num)
eFuse 7 wiper position increase 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_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_default_cfg(efuse7_t *ctx)
eFuse 7 default configuration function.
eFuse 7 Click configuration object.
Definition efuse7.h:143
pin_name_t sck
Definition efuse7.h:146
pin_name_t mosi
Definition efuse7.h:147
pin_name_t rst
Definition efuse7.h:144
pin_name_t cs
Definition efuse7.h:145
eFuse 7 Click context object.
Definition efuse7.h:129
digital_out_t cs
Definition efuse7.h:132
digital_out_t sck
Definition efuse7.h:133
digital_out_t mosi
Definition efuse7.h:134
digital_out_t rst
Definition efuse7.h:131