adc24 2.1.0.0
ADC 24 Control Register Settings

Settings for control register of ADC 24 Click driver. More...

Macros

#define ADC24_CTRL_SET_WRITE   0x0800u
 ADC 24 control register setting.
 
#define ADC24_CTRL_SET_SEQ   0x0400u
 
#define ADC24_CTRL_SET_CH_0   0x0000u
 
#define ADC24_CTRL_SET_CH_1   0x0040u
 
#define ADC24_CTRL_SET_CH_2   0x0080u
 
#define ADC24_CTRL_SET_CH_3   0x00C0u
 
#define ADC24_CTRL_SET_CH_4   0x0100u
 
#define ADC24_CTRL_SET_CH_5   0x0140u
 
#define ADC24_CTRL_SET_CH_6   0x0180u
 
#define ADC24_CTRL_SET_CH_7   0x01C0u
 
#define ADC24_CTRL_SET_CH_8   0x0200u
 
#define ADC24_CTRL_SET_CH_9   0x0240u
 
#define ADC24_CTRL_SET_CH_10   0x0280u
 
#define ADC24_CTRL_SET_CH_11   0x02C0u
 
#define ADC24_CTRL_SET_CH_12   0x0300u
 
#define ADC24_CTRL_SET_CH_13   0x0340u
 
#define ADC24_CTRL_SET_CH_14   0x0380u
 
#define ADC24_CTRL_SET_CH_15   0x03C0u
 
#define ADC24_CTRL_SET_PM_NORMAL   0x0030u
 
#define ADC24_CTRL_SET_PM_FULL_SHDN   0x0020u
 
#define ADC24_CTRL_SET_PM_AUTO_SHDN   0x0010u
 
#define ADC24_CTRL_SET_PM_STANDBY   0x0000u
 
#define ADC24_CTRL_SET_SHADOW   0x0008u
 
#define ADC24_CTRL_SET_WEAK   0x0004u
 
#define ADC24_CTRL_SET_RANGE_5V   0x0000u
 
#define ADC24_CTRL_SET_RANGE_2_5V   0x0002u
 
#define ADC24_CTRL_SET_CODING_2C   0x0000u
 
#define ADC24_CTRL_SET_CODING_BIN   0x0001u
 
#define ADC24_SEQ_SHADOW_AN_INPUT   0
 ADC 24 sequence selection setting.
 
#define ADC24_SEQ_SHADOW_PROGRAMMING   1
 
#define ADC24_SEQ_SHADOW_ALTERED   2
 
#define ADC24_SEQ_SHADOW_ADDR_CONJ   3
 
#define ADC24_CH_SEL_IN_0   0
 ADC 24 channel selection setting.
 
#define ADC24_CH_SEL_IN_1   1
 
#define ADC24_CH_SEL_IN_2   2
 
#define ADC24_CH_SEL_IN_3   3
 
#define ADC24_CH_SEL_IN_4   4
 
#define ADC24_CH_SEL_IN_5   5
 
#define ADC24_CH_SEL_IN_6   6
 
#define ADC24_CH_SEL_IN_7   7
 
#define ADC24_CH_SEL_IN_8   8
 
#define ADC24_CH_SEL_IN_9   9
 
#define ADC24_CH_SEL_IN_10   10
 
#define ADC24_CH_SEL_IN_11   11
 
#define ADC24_CH_SEL_IN_12   12
 
#define ADC24_CH_SEL_IN_13   13
 
#define ADC24_CH_SEL_IN_14   14
 
#define ADC24_CH_SEL_IN_15   15
 
#define ADC24_PM_STANDBY   0
 ADC 24 power management selection setting.
 
#define ADC24_PM_AUTO_SHDN   1
 
#define ADC24_PM_FULL_SHDN   2
 
#define ADC24_PM_NORMAL   3
 
#define ADC24_WEAK_DOUT_THREE_STATE   0
 ADC 24 serial transfer setting.
 
#define ADC24_WEAK_DOUT_WEAKLY_DRIVEN   1
 
#define ADC24_RANGE_VREF_5V   0
 ADC 24 analog input range selection setting.
 
#define ADC24_RANGE_VREF_2V5   1
 
#define ADC24_CODING_2C   0
 ADC 24 selection of type of output coding.
 
