ldc2 2.0.0.0
LDC 2 Registers Settings

Settings for registers of LDC 2 Click driver. More...

Macros

#define LDC2_DEVICE_ID   0x84
 LDC 2 Device ID value.
 
#define LDC2_SPI_READ_MASK   0x80
 LDC 2 SPI read/write bit mask.
 
#define LDC2_SPI_WRITE_MASK   0x7F
 
#define LDC2_COMPARATOR_THLD_MIN   0x00
 LDC 2 Comparator threshold range.
 
#define LDC2_COMPARATOR_THLD_MAX   0xFF
 
#define LDC2_STATUS_OSC_STOPPED   0x80
 LDC 2 status register flags.
 
#define LDC2_STATUS_NO_NEW_DATA   0x40
 
#define LDC2_STATUS_WAKE_UP_DISABLED   0x20
 
#define LDC2_STATUS_PROX_DATA_LESS_THAN_THLD   0x10
 
#define LDC2_MHZ_TO_HZ   1000000.0
 LDC 2 contants.
 
#define LDC2_EXTERNAL_OSC_MHZ   1.8432
 
#define LDC2_PARALLEL_CAPACITANCE_uF   0.000047
 
#define LDC2_MIN_SENSOR_FREQ_CONST   68.94
 
#define LDC2_MIN_SENSOR_FREQ_DIVIDER   2500.0
 
#define LDC2_ROUND_TO_NEAREST_INT   0.5
 
#define LDC2_MATH_TWO_PI   6.28318530717958
 
#define LDC2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define LDC2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of LDC 2 Click driver.

Macro Definition Documentation

◆ LDC2_COMPARATOR_THLD_MAX

#define LDC2_COMPARATOR_THLD_MAX   0xFF

◆ LDC2_COMPARATOR_THLD_MIN

#define LDC2_COMPARATOR_THLD_MIN   0x00

LDC 2 Comparator threshold range.

Specified range for comparator threshold of LDC 2 Click driver.

◆ LDC2_DEVICE_ID

#define LDC2_DEVICE_ID   0x84

LDC 2 Device ID value.

Specified value for device ID of LDC 2 Click driver.

◆ LDC2_EXTERNAL_OSC_MHZ

#define LDC2_EXTERNAL_OSC_MHZ   1.8432

◆ LDC2_MATH_TWO_PI

#define LDC2_MATH_TWO_PI   6.28318530717958

◆ LDC2_MHZ_TO_HZ

#define LDC2_MHZ_TO_HZ   1000000.0

LDC 2 contants.

Specified constants for LDC 2 Click driver.

◆ LDC2_MIN_SENSOR_FREQ_CONST

#define LDC2_MIN_SENSOR_FREQ_CONST   68.94

◆ LDC2_MIN_SENSOR_FREQ_DIVIDER

#define LDC2_MIN_SENSOR_FREQ_DIVIDER   2500.0

◆ LDC2_PARALLEL_CAPACITANCE_uF

#define LDC2_PARALLEL_CAPACITANCE_uF   0.000047

◆ LDC2_ROUND_TO_NEAREST_INT

#define LDC2_ROUND_TO_NEAREST_INT   0.5

◆ LDC2_SET_DATA_SAMPLE_EDGE

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

◆ LDC2_SET_DATA_SAMPLE_MIDDLE

#define LDC2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ LDC2_SPI_READ_MASK

#define LDC2_SPI_READ_MASK   0x80

LDC 2 SPI read/write bit mask.

Specified bit mask for SPI read/write of LDC 2 Click driver.

◆ LDC2_SPI_WRITE_MASK

#define LDC2_SPI_WRITE_MASK   0x7F

◆ LDC2_STATUS_NO_NEW_DATA

#define LDC2_STATUS_NO_NEW_DATA   0x40

◆ LDC2_STATUS_OSC_STOPPED

#define LDC2_STATUS_OSC_STOPPED   0x80

LDC 2 status register flags.

Specified flags for status register of LDC 2 Click driver.

◆ LDC2_STATUS_PROX_DATA_LESS_THAN_THLD

#define LDC2_STATUS_PROX_DATA_LESS_THAN_THLD   0x10

◆ LDC2_STATUS_WAKE_UP_DISABLED

#define LDC2_STATUS_WAKE_UP_DISABLED   0x20