![]() |
EVE 1.0
|
![]() |
Data Structures | |
struct | temp_sensor_t |
Functions called from application programs | |
bool | TempSensorInit (const struct temp_sensor_t *TempSensor) |
Name: TempSensorInit Initializes the I2C-based temperature sensor for continously convertion. I2C address range is 0x48 - 0x4f. Max baudrate is 400 kbit/s. Temperature convertion time is max 150ms. Temperature measurement range is from -55°C to +125°C. Typical current consumption (@ 3.3V, 25°C) is 125µA. More... | |
bool | TempSensorDisable (const struct temp_sensor_t *TempSensor) |
Name: TempSensorDisable Disables and powers down the I2C-based temperature sensor. Typical current consumption is 1µA (max) in power down mode. More... | |
bool | TempSensorGet (const struct temp_sensor_t *TempSensor, int8_t *Value) |
Name: TempSensorGet Reads temperature value from temperature sensor. Resolution 1.0°C. More... | |
This driver supports the I2C-based temperature sensor type ST STLM75. The temperature sensor accuracy is typical ±0.5°C from -55°C to +125°C (max ±2°C from -25°C to +100°C, max ±3°C from -55°C to +125°C). Temperature convertion time is max 150ms. Temperature measurement range is from -55°C to +125°C.
The temperature sensor has 3 address lines. The I2C address range is 0x48 - 0x4f. Max baudrate is 400 kbit/s. Typical current consumption (at 3.3V, 25°C) is 125µA in active mode and 1µA (max) in power down mode.
Both initialization and disabling of the sensor, and reading of temperature at 1.0°C resolution are supported.
The selected I2C port must be initialized before using the driver.
bool TempSensorInit | ( | const struct temp_sensor_t * | TempSensor | ) |
Name: TempSensorInit
Initializes the I2C-based temperature sensor for continously convertion. I2C address range is 0x48 - 0x4f. Max baudrate is 400 kbit/s. Temperature convertion time is max 150ms. Temperature measurement range is from -55°C to +125°C. Typical current consumption (@ 3.3V, 25°C) is 125µA.
TempSensor | Parameters for the temperature sensor to be used |
bool TempSensorDisable | ( | const struct temp_sensor_t * | TempSensor | ) |
Name: TempSensorDisable
Disables and powers down the I2C-based temperature sensor. Typical current consumption is 1µA (max) in power down mode.
TempSensor | Parameters for the temperature sensor to be used |
bool TempSensorGet | ( | const struct temp_sensor_t * | TempSensor, |
int8_t * | Value | ||
) |
Name: TempSensorGet
Reads temperature value from temperature sensor. Resolution 1.0°C.
TempSensor | Parameters for the temperature sensor to be used |
Value | Pointer to where to put the temperature value (int8_t) |