Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
EMC1413.h File Reference

Go to the source code of this file.

Overview

EMC1413 Temperature Sensor Driver API definitions. This file provides data structures and APIs for controlling the EMC1413 Temperature Sensor device on the EfxSapphireSoC platform.

Author
Efinix Inc
Note
This is a device-specific driver implementation for the EMC1413 Temperature Sensor.

Definition in file EMC1413.h.

Macros

#define MUX_ADDR   0x71<<1
 I2C Address for I2C MUX.
#define TEMP_EMC1413_ADDR   0x4C<<1
 I2C Address for EMC1413 Temperature Sensor device.

Functions

temp_sensor_status_t emc1413_getTemp (temp_sensor_instance_t *temp)
 Get temperature from EMC1413 Temperature Sensor.
temp_sensor_status_t emc1413_getTempLimit (temp_sensor_instance_t *temp)
 Get temperature limits from EMC1413 Temperature Sensor.
u8 emc1413_checkTempRange (temp_sensor_instance_t *temp)
 Check if temperature is within range for EMC1413 Temperature Sensor.
temp_sensor_status_t emc1413_checkTempAlert (temp_sensor_instance_t *temp)
 Check for temperature alerts from EMC1413 Temperature Sensor.
temp_sensor_status_t emc1413_setTempRange (temp_sensor_instance_t *temp, u8 enable_extended)
 Set temperature range for EMC1413 Temperature Sensor.
temp_sensor_status_t emc1413_setTempLimit (temp_sensor_instance_t *temp)
 Set temperature limits for EMC1413 Temperature Sensor.

Variables

const temp_sensor_api_t emc1413_driver
 EMC1413 Driver Instance. Point your generic Temperature Sensor pointer to this structure to use the EMC1413.