RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches

Overview

Function definitions for EMC1413 driver.

Note
This is the public API for the EMC1413 Temperature Sensor device.

Functions

temp_sensor_status_t EMC1413_applyConfig (temp_sensor_instance_t *temp)
 Apply I2C + Temp Sensor configuration.
temp_sensor_status_t EMC1413_enableErrorInterrupt (temp_sensor_instance_t *temp)
 Enable error interrupt for EMC1413 Temperature Sensor.
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.

Function Documentation

◆ EMC1413_applyConfig()

temp_sensor_status_t EMC1413_applyConfig ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Apply I2C + Temp Sensor configuration.

Parameters
rtcPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 118 of file EMC1413.c.

◆ EMC1413_checkTempAlert()

temp_sensor_status_t EMC1413_checkTempAlert ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Check for temperature alerts from EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 226 of file EMC1413.c.

◆ EMC1413_checkTempRange()

u8 EMC1413_checkTempRange ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Check if temperature is within range for EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 236 of file EMC1413.c.

◆ EMC1413_enableErrorInterrupt()

temp_sensor_status_t EMC1413_enableErrorInterrupt ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Enable error interrupt for EMC1413 Temperature Sensor.

Parameters
rtcPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 124 of file EMC1413.c.

◆ EMC1413_getTemp()

temp_sensor_status_t EMC1413_getTemp ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Get temperature from EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 131 of file EMC1413.c.

◆ EMC1413_getTempLimit()

temp_sensor_status_t EMC1413_getTempLimit ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Get temperature limits from EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 144 of file EMC1413.c.

◆ EMC1413_setTempLimit()

temp_sensor_status_t EMC1413_setTempLimit ( temp_sensor_instance_t * temp)

#include <EMC1413.h>

Set temperature limits for EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
Returns
Status code of the operation.

Definition at line 199 of file EMC1413.c.

◆ EMC1413_setTempRange()

temp_sensor_status_t EMC1413_setTempRange ( temp_sensor_instance_t * temp,
u8 enable_extended )

#include <EMC1413.h>

Set temperature range for EMC1413 Temperature Sensor.

Parameters
tempPointer to Temperature Sensor instance.
enable_extendedFlag to enable extended temperature range.
Returns
Status code of the operation.

Definition at line 184 of file EMC1413.c.