MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / utox8

Function utox8

resources/variant/variant.cpp:179–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177#ifdef SERIAL_CDC
178
179static void utox8(uint32_t val, uint8_t* s) {
180 for (int i = 0; i < 16; i=i+2) {
181 int d = val & 0XF;
182 val = (val >> 4);
183
184 s[15 - i -1] = d > 9 ? 'A' + d - 10 : '0' + d;
185 s[15 - i] = '\0';
186 }
187}
188
189uint8_t getUniqueSerialNumber(uint8_t* name) {
190 #define SERIAL_NUMBER_WORD_0 NRF_FICR->DEVICEADDR[1]

Callers 1

getUniqueSerialNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected