rtd2 2.0.0.0

Topics

 MikroBUS
 
 Register Map
 
 Command Definitions
 
 Multiplexer Control Register 0 (MUX0) Definition
 
 Multiplexer Control Register 1 (MUX1) Definition
 
 0 System Control Register 0 (SYS0) Definition
 
 IDAC Control Register 0 (IDAC0) Definition
 
 IDAC Control Register 1 (IDAC1) Definition
 
 GPIO Configuration Register (GPIOCFG) Definition
 
 Definition GPIO Direction Register (GPIODIR) Definition
 
 GPIO Data Register (GPIODAT) Definition
 
 Pin States Definition
 
 Flags Definition Error Flags Definition
 
 Start conversion
 
 Check new data ready
 
 Linearization coefficient for Pt100
 

Macros

#define RTD2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define RTD2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ RTD2_SET_DATA_SAMPLE_EDGE

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

◆ RTD2_SET_DATA_SAMPLE_MIDDLE

#define RTD2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE