currentlimit 2.0.0.0
Current Limit Registers Settings

Settings for registers of Current Limit Click driver. More...

Macros

#define CURRENTLIMIT_ENABLE   1
 Current Limit description setting.
 
#define CURRENTLIMIT_DISABLE   0
 
#define CURRENTLIMIT_LSB_VAL   392.2
 
#define CURRENTLIMIT_R_BASE   1200.0
 
#define CURRENTLIMIT_I_MAX   1.2
 
#define CURRENTLIMIT_CALC_COEF   1380.0
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_1   224
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_2   241
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_3   247
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_4   250
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_5   252
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_6   253
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_7   254
 
#define CURRENTLIMIT_CUR_LIM_VAL_0_867   255
 
#define CURRENTLIMIT_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define CURRENTLIMIT_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Current Limit Click driver.

Macro Definition Documentation

◆ CURRENTLIMIT_CALC_COEF

#define CURRENTLIMIT_CALC_COEF   1380.0

◆ CURRENTLIMIT_CUR_LIM_VAL_0_1

#define CURRENTLIMIT_CUR_LIM_VAL_0_1   224

◆ CURRENTLIMIT_CUR_LIM_VAL_0_2

#define CURRENTLIMIT_CUR_LIM_VAL_0_2   241

◆ CURRENTLIMIT_CUR_LIM_VAL_0_3

#define CURRENTLIMIT_CUR_LIM_VAL_0_3   247

◆ CURRENTLIMIT_CUR_LIM_VAL_0_4

#define CURRENTLIMIT_CUR_LIM_VAL_0_4   250

◆ CURRENTLIMIT_CUR_LIM_VAL_0_5

#define CURRENTLIMIT_CUR_LIM_VAL_0_5   252

◆ CURRENTLIMIT_CUR_LIM_VAL_0_6

#define CURRENTLIMIT_CUR_LIM_VAL_0_6   253

◆ CURRENTLIMIT_CUR_LIM_VAL_0_7

#define CURRENTLIMIT_CUR_LIM_VAL_0_7   254

◆ CURRENTLIMIT_CUR_LIM_VAL_0_867

#define CURRENTLIMIT_CUR_LIM_VAL_0_867   255

◆ CURRENTLIMIT_DISABLE

#define CURRENTLIMIT_DISABLE   0

◆ CURRENTLIMIT_ENABLE

#define CURRENTLIMIT_ENABLE   1

Current Limit description setting.

Specified setting for description of Current Limit Click driver.

◆ CURRENTLIMIT_I_MAX

#define CURRENTLIMIT_I_MAX   1.2

◆ CURRENTLIMIT_LSB_VAL

#define CURRENTLIMIT_LSB_VAL   392.2

◆ CURRENTLIMIT_R_BASE

#define CURRENTLIMIT_R_BASE   1200.0

◆ CURRENTLIMIT_SET_DATA_SAMPLE_EDGE

#define CURRENTLIMIT_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with currentlimit_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ CURRENTLIMIT_SET_DATA_SAMPLE_MIDDLE

#define CURRENTLIMIT_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE