Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/hwinfo/
Dhwinfo_ambiq.c25 struct ambiq_hwinfo dev_hw_info = {0}; in z_impl_hwinfo_get_device_id() local
30 am_hal_mram_info_read(1, AM_REG_INFO1_TRIM_REV_O / 4, 1, &dev_hw_info.factory_trim_version); in z_impl_hwinfo_get_device_id()
33 dev_hw_info.chip_id_0 = mcu_ctrl_device.ui32ChipID0; in z_impl_hwinfo_get_device_id()
34 dev_hw_info.chip_id_1 = mcu_ctrl_device.ui32ChipID1; in z_impl_hwinfo_get_device_id()
36 if (length > sizeof(dev_hw_info)) { in z_impl_hwinfo_get_device_id()
37 length = sizeof(dev_hw_info); in z_impl_hwinfo_get_device_id()
40 dev_hw_info.chip_id_0 = BSWAP_32(dev_hw_info.chip_id_0); in z_impl_hwinfo_get_device_id()
41 dev_hw_info.chip_id_1 = BSWAP_32(dev_hw_info.chip_id_1); in z_impl_hwinfo_get_device_id()
42 dev_hw_info.factory_trim_version = BSWAP_32(dev_hw_info.factory_trim_version); in z_impl_hwinfo_get_device_id()
43 memcpy(buffer, &dev_hw_info, length); in z_impl_hwinfo_get_device_id()