Home | History | Annotate | Download | only in nanotool

Lines Matching full:spec

202 static bool ParseRate(const std::string& param, SensorSpec& spec) {
215 spec.special_rate = rate;
220 spec.rate_hz = std::stof(param);
221 if (spec.rate_hz < 0) {
232 SensorSpec spec;
242 spec.cal_ref = std::stof(param);
243 spec.have_cal_ref = true;
256 spec.sensor_type = ContextHub::SensorAbbrevNameToType(param);
257 if (spec.sensor_type == SensorType::Invalid_) {
263 if (!ParseRate(param, spec)) {
274 spec.latency_ns = static_cast<uint64_t>(latency_ms) * 1000000;
282 sensors.push_back(spec);