Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/usb/device/
Dusb_descriptor.c336 uint8_t hwid[MAX(16, sizeof(CONFIG_USB_DEVICE_SN) / 2)]; in usb_update_sn_string_descriptor() local
341 memset(hwid, 0, sizeof(hwid)); in usb_update_sn_string_descriptor()
344 hwlen = hwinfo_get_device_id(hwid, sizeof(hwid)); in usb_update_sn_string_descriptor()
347 LOG_HEXDUMP_DBG(&hwid[skip], usblen, "Serial Number"); in usb_update_sn_string_descriptor()
349 sn[i * 2] = hex[hwid[i + skip] >> 4]; in usb_update_sn_string_descriptor()
350 sn[i * 2 + 1] = hex[hwid[i + skip] & 0xF]; in usb_update_sn_string_descriptor()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c538 uint8_t hwid[USBD_HWID_SN_MAX / 2U]; in get_sn_from_hwid() local
542 hwid_len = hwinfo_get_device_id(hwid, sizeof(hwid)); in get_sn_from_hwid()
554 sn[i * 2] = hex[hwid[i] >> 4]; in get_sn_from_hwid()
555 sn[i * 2 + 1] = hex[hwid[i] & 0xF]; in get_sn_from_hwid()