thermo29 2.1.0.0
Thermo 29 Registers Settings

Settings for registers of Thermo 29 Click driver. More...

Macros

#define THERMO29_CONFIGURATION_RESETS   0x0100u
 Thermo 29 configuration register setting.
 
#define THERMO29_CONFIGURATION_AVG   0x0080u
 
#define THERMO29_CONFIGURATION_INT_COMP   0x0020u
 
#define THERMO29_CONFIGURATION_ONE_SHOT   0x0010u
 
#define THERMO29_CONFIGURATION_MODE_CONT   0x0000u
 
#define THERMO29_CONFIGURATION_MODE_SHDN   0x0008u
 
#define THERMO29_CONFIGURATION_MODE_MASK   0x0008u
 
#define THERMO29_CONFIGURATION_CONV_PER_6MS   0x0000u
 
#define THERMO29_CONFIGURATION_CONV_PER_31_25MS   0x0001u
 
#define THERMO29_CONFIGURATION_CONV_PER_62_5MS   0x0002u
 
#define THERMO29_CONFIGURATION_CONV_PER_125MS   0x0003u
 
#define THERMO29_CONFIGURATION_CONV_PER_250MS   0x0004u
 
#define THERMO29_CONFIGURATION_CONV_PER_500MS   0x0005u
 
#define THERMO29_CONFIGURATION_CONV_PER_1S   0x0006u
 
#define THERMO29_CONFIGURATION_CONV_PER_2S   0x0007u
 
#define THERMO29_CONFIGURATION_CONV_PER_MASK   0x0007u
 
#define THERMO29_ALERT_ENABLE_CRC   0x0010u
 Thermo 29 alert enable register setting.
 
#define THERMO29_ALERT_ENABLE_SLEW   0x0008u
 
#define THERMO29_ALERT_ENABLE_THIG   0x0004u
 
#define THERMO29_ALERT_ENABLE_TLOW   0x0002u
 
#define THERMO29_ALERT_ENABLE_DATA_READY   0x0001u
 
#define THERMO29_CRC_ENABLE   0x40
 Thermo 29 command word setting.
 
#define THERMO29_CRC_DATA_BLOCK_LEN_MASK   0x3C
 
#define THERMO29_AUTO_INCREMENT   0x02
 
#define THERMO29_READ_BIT   0x01
 
#define THERMO29_WRITE_BIT   0x00
 
#define THERMO29_DATA_LEN_MAX   10
 
#define THERMO29_TEMP_RESOLUTION   0.03125f
 Thermo 29 temperature calculation setting.
 
#define THERMO29_DEVICE_REV_MASK   0xF000u
 Thermo 29 device ID setting.
 
#define THERMO29_DEVICE_ID_MASK   0x0FFFu
 
#define THERMO29_DEVICE_ID   0x0126u
 
#define THERMO29_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define THERMO29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Thermo 29 Click driver.

Macro Definition Documentation

◆ THERMO29_ALERT_ENABLE_CRC

#define THERMO29_ALERT_ENABLE_CRC   0x0010u

Thermo 29 alert enable register setting.

Specified setting for alert enable register of Thermo 29 Click driver.

◆ THERMO29_ALERT_ENABLE_DATA_READY

#define THERMO29_ALERT_ENABLE_DATA_READY   0x0001u

◆ THERMO29_ALERT_ENABLE_SLEW

#define THERMO29_ALERT_ENABLE_SLEW   0x0008u

◆ THERMO29_ALERT_ENABLE_THIG

#define THERMO29_ALERT_ENABLE_THIG   0x0004u

◆ THERMO29_ALERT_ENABLE_TLOW

#define THERMO29_ALERT_ENABLE_TLOW   0x0002u

◆ THERMO29_AUTO_INCREMENT

#define THERMO29_AUTO_INCREMENT   0x02

◆ THERMO29_CONFIGURATION_AVG

#define THERMO29_CONFIGURATION_AVG   0x0080u

