Lines Matching refs:chan
585 static int icm42670_channel_get(const struct device *dev, enum sensor_channel chan, in icm42670_channel_get() argument
596 if (chan == SENSOR_CHAN_ACCEL_XYZ) { in icm42670_channel_get()
600 } else if (chan == SENSOR_CHAN_ACCEL_X) { in icm42670_channel_get()
602 } else if (chan == SENSOR_CHAN_ACCEL_Y) { in icm42670_channel_get()
604 } else if (chan == SENSOR_CHAN_ACCEL_Z) { in icm42670_channel_get()
606 } else if (chan == SENSOR_CHAN_GYRO_XYZ) { in icm42670_channel_get()
610 } else if (chan == SENSOR_CHAN_GYRO_X) { in icm42670_channel_get()
612 } else if (chan == SENSOR_CHAN_GYRO_Y) { in icm42670_channel_get()
614 } else if (chan == SENSOR_CHAN_GYRO_Z) { in icm42670_channel_get()
616 } else if (chan == SENSOR_CHAN_DIE_TEMP) { in icm42670_channel_get()
619 } else if ((enum sensor_channel_tdk_apex)chan == SENSOR_CHAN_APEX_MOTION) { in icm42670_channel_get()
782 static int icm42670_fetch_from_registers(const struct device *dev, enum sensor_channel chan) in icm42670_fetch_from_registers() argument
796 switch (chan) { in icm42670_fetch_from_registers()
832 static int icm42670_sample_fetch(const struct device *dev, enum sensor_channel chan) in icm42670_sample_fetch() argument
839 if ((enum sensor_channel_tdk_apex)chan == SENSOR_CHAN_APEX_MOTION) { in icm42670_sample_fetch()
844 if ((chan == SENSOR_CHAN_ALL) || (chan == SENSOR_CHAN_ACCEL_XYZ) || in icm42670_sample_fetch()
845 (chan == SENSOR_CHAN_ACCEL_X) || (chan == SENSOR_CHAN_ACCEL_Y) || in icm42670_sample_fetch()
846 (chan == SENSOR_CHAN_ACCEL_Z) || (chan == SENSOR_CHAN_GYRO_XYZ) || in icm42670_sample_fetch()
847 (chan == SENSOR_CHAN_GYRO_X) || (chan == SENSOR_CHAN_GYRO_Y) || in icm42670_sample_fetch()
848 (chan == SENSOR_CHAN_GYRO_Z) || (chan == SENSOR_CHAN_DIE_TEMP)) { in icm42670_sample_fetch()
852 status = icm42670_fetch_from_registers(dev, chan); in icm42670_sample_fetch()
860 static int icm42670_attr_set(const struct device *dev, enum sensor_channel chan, in icm42670_attr_set() argument
869 if ((enum sensor_channel_tdk_apex)chan == SENSOR_CHAN_APEX_MOTION) { in icm42670_attr_set()
891 } else if ((chan == SENSOR_CHAN_ACCEL_XYZ) || (chan == SENSOR_CHAN_ACCEL_X) || in icm42670_attr_set()
892 (chan == SENSOR_CHAN_ACCEL_Y) || (chan == SENSOR_CHAN_ACCEL_Z)) { in icm42670_attr_set()
895 } else if ((chan == SENSOR_CHAN_GYRO_XYZ) || (chan == SENSOR_CHAN_GYRO_X) || in icm42670_attr_set()
896 (chan == SENSOR_CHAN_GYRO_Y) || (chan == SENSOR_CHAN_GYRO_Z)) { in icm42670_attr_set()
910 static int icm42670_attr_get(const struct device *dev, enum sensor_channel chan, in icm42670_attr_get() argument
921 switch (chan) { in icm42670_attr_get()