current5 2.0.0.0
Current 5 Registers Settings

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

Macros

#define CURRENT5_VOLTAGE_GAIN   200.0
 Current 5 current calculation values.
 
#define CURRENT5_VREF_mV   3300.0
 
#define CURRENT5_RESOLUTION   4096.0
 
#define CURRENT5_RSHUNT_mOHM   2.0
 
#define CURRENT5_GAIN_ERROR_PERCENTS   6.0
 
#define CURRENT5_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define CURRENT5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Current 5 Click driver.

Macro Definition Documentation

◆ CURRENT5_GAIN_ERROR_PERCENTS

#define CURRENT5_GAIN_ERROR_PERCENTS   6.0

◆ CURRENT5_RESOLUTION

#define CURRENT5_RESOLUTION   4096.0

◆ CURRENT5_RSHUNT_mOHM

#define CURRENT5_RSHUNT_mOHM   2.0

◆ CURRENT5_SET_DATA_SAMPLE_EDGE

#define CURRENT5_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 current5_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ CURRENT5_SET_DATA_SAMPLE_MIDDLE

#define CURRENT5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ CURRENT5_VOLTAGE_GAIN

#define CURRENT5_VOLTAGE_GAIN   200.0

Current 5 current calculation values.

Specified current calculation values of Current 5 Click driver.

◆ CURRENT5_VREF_mV

#define CURRENT5_VREF_mV   3300.0