MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dump_data

Function dump_data

components/legacy/usb/usbdevice/class/hid.c:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378};
379
380static void dump_data(rt_uint8_t *data, rt_size_t size)
381{
382 rt_size_t i;
383 for (i = 0; i < size; i++)
384 {
385 rt_kprintf("%02x ", *data++);
386 if ((i + 1) % 8 == 0)
387 {
388 rt_kprintf("\n");
389 }else if ((i + 1) % 4 == 0){
390 rt_kprintf(" ");
391 }
392 }
393}
394static void dump_report(struct hid_report * report)
395{
396 rt_kprintf("\nHID Recived:");

Callers 1

dump_reportFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected