OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
emc1413.h File Reference
#include "sensor.h"
Include dependency graph for emc1413.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  EMC1413_CHANNELS { EMC1413_LOCAL_TEMPERATRUE , EMC1413_REMOTE_TEMPERATRUE_1 , EMC1413_REMOTE_TEMPERATRUE_2 }
 
enum  EMC1413_REIGSTER_MAP {
  INTERNAL_DIODE_HIGH_BYTE = 0x00 , EXTERNAL_DIODE_1_HIGH_BYTE = 0x01 , EXTERNAL_DIODE_2_HIGH_BYTE = 0x23 , INTERNAL_DIODE_LOW_BYTE = 0x29 ,
  EXTERNAL_DIODE_1_LOW_BYTE = 0x10 , EXTERNAL_DIODE_2_LOW_BYTE = 0x24 , EMC1413_INTERNAL_HIGH_LIMIT_REG = 0x05 , EMC1413_INTERNAL_LOW_LIMIT_REG = 0x06 ,
  EMC1413_EXTERNAL_1_HIGH_LIMIT_HIGH_BYTE_REG = 0x07 , EMC1413_EXTERNAL_1_HIGH_LIMIT_LOW_BYTE_REG = 0x13 , EMC1413_EXTERNAL_1_LOW_LIMIT_HIGH_BYTE_REG = 0x08 , EMC1413_EXTERNAL_1_LOW_LIMIT_LOW_BYTE_REG = 0x14 ,
  EMC1413_EXTERNAL_2_HIGH_LIMIT_HIGH_BYTE_REG = 0x15 , EMC1413_EXTERNAL_2_HIGH_LIMIT_LOW_BYTE_REG = 0x17 , EMC1413_EXTERNAL_2_LOW_LIMIT_HIGH_BYTE_REG = 0x16 , EMC1413_EXTERNAL_2_LOW_LIMIT_LOW_BYTE_REG = 0x18 ,
  EMC1413_INTERNAL_THERM_LIMIT_REG = 0x20 , EMC1413_EXTERNAL_1_THERM_LIMIT_REG = 0x19 , EMC1413_EXTERNAL_2_THERM_LIMIT_REG = 0x1A , EMC1413_REG_MAX
}
 

Functions

bool emc1413_get_temp_status (sensor_cfg *cfg, uint8_t *temp_status)
 
bool emc1413_clear_temp_status (sensor_cfg *cfg)
 
bool emc1413_get_temp_threshold (sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
 
bool emc1413_set_temp_threshold (sensor_cfg *cfg, uint8_t temp_threshold_index, uint32_t *millidegree_celsius)
 

Enumeration Type Documentation

◆ EMC1413_CHANNELS

Enumerator
EMC1413_LOCAL_TEMPERATRUE 
EMC1413_REMOTE_TEMPERATRUE_1 
EMC1413_REMOTE_TEMPERATRUE_2 

◆ EMC1413_REIGSTER_MAP

Enumerator
INTERNAL_DIODE_HIGH_BYTE 
EXTERNAL_DIODE_1_HIGH_BYTE 
EXTERNAL_DIODE_2_HIGH_BYTE 
INTERNAL_DIODE_LOW_BYTE 
EXTERNAL_DIODE_1_LOW_BYTE 
EXTERNAL_DIODE_2_LOW_BYTE 
EMC1413_INTERNAL_HIGH_LIMIT_REG 
EMC1413_INTERNAL_LOW_LIMIT_REG 
EMC1413_EXTERNAL_1_HIGH_LIMIT_HIGH_BYTE_REG 
EMC1413_EXTERNAL_1_HIGH_LIMIT_LOW_BYTE_REG 
EMC1413_EXTERNAL_1_LOW_LIMIT_HIGH_BYTE_REG 
EMC1413_EXTERNAL_1_LOW_LIMIT_LOW_BYTE_REG 
EMC1413_EXTERNAL_2_HIGH_LIMIT_HIGH_BYTE_REG 
EMC1413_EXTERNAL_2_HIGH_LIMIT_LOW_BYTE_REG 
EMC1413_EXTERNAL_2_LOW_LIMIT_HIGH_BYTE_REG 
EMC1413_EXTERNAL_2_LOW_LIMIT_LOW_BYTE_REG 
EMC1413_INTERNAL_THERM_LIMIT_REG 
EMC1413_EXTERNAL_1_THERM_LIMIT_REG 
EMC1413_EXTERNAL_2_THERM_LIMIT_REG 
EMC1413_REG_MAX 

Function Documentation

◆ emc1413_clear_temp_status()

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

◆ emc1413_get_temp_status()

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

◆ emc1413_get_temp_threshold()

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

◆ emc1413_set_temp_threshold()

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