Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Header file for extended sensor API of MCP9600 sensor. More...

Go to the source code of this file.

Macros

Thermocouple type selection

Possible values for sensor_value.val1 of a SENSOR_ATTR_MCP9600_THERMOCOUPLE_TYPE attribute.

#define MCP9600_ATTR_VALUE_TYPE_K   0x0
 Type K thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_J   0x1
 Type J thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_T   0x2
 Type T thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_N   0x3
 Type N thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_S   0x4
 Type S thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_E   0x5
 Type E thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_B   0x6
 Type B thermocouple.
#define MCP9600_ATTR_VALUE_TYPE_R   0x7
 Type R thermocouple.
ADC resolution

Possible values for sensor_value.val1 of a SENSOR_ATTR_MCP9600_ADC_RES attribute.

#define MCP9600_ATTR_VALUE_ADC_RES_18BIT   0x0
 18-bit resolution
#define MCP9600_ATTR_VALUE_ADC_RES_16BIT   0x1
 16-bit resolution
#define MCP9600_ATTR_VALUE_ADC_RES_14BIT   0x2
 14-bit resolution
#define MCP9600_ATTR_VALUE_ADC_RES_12BIT   0x3
 12-bit resolution
Cold junction temperature resolution

Possible values for sensor_value.val1 of a attribute SENSOR_ATTR_MCP9600_COLD_JUNCTION_RESOLUTION attribute.

#define MCP9600_ATTR_VALUE_COLD_JUNC_TMP_RES_0_0625C   0x0
 0.0625 °C resolution
#define MCP9600_ATTR_VALUE_COLD_JUNC_TMP_RES_0_25C   0x1
 0.25 °C resolution

Enumerations

enum  sensor_channel_mcp9600 { SENSOR_CHAN_MCP9600_COLD_JUNCTION_TEMP = SENSOR_CHAN_PRIV_START , SENSOR_CHAN_MCP9600_HOT_JUNCTION_TEMP , SENSOR_CHAN_MCP9600_DELTA_TEMP , SENSOR_CHAN_MCP9600_RAW_ADC }
 Custom sensor channels for MCP9600. More...
enum  sensor_attribute_mcp9600 {
  SENSOR_ATTR_MCP9600_ADC_RES = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_MCP9600_FILTER_COEFFICIENT , SENSOR_ATTR_MCP9600_THERMOCOUPLE_TYPE , SENSOR_ATTR_MCP9600_COLD_JUNCTION_RESOLUTION ,
  SENSOR_ATTR_MCP9600_DEV_ID
}
 Custom sensor attributes for MCP9600. More...

Detailed Description

Header file for extended sensor API of MCP9600 sensor.