#define ADC24_CODING_BIN   1
 
#define ADC24_ADC_RESOLUTION   0x0FFF
 ADC 24 ADC resolution and voltage reference data value.
 
#define ADC24_VREF_2V5   2.5f
 
#define ADC24_VREF_5V   5.0f
 
#define ADC24_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ADC24_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for control register of ADC 24 Click driver.

Macro Definition Documentation

◆ ADC24_ADC_RESOLUTION

#define ADC24_ADC_RESOLUTION   0x0FFF

ADC 24 ADC resolution and voltage reference data value.

Specified setting for ADC resolution and voltage reference data of ADC 24 Click driver.

◆ ADC24_CH_SEL_IN_0

#define ADC24_CH_SEL_IN_0   0

ADC 24 channel selection setting.

Specified setting for channel selection of ADC 24 Click driver.

◆ ADC24_CH_SEL_IN_1

#define ADC24_CH_SEL_IN_1   1

◆ ADC24_CH_SEL_IN_10

#define ADC24_CH_SEL_IN_10   10

◆ ADC24_CH_SEL_IN_11

#define ADC24_CH_SEL_IN_11   11

◆ ADC24_CH_SEL_IN_12

#define ADC24_CH_SEL_IN_12   12

◆ ADC24_CH_SEL_IN_13

#define ADC24_CH_SEL_IN_13   13

◆ ADC24_CH_SEL_IN_14

#define ADC24_CH_SEL_IN_14   14

◆ ADC24_CH_SEL_IN_15

#define ADC24_CH_SEL_IN_15   15

◆ ADC24_CH_SEL_IN_2

#define ADC24_CH_SEL_IN_2   2

◆ ADC24_CH_SEL_IN_3

#define ADC24_CH_SEL_IN_3   3

◆ ADC24_CH_SEL_IN_4

#define ADC24_CH_SEL_IN_4   4

◆ ADC24_CH_SEL_IN_5

#define ADC24_CH_SEL_IN_5   5

◆ ADC24_CH_SEL_IN_6

#define ADC24_CH_SEL_IN_6   6

◆ ADC24_CH_SEL_IN_7

#define ADC24_CH_SEL_IN_7   7

◆ ADC24_CH_SEL_IN_8

#define ADC24_CH_SEL_IN_8   8

◆ ADC24_CH_SEL_IN_9

#define ADC24_CH_SEL_IN_9   9

◆ ADC24_CODING_2C

#define ADC24_CODING_2C   0

ADC 24 selection of type of output coding.

Specified setting for selection of type of output coding of ADC 24 Click driver.

◆ ADC24_CODING_BIN

#define ADC24_CODING_BIN   1

◆ ADC24_CTRL_SET_CH_0

#define ADC24_CTRL_SET_CH_0   0x0000u

◆ ADC24_CTRL_SET_CH_1

#define ADC24_CTRL_SET_CH_1   0x0040u

◆ ADC24_CTRL_SET_CH_10

#define ADC24_CTRL_SET_CH_10   0x0280u

◆ ADC24_CTRL_SET_CH_11

#define ADC24_CTRL_SET_CH_11   0x02C0u

◆ ADC24_CTRL_SET_CH_12

#define ADC24_CTRL_SET_CH_12   0x0300u

◆ ADC24_CTRL_SET_CH_13

#define ADC24_CTRL_SET_CH_13   0x0340u

◆ ADC24_CTRL_SET_CH_14

#define ADC24_CTRL_SET_CH_14   0x0380u

◆ ADC24_CTRL_SET_CH_15

#define ADC24_CTRL_SET_CH_15   0x03C0u

◆ ADC24_CTRL_SET_CH_2

#define ADC24_CTRL_SET_CH_2   0x0080u

◆ ADC24_CTRL_SET_CH_3

#define ADC24_CTRL_SET_CH_3   0x00C0u

◆ ADC24_CTRL_SET_CH_4

#define ADC24_CTRL_SET_CH_4   0x0100u

◆ ADC24_CTRL_SET_CH_5

#define ADC24_CTRL_SET_CH_5   0x0140u

◆ ADC24_CTRL_SET_CH_6

#define ADC24_CTRL_SET_CH_6   0x0180u

