Lines Matching refs:chan
485 static int bmi270_sample_fetch(const struct device *dev, enum sensor_channel chan) in bmi270_sample_fetch() argument
491 if (chan != SENSOR_CHAN_ALL) { in bmi270_sample_fetch()
515 static int bmi270_channel_get(const struct device *dev, enum sensor_channel chan, in bmi270_channel_get() argument
520 if (chan == SENSOR_CHAN_ACCEL_X) { in bmi270_channel_get()
522 } else if (chan == SENSOR_CHAN_ACCEL_Y) { in bmi270_channel_get()
524 } else if (chan == SENSOR_CHAN_ACCEL_Z) { in bmi270_channel_get()
526 } else if (chan == SENSOR_CHAN_ACCEL_XYZ) { in bmi270_channel_get()
533 } else if (chan == SENSOR_CHAN_GYRO_X) { in bmi270_channel_get()
535 } else if (chan == SENSOR_CHAN_GYRO_Y) { in bmi270_channel_get()
537 } else if (chan == SENSOR_CHAN_GYRO_Z) { in bmi270_channel_get()
539 } else if (chan == SENSOR_CHAN_GYRO_XYZ) { in bmi270_channel_get()
596 static int bmi270_attr_set(const struct device *dev, enum sensor_channel chan, in bmi270_attr_set() argument
601 if ((chan == SENSOR_CHAN_ACCEL_X) || (chan == SENSOR_CHAN_ACCEL_Y) in bmi270_attr_set()
602 || (chan == SENSOR_CHAN_ACCEL_Z) in bmi270_attr_set()
603 || (chan == SENSOR_CHAN_ACCEL_XYZ)) { in bmi270_attr_set()
623 } else if ((chan == SENSOR_CHAN_GYRO_X) || (chan == SENSOR_CHAN_GYRO_Y) in bmi270_attr_set()
624 || (chan == SENSOR_CHAN_GYRO_Z) in bmi270_attr_set()
625 || (chan == SENSOR_CHAN_GYRO_XYZ)) { in bmi270_attr_set()