◆ THERMO29_CONFIGURATION_CONV_PER_125MS

#define THERMO29_CONFIGURATION_CONV_PER_125MS   0x0003u

◆ THERMO29_CONFIGURATION_CONV_PER_1S

#define THERMO29_CONFIGURATION_CONV_PER_1S   0x0006u

◆ THERMO29_CONFIGURATION_CONV_PER_250MS

#define THERMO29_CONFIGURATION_CONV_PER_250MS   0x0004u

◆ THERMO29_CONFIGURATION_CONV_PER_2S

#define THERMO29_CONFIGURATION_CONV_PER_2S   0x0007u

◆ THERMO29_CONFIGURATION_CONV_PER_31_25MS

#define THERMO29_CONFIGURATION_CONV_PER_31_25MS   0x0001u

◆ THERMO29_CONFIGURATION_CONV_PER_500MS

#define THERMO29_CONFIGURATION_CONV_PER_500MS   0x0005u

◆ THERMO29_CONFIGURATION_CONV_PER_62_5MS

#define THERMO29_CONFIGURATION_CONV_PER_62_5MS   0x0002u

◆ THERMO29_CONFIGURATION_CONV_PER_6MS

#define THERMO29_CONFIGURATION_CONV_PER_6MS   0x0000u

◆ THERMO29_CONFIGURATION_CONV_PER_MASK

#define THERMO29_CONFIGURATION_CONV_PER_MASK   0x0007u

◆ THERMO29_CONFIGURATION_INT_COMP

#define THERMO29_CONFIGURATION_INT_COMP   0x0020u

◆ THERMO29_CONFIGURATION_MODE_CONT

#define THERMO29_CONFIGURATION_MODE_CONT   0x0000u

◆ THERMO29_CONFIGURATION_MODE_MASK

#define THERMO29_CONFIGURATION_MODE_MASK   0x0008u

◆ THERMO29_CONFIGURATION_MODE_SHDN

#define THERMO29_CONFIGURATION_MODE_SHDN   0x0008u

◆ THERMO29_CONFIGURATION_ONE_SHOT

#define THERMO29_CONFIGURATION_ONE_SHOT   0x0010u

◆ THERMO29_CONFIGURATION_RESETS

#define THERMO29_CONFIGURATION_RESETS   0x0100u

Thermo 29 configuration register setting.

Specified setting for configuration register of Thermo 29 Click driver.

◆ THERMO29_CRC_DATA_BLOCK_LEN_MASK

#define THERMO29_CRC_DATA_BLOCK_LEN_MASK   0x3C

◆ THERMO29_CRC_ENABLE

#define THERMO29_CRC_ENABLE   0x40

Thermo 29 command word setting.

Specified setting for command word of Thermo 29 Click driver.

◆ THERMO29_DATA_LEN_MAX

#define THERMO29_DATA_LEN_MAX   10

◆ THERMO29_DEVICE_ID

#define THERMO29_DEVICE_ID   0x0126u

◆ THERMO29_DEVICE_ID_MASK

#define THERMO29_DEVICE_ID_MASK   0x0FFFu

◆ THERMO29_DEVICE_REV_MASK

#define THERMO29_DEVICE_REV_MASK   0xF000u

Thermo 29 device ID setting.

Specified setting for device ID of Thermo 29 Click driver.

◆ THERMO29_READ_BIT

#define THERMO29_READ_BIT   0x01

◆ THERMO29_SET_DATA_SAMPLE_EDGE

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

◆ THERMO29_SET_DATA_SAMPLE_MIDDLE

#define THERMO29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ THERMO29_TEMP_RESOLUTION

#define THERMO29_TEMP_RESOLUTION   0.03125f

Thermo 29 temperature calculation setting.

Specified setting for temperature calculation of Thermo 29 Click driver.

◆ THERMO29_WRITE_BIT

#define THERMO29_WRITE_BIT   0x00