Temperature reading. Temperature is expressed as a value in Kelvin.
◆ unified_status_read_temp()
Interpret temperature tag.
- Parameters
-
| st | Pointer to status data (must coincide with start of tag). |
[out] | out | Temperature written here. |
- Return values
-
Interprets temperature tag at st, storing the result in out.
◆ unified_status_write_temp()
Compose a temperature tag.
- Parameters
-
buf | Buffer to write result into. |
in | Temperature. |
Encodes the temperature in in, appending the result onto buf.
◆ soh_store_get_temp()
int soh_store_get_temp |
( |
const struct soh_store_t * |
store, |
|
|
struct iso8601_date * |
timestamp, |
|
|
struct unified_status_temp_t * |
temp |
|
) |
| |
Retrieve temperature from persistent store object.
- Parameters
-
| store | Persistent storage object. |
[out] | timestamp | Timestamp of last update. May be 0. |
[out] | temp | Temperature structure. May be 0. |
- Return values
-
0 | on success. |
-1 | on error (no status information seen). |