Per-channel mass position reading. The mass position is expressed as a ratio of full scale deflection. Since the value is the result of analog to digital conversion, it is possible that the the result could be slightly outside of the interval [-1.0,1.0].
◆ unified_status_read_mass_pos()
Interpret mass position tag.
- Parameters
-
| st | Pointer to status data (must coincide with start of tag). |
[out] | out | Mass position written here. |
- Return values
-
Interprets mass position tag at st, storing the result in out.
◆ unified_status_write_mass_pos()
Compose a mass position tag.
- Parameters
-
buf | Buffer to write result into. |
in | Mass position. |
Encodes the mass position in in, appending the result onto buf.
◆ soh_store_get_mass_pos()
int soh_store_get_mass_pos |
( |
const struct soh_store_t * |
store, |
|
|
struct iso8601_date * |
timestamp, |
|
|
struct unified_status_mass_pos_t * |
mass_pos |
|
) |
| |
Retrieve mass position from persistent store object.
- Parameters
-
| store | Persistent storage object. |
[out] | timestamp | Timestamp of last update. May be 0. |
[out] | mass_pos | Mass position structure. May be 0. |
- Return values
-
0 | on success. |
-1 | on error (no status information seen). |