gainamp3 2.0.0.0
GainAMP 3 Registers Settings

Settings for registers of GainAMP 3 Click driver. More...

Macros

#define GAINAMP3_SPI_CRC_ERR_DISABLE_BIT   0x20
 GainAMP 3 SPI CRC enable values.
 
#define GAINAMP3_SPI_CRC_ENABLE   0x01
 
#define GAINAMP3_SPI_CRC_DISABLE   0x00
 
#define GAINAMP3_DIE_REV_ID   0x30
 GainAMP 3 DIE revision identification value.
 
#define GAINAMP3_GAIN_1_OVER_16   0x00
 GainAMP 3 input amplifier gain levels values.
 
#define GAINAMP3_GAIN_1_OVER_8   0x01
 
#define GAINAMP3_GAIN_1_OVER_4   0x02
 
#define GAINAMP3_GAIN_1_OVER_2   0x03
 
#define GAINAMP3_GAIN_1   0x04
 
#define GAINAMP3_GAIN_2   0x05
 
#define GAINAMP3_GAIN_4   0x06
 
#define GAINAMP3_GAIN_8   0x07
 
#define GAINAMP3_GAIN_16   0x08
 
#define GAINAMP3_GAIN_32   0x09
 
#define GAINAMP3_GAIN_64   0x0A
 
#define GAINAMP3_GAIN_128   0x0B
 
#define GAINAMP3_GAIN_BITS_MASK   0x78
 
#define GAINAMP3_CHANNEL_1   0x00
 GainAMP 3 input channel values.
 
#define GAINAMP3_CHANNEL_2   0x01
 
#define GAINAMP3_CHANNEL_TEST   0x02
 
#define GAINAMP3_CHANNEL_SHORT_SWITCH   0x03
 
#define GAINAMP3_CHANNEL_BITS_MASK   0x60
 
#define GAINAMP3_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define GAINAMP3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of GainAMP 3 Click driver.

Macro Definition Documentation

◆ GAINAMP3_CHANNEL_1

#define GAINAMP3_CHANNEL_1   0x00

GainAMP 3 input channel values.

Specified values for input channels of GainAMP 3 Click driver.

◆ GAINAMP3_CHANNEL_2

#define GAINAMP3_CHANNEL_2   0x01

◆ GAINAMP3_CHANNEL_BITS_MASK

#define GAINAMP3_CHANNEL_BITS_MASK   0x60

◆ GAINAMP3_CHANNEL_SHORT_SWITCH

#define GAINAMP3_CHANNEL_SHORT_SWITCH   0x03

◆ GAINAMP3_CHANNEL_TEST

#define GAINAMP3_CHANNEL_TEST   0x02

◆ GAINAMP3_DIE_REV_ID

#define GAINAMP3_DIE_REV_ID   0x30

GainAMP 3 DIE revision identification value.

Specified value for DIE revision identification of GainAMP 3 Click driver.

◆ GAINAMP3_GAIN_1

#define GAINAMP3_GAIN_1   0x04

◆ GAINAMP3_GAIN_128

#define GAINAMP3_GAIN_128   0x0B

◆ GAINAMP3_GAIN_16

#define GAINAMP3_GAIN_16   0x08

◆ GAINAMP3_GAIN_1_OVER_16

#define GAINAMP3_GAIN_1_OVER_16   0x00

GainAMP 3 input amplifier gain levels values.

Specified values for input amplifier gain levels of GainAMP 3 Click driver.

◆ GAINAMP3_GAIN_1_OVER_2

#define GAINAMP3_GAIN_1_OVER_2   0x03

◆ GAINAMP3_GAIN_1_OVER_4

#define GAINAMP3_GAIN_1_OVER_4   0x02

◆ GAINAMP3_GAIN_1_OVER_8

#define GAINAMP3_GAIN_1_OVER_8   0x01

◆ GAINAMP3_GAIN_2

#define GAINAMP3_GAIN_2   0x05

◆ GAINAMP3_GAIN_32

#define GAINAMP3_GAIN_32   0x09

◆ GAINAMP3_GAIN_4

#define GAINAMP3_GAIN_4   0x06

◆ GAINAMP3_GAIN_64

#define GAINAMP3_GAIN_64   0x0A

◆ GAINAMP3_GAIN_8

#define GAINAMP3_GAIN_8   0x07

◆ GAINAMP3_GAIN_BITS_MASK

#define GAINAMP3_GAIN_BITS_MASK   0x78

◆ GAINAMP3_SET_DATA_SAMPLE_EDGE

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

◆ GAINAMP3_SET_DATA_SAMPLE_MIDDLE

#define GAINAMP3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ GAINAMP3_SPI_CRC_DISABLE

#define GAINAMP3_SPI_CRC_DISABLE   0x00

◆ GAINAMP3_SPI_CRC_ENABLE

#define GAINAMP3_SPI_CRC_ENABLE   0x01

◆ GAINAMP3_SPI_CRC_ERR_DISABLE_BIT

#define GAINAMP3_SPI_CRC_ERR_DISABLE_BIT   0x20

GainAMP 3 SPI CRC enable values.

Specified values for SPI CRC enable of GainAMP 3 Click driver.