◆ ADC24_CTRL_SET_CH_7

#define ADC24_CTRL_SET_CH_7   0x01C0u

◆ ADC24_CTRL_SET_CH_8

#define ADC24_CTRL_SET_CH_8   0x0200u

◆ ADC24_CTRL_SET_CH_9

#define ADC24_CTRL_SET_CH_9   0x0240u

◆ ADC24_CTRL_SET_CODING_2C

#define ADC24_CTRL_SET_CODING_2C   0x0000u

◆ ADC24_CTRL_SET_CODING_BIN

#define ADC24_CTRL_SET_CODING_BIN   0x0001u

◆ ADC24_CTRL_SET_PM_AUTO_SHDN

#define ADC24_CTRL_SET_PM_AUTO_SHDN   0x0010u

◆ ADC24_CTRL_SET_PM_FULL_SHDN

#define ADC24_CTRL_SET_PM_FULL_SHDN   0x0020u

◆ ADC24_CTRL_SET_PM_NORMAL

#define ADC24_CTRL_SET_PM_NORMAL   0x0030u

◆ ADC24_CTRL_SET_PM_STANDBY

#define ADC24_CTRL_SET_PM_STANDBY   0x0000u

◆ ADC24_CTRL_SET_RANGE_2_5V

#define ADC24_CTRL_SET_RANGE_2_5V   0x0002u

◆ ADC24_CTRL_SET_RANGE_5V

#define ADC24_CTRL_SET_RANGE_5V   0x0000u

◆ ADC24_CTRL_SET_SEQ

#define ADC24_CTRL_SET_SEQ   0x0400u

◆ ADC24_CTRL_SET_SHADOW

#define ADC24_CTRL_SET_SHADOW   0x0008u

◆ ADC24_CTRL_SET_WEAK

#define ADC24_CTRL_SET_WEAK   0x0004u

◆ ADC24_CTRL_SET_WRITE

#define ADC24_CTRL_SET_WRITE   0x0800u

ADC 24 control register setting.

Specified setting for control register of ADC 24 Click driver.

◆ ADC24_PM_AUTO_SHDN

#define ADC24_PM_AUTO_SHDN   1

◆ ADC24_PM_FULL_SHDN

#define ADC24_PM_FULL_SHDN   2

◆ ADC24_PM_NORMAL

#define ADC24_PM_NORMAL   3

◆ ADC24_PM_STANDBY

#define ADC24_PM_STANDBY   0

ADC 24 power management selection setting.

Specified setting for power management selection of ADC 24 Click driver.

◆ ADC24_RANGE_VREF_2V5

#define ADC24_RANGE_VREF_2V5   1

◆ ADC24_RANGE_VREF_5V

#define ADC24_RANGE_VREF_5V   0

ADC 24 analog input range selection setting.

Specified setting for analog input range selection of ADC 24 Click driver.

◆ ADC24_SEQ_SHADOW_ADDR_CONJ

#define ADC24_SEQ_SHADOW_ADDR_CONJ   3

◆ ADC24_SEQ_SHADOW_ALTERED

#define ADC24_SEQ_SHADOW_ALTERED   2

◆ ADC24_SEQ_SHADOW_AN_INPUT

#define ADC24_SEQ_SHADOW_AN_INPUT   0

ADC 24 sequence selection setting.

Specified setting for sequence selection of ADC 24 Click driver.

◆ ADC24_SEQ_SHADOW_PROGRAMMING

#define ADC24_SEQ_SHADOW_PROGRAMMING   1

◆ ADC24_SET_DATA_SAMPLE_EDGE

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

◆ ADC24_SET_DATA_SAMPLE_MIDDLE

#define ADC24_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ADC24_VREF_2V5

#define ADC24_VREF_2V5   2.5f

◆ ADC24_VREF_5V

#define ADC24_VREF_5V   5.0f

◆ ADC24_WEAK_DOUT_THREE_STATE

#define ADC24_WEAK_DOUT_THREE_STATE   0

ADC 24 serial transfer setting.

Specified setting for end of the current serial transfer of ADC 24 Click driver.

◆ ADC24_WEAK_DOUT_WEAKLY_DRIVEN

#define ADC24_WEAK_DOUT_WEAKLY_DRIVEN   1