/Zephyr-Core-2.7.6/drivers/hwinfo/ |
D | hwinfo_sam0.c | 20 struct sam0_uid dev_id; in z_impl_hwinfo_get_device_id() local 22 dev_id.id[0] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 24 dev_id.id[1] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 26 dev_id.id[2] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 28 dev_id.id[3] = sys_cpu_to_be32(*(const uint32_t *) in z_impl_hwinfo_get_device_id() 31 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 32 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 35 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_imxrt.c | 18 struct imxrt_uid dev_id; in z_impl_hwinfo_get_device_id() local 21 dev_id.id[0] = sys_cpu_to_be32(OCOTP->FUSEN[17].FUSE); in z_impl_hwinfo_get_device_id() 22 dev_id.id[1] = sys_cpu_to_be32(OCOTP->FUSEN[16].FUSE); in z_impl_hwinfo_get_device_id() 24 dev_id.id[0] = sys_cpu_to_be32(OCOTP->CFG2); in z_impl_hwinfo_get_device_id() 25 dev_id.id[1] = sys_cpu_to_be32(OCOTP->CFG1); in z_impl_hwinfo_get_device_id() 28 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 29 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 32 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_stm32.c | 20 struct stm32_uid dev_id; in z_impl_hwinfo_get_device_id() local 22 dev_id.id[0] = sys_cpu_to_be32(LL_GetUID_Word2()); in z_impl_hwinfo_get_device_id() 23 dev_id.id[1] = sys_cpu_to_be32(LL_GetUID_Word1()); in z_impl_hwinfo_get_device_id() 24 dev_id.id[2] = sys_cpu_to_be32(LL_GetUID_Word0()); in z_impl_hwinfo_get_device_id() 26 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 27 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 30 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_nrf.c | 22 struct nrf_uid dev_id; in z_impl_hwinfo_get_device_id() local 24 dev_id.id[0] = sys_cpu_to_be32(nrf_ficr_deviceid_get(NRF_FICR, 1)); in z_impl_hwinfo_get_device_id() 25 dev_id.id[1] = sys_cpu_to_be32(nrf_ficr_deviceid_get(NRF_FICR, 0)); in z_impl_hwinfo_get_device_id() 27 if (length > sizeof(dev_id.id)) { in z_impl_hwinfo_get_device_id() 28 length = sizeof(dev_id.id); in z_impl_hwinfo_get_device_id() 31 memcpy(buffer, dev_id.id, length); in z_impl_hwinfo_get_device_id()
|
D | hwinfo_shell.c | 15 uint8_t dev_id[16]; in cmd_get_device_id() local 19 length = hwinfo_get_device_id(dev_id, sizeof(dev_id)); in cmd_get_device_id() 33 shell_fprintf(shell, SHELL_NORMAL, "%02x", dev_id[i]); in cmd_get_device_id()
|
/Zephyr-Core-2.7.6/samples/net/lwm2m_client/src/ |
D | lwm2m-client.c | 475 uint8_t dev_id[16]; in main() local 480 (void)memset(dev_id, 0x0, sizeof(dev_id)); in main() 483 length = hwinfo_get_device_id(dev_id, sizeof(dev_id)); in main() 487 length = sizeof(dev_id); in main() 492 sprintf(&dev_str[i*2], "%02x", dev_id[i]); in main()
|
/Zephyr-Core-2.7.6/drivers/dac/ |
D | dac_dacx3608.c | 191 uint16_t dev_id; in dacx3608_device_id_check() local 194 ret = dacx3608_reg_read(dev, DACX3608_REG_STATUS_TRIGGER, &dev_id); in dacx3608_device_id_check() 200 switch (dev_id) { in dacx3608_device_id_check() 203 LOG_DBG("Device ID %#4x", dev_id); in dacx3608_device_id_check() 206 LOG_ERR("Unknown Device ID %#4x", dev_id); in dacx3608_device_id_check()
|
D | dac_dacx0508.c | 225 uint16_t dev_id; in dacx0508_device_id_check() local 233 dev_id = (regval[0] << 8) | regval[1]; in dacx0508_device_id_check() 235 resolution = dev_id >> 12; in dacx0508_device_id_check() 241 if ((dev_id & DACX0508_MASK_DEVICE_ID_8CH) != in dacx0508_device_id_check()
|
/Zephyr-Core-2.7.6/drivers/sensor/adxl345/ |
D | adxl345.c | 137 uint8_t dev_id; in adxl345_init() local 149 ADXL345_DEVICE_ID_REG, &dev_id); in adxl345_init() 150 if (rc < 0 || dev_id != ADXL345_PART_ID) { in adxl345_init()
|
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/ |
D | mesh.h | 29 uint8_t dev_id; member
|
D | mesh.c | 66 { .dev_id = 0 }, 154 if (set_led_state(state->dev_id, onoff)) { in gen_onoff_set_unack()
|
/Zephyr-Core-2.7.6/drivers/sensor/adxl372/ |
D | adxl372.c | 760 uint8_t dev_id, part_id; in adxl372_probe() local 763 ret = adxl372_reg_read(dev, ADXL372_DEVID, &dev_id); in adxl372_probe() 772 if (dev_id != ADXL372_DEVID_VAL || part_id != ADXL372_PARTID_VAL) { in adxl372_probe() 773 LOG_ERR("failed to read id (0x%X:0x%X)", dev_id, part_id); in adxl372_probe() 782 adxl372_reg_read(dev, ADXL372_REVID, &dev_id); in adxl372_probe() 783 if (dev_id < 3) { in adxl372_probe() 785 dev_id); in adxl372_probe()
|
/Zephyr-Core-2.7.6/samples/drivers/counter/maxim_ds3231/src/ |
D | main.c | 233 const char *const dev_id = DT_LABEL(DT_INST(0, maxim_ds3231)); in main() local 235 ds3231 = device_get_binding(dev_id); in main() 237 printk("No device %s available\n", dev_id); in main()
|
/Zephyr-Core-2.7.6/drivers/sensor/fdc2x1x/ |
D | fdc2x1x.c | 847 uint16_t dev_id, man_id; in fdc2x1x_probe() local 849 if (fdc2x1x_reg_read(dev, FDC2X1X_DEVICE_ID, &dev_id) < 0) { in fdc2x1x_probe() 855 if (dev_id == FDC2X1X_DEVICE_ID_VAL_28BIT) { in fdc2x1x_probe() 857 } else if (dev_id == FDC2X1X_DEVICE_ID_VAL) { in fdc2x1x_probe()
|