Lines Matching refs:alt
129 mSensorState[COMMS_SENSOR_GYRO].alt = COMMS_SENSOR_GYRO_UNCALIBRATED; in HubConnection()
131 mSensorState[COMMS_SENSOR_GYRO_UNCALIBRATED].alt = COMMS_SENSOR_GYRO; in HubConnection()
133 mSensorState[COMMS_SENSOR_MAG].alt = COMMS_SENSOR_MAG_UNCALIBRATED; in HubConnection()
135 mSensorState[COMMS_SENSOR_MAG_UNCALIBRATED].alt = COMMS_SENSOR_MAG; in HubConnection()
837 … if (mSensorState[sensor].alt && mSensorState[mSensorState[sensor].alt].flushCnt > 0) { in processBuf()
838 mSensorState[mSensorState[sensor].alt].flushCnt --; in processBuf()
839 ev.meta_data.sensor = mSensorState[sensor].alt; in processBuf()
953 uint8_t alt = mSensorState[handle].alt; in initConfigCmd() local
960 if (alt && mSensorState[alt].enable && mSensorState[handle].enable) { in initConfigCmd()
962 if (mSensorState[alt].rate > mSensorState[handle].rate) in initConfigCmd()
963 cmd->rate = mSensorState[alt].rate; in initConfigCmd()
966 if (mSensorState[alt].latency < mSensorState[handle].latency) in initConfigCmd()
967 cmd->latency = mSensorState[alt].latency; in initConfigCmd()
970 } else if (alt && mSensorState[alt].enable) { in initConfigCmd()
971 cmd->cmd = mSensorState[alt].enable ? CONFIG_CMD_ENABLE : CONFIG_CMD_DISABLE; in initConfigCmd()
972 cmd->rate = mSensorState[alt].rate; in initConfigCmd()
973 cmd->latency = mSensorState[alt].latency; in initConfigCmd()