/** * struct inv_sensors_timestamp_acc - accumulator for computing an estimation * @val: current estimation of the value, the mean of all values * @idx: current index of the next free place in values table * @values: table of all measured values, use for computing the mean
*/ struct inv_sensors_timestamp_acc {
uint32_t val;
size_t idx;
uint32_t values[32];
};
/** * struct inv_sensors_timestamp - timestamp management states * @chip: chip internal characteristics * @min_period: minimal acceptable clock period * @max_period: maximal acceptable clock period * @it: interrupts interval timestamps * @timestamp: store last timestamp for computing next data timestamp * @mult: current internal period multiplier * @new_mult: new set internal period multiplier (not yet effective) * @period: measured current period of the sensor * @chip_period: accumulator for computing internal chip period
*/ struct inv_sensors_timestamp { struct inv_sensors_timestamp_chip chip;
uint32_t min_period;
uint32_t max_period; struct inv_sensors_timestamp_interval it;
int64_t timestamp;
uint32_t mult;
uint32_t new_mult;
uint32_t period; struct inv_sensors_timestamp_acc chip_period;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.