Home
last modified time | relevance | path

Searched refs:lis2de12 (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12_trigger.c59 struct lis2de12_data *lis2de12 = dev->data; in lis2de12_trigger_set() local
68 lis2de12->handler_drdy_acc = handler; in lis2de12_trigger_set()
69 lis2de12->trig_drdy_acc = trig; in lis2de12_trigger_set()
88 struct lis2de12_data *lis2de12 = dev->data; in lis2de12_handle_interrupt() local
104 if ((status.zyxda) && (lis2de12->handler_drdy_acc != NULL)) { in lis2de12_handle_interrupt()
105 lis2de12->handler_drdy_acc(dev, lis2de12->trig_drdy_acc); in lis2de12_handle_interrupt()
109 gpio_pin_interrupt_configure_dt(lis2de12->drdy_gpio, in lis2de12_handle_interrupt()
116 struct lis2de12_data *lis2de12 = in lis2de12_gpio_callback() local
121 gpio_pin_interrupt_configure_dt(lis2de12->drdy_gpio, GPIO_INT_DISABLE); in lis2de12_gpio_callback()
124 k_sem_give(&lis2de12->gpio_sem); in lis2de12_gpio_callback()
[all …]
DCMakeLists.txt9 zephyr_library_sources(lis2de12.c)
Dlis2de12.c319 struct lis2de12_data *lis2de12 = dev->data; in lis2de12_init_chip() local
347 lis2de12->acc_gain = lis2de12_accel_fs_map[fs].gain; in lis2de12_init_chip()
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c251 static void lis2de12_config(const struct device *lis2de12) in lis2de12_config() argument
259 if (sensor_attr_set(lis2de12, SENSOR_CHAN_ACCEL_XYZ, in lis2de12_config()
267 if (sensor_attr_set(lis2de12, SENSOR_CHAN_ACCEL_XYZ, in lis2de12_config()
278 sensor_trigger_set(lis2de12, &trig, lis2de12_trigger_handler); in lis2de12_config()
304 const struct device *const lis2de12 = DEVICE_DT_GET_ANY(st_lis2de12); in main() local
332 if (device_is_ready(lis2de12)) { in main()
335 printf("Device %s is not ready\n", lis2de12->name); in main()
345 lis2de12_config(lis2de12); in main()
387 if (sensor_sample_fetch(lis2de12) < 0) { in main()
410 sensor_channel_get(lis2de12, SENSOR_CHAN_ACCEL_XYZ, lis2de12_xl); in main()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/
Dapp.overlay13 lis2de18_18_x_nucleo_iks01a3: lis2de12@18 {
14 compatible = "st,lis2de12";
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt15 add_subdirectory_ifdef(CONFIG_LIS2DE12 lis2de12)
DKconfig14 source "drivers/sensor/st/lis2de12/Kconfig"
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi322 test_spi_lis2de12: lis2de12@29 {
323 compatible = "st,lis2de12";
Di2c.dtsi22 #include <zephyr/dt-bindings/sensor/lis2de12.h>
870 test_i2c_lis2de12: lis2de12@80 {
871 compatible = "st,lis2de12";