nRF5 SDK v15.3.0
Functions
USBD serial number generator

nRF52840 only: Generate a standard USB serial number that is unique for each device. More...

Functions

void app_usbd_serial_num_generate (void)
 Function for generating a default serial number string based on FIRC->DEVICEADDR. More...
 

Detailed Description

nRF52840 only: Generate a standard USB serial number that is unique for each device.

Function Documentation

void app_usbd_serial_num_generate ( void  )

Function for generating a default serial number string based on FIRC->DEVICEADDR.

After calling this function, the serial number is ready for the USB driver.

The generated serial number shows up as a 12-hexidecimal-digit string with no delimiters (e.g 123456ABCDEF). The byte string is also printed on the PCA10059 dongle. It is also used as the default advertising address in the SoftDevice.


Documentation feedback | Developer Zone | Subscribe | Updated