OpenBIC
OpenSource Bridge-IC
tmp431.h File Reference
#include "sensor.h"
Include dependency graph for tmp431.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  TMP431_CHANNELS { TMP431_LOCAL_TEMPERATRUE , TMP431_REMOTE_TEMPERATRUE , TMP432_REMOTE_TEMPERATRUE_1 , TMP432_REMOTE_TEMPERATRUE_2 }
 
enum  TMP431_REIGSTER_MAP {
  LOCAL_TEMPERATURE_HIGH_BYTE = 0x00 , REMOTE_TEMPERATURE_HIGH_BYTE = 0x01 , CONFIGURATION_REGISTER_1 = 0x03 , REMOTE_TEMPERATURE_LOW_BYTE = 0x10 ,
  LOCAL_TEMPERATURE_LOW_BYTE = 0x15 , REMOTE_TEMPERATURE_2_HIGH_BYTE = 0x23 , REMOTE_TEMPERATURE_2_LOW_BYTE = 0x24 , TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_READ_REG = 0x05 ,
  TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_WRITE_REG = 0x0B , TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_READ_REG = 0x06 , TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_WRITE_REG = 0x0C , TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_READ_REG = 0x07 ,
  TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_WRITE_REG = 0x0D , TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_READ_REG = 0x08 , TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_WRITE_REG = 0x0E , TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_READ_REG = 0x15 ,
  TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_WRITE_REG = 0x15 , TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_READ_REG = 0x16 , TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_WRITE_REG = 0x16 , TMP432_LOCAL_THERM_LIMIT_REG = 0x20 ,
  TMP432_REMOTE_1_THERM_LIMIT_REG = 0x19 , TMP432_REMOTE_2_THERM_LIMIT_REG = 0x1A
}
 

Functions

bool tmp432_get_temp_status (sensor_cfg *cfg, uint8_t *temp_status)
 
bool tmp432_clear_temp_status (sensor_cfg *cfg)
 
bool tmp432_get_temp_threshold (sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
 
bool tmp432_set_temp_threshold (sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
 

Enumeration Type Documentation

◆ TMP431_CHANNELS

Enumerator
TMP431_LOCAL_TEMPERATRUE 
TMP431_REMOTE_TEMPERATRUE 
TMP432_REMOTE_TEMPERATRUE_1 
TMP432_REMOTE_TEMPERATRUE_2 

◆ TMP431_REIGSTER_MAP

Enumerator
LOCAL_TEMPERATURE_HIGH_BYTE 
REMOTE_TEMPERATURE_HIGH_BYTE 
CONFIGURATION_REGISTER_1 
REMOTE_TEMPERATURE_LOW_BYTE 
LOCAL_TEMPERATURE_LOW_BYTE 
REMOTE_TEMPERATURE_2_HIGH_BYTE 
REMOTE_TEMPERATURE_2_LOW_BYTE 
TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_READ_REG 
TMP432_LOCAL_HIGH_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_READ_REG 
TMP432_LOCAL_LOW_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_READ_REG 
TMP432_REMOTE_1_HIGH_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_READ_REG 
TMP432_REMOTE_1_LOW_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_READ_REG 
TMP432_REMOTE_2_HIGH_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_READ_REG 
TMP432_REMOTE_2_LOW_LIMIT_HIGH_BYTE_WRITE_REG 
TMP432_LOCAL_THERM_LIMIT_REG 
TMP432_REMOTE_1_THERM_LIMIT_REG 
TMP432_REMOTE_2_THERM_LIMIT_REG 

Function Documentation

◆ tmp432_clear_temp_status()

bool tmp432_clear_temp_status ( sensor_cfg cfg)
Here is the call graph for this function:

◆ tmp432_get_temp_status()

bool tmp432_get_temp_status ( sensor_cfg cfg,
uint8_t *  temp_status 
)
Here is the call graph for this function:

◆ tmp432_get_temp_threshold()

bool tmp432_get_temp_threshold ( sensor_cfg cfg,
uint8_t  temp_threshold_index,
uint32_t *  millidegree_celsius 
)
Here is the call graph for this function:

◆ tmp432_set_temp_threshold()

bool tmp432_set_temp_threshold ( sensor_cfg cfg,
uint8_t  temp_threshold_index,
uint32_t *  millidegree_celsius 
)
Here is the call graph for this function: