|
struct temp * | temp_init (uint32_t index) |
|
int32_t | temp_deinit (struct temp *temp) |
|
int32_t | temp_get (struct temp *temp, float *value, TickType_t waittime) |
|
int32_t | temp_getISR (struct temp *temp, float *value) |
|
This is the Temperature Subsystem.
◆ temp_deinit()
int32_t temp_deinit |
( |
struct temp * |
temp | ) |
|
Deinit Temperature
- Parameters
-
- Returns
- -1 on error 0 on ok
◆ temp_get()
int32_t temp_get |
( |
struct temp * |
temp, |
|
|
float * |
value, |
|
|
TickType_t |
waittime |
|
) |
| |
Get Temperature Value
- Parameters
-
temp | Temperature Instance |
value | Value |
waittime | max waittime in mutex or isr lock see xSemaphoreTake() |
- Returns
- -1 on error 0 on ok
◆ temp_getISR()
int32_t temp_getISR |
( |
struct temp * |
temp, |
|
|
float * |
value |
|
) |
| |
Get Temperature Value
- Parameters
-
temp | Temperature Instance |
value | Value |
- Returns
- -1 on error 0 on ok
◆ temp_init()
struct temp* temp_init |
( |
uint32_t |
index | ) |
|
Init Temperature
- Parameters
-
index | Index of Temperature |
- Returns
- Temperature Instance or NULL on error