MCPcopy Create free account
hub / github.com/CANopenNode/CANopenNode / reverseBytes

Function reverseBytes

301/CO_SDOserver.c:375–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373
374#ifdef CO_BIG_ENDIAN
375static inline void
376reverseBytes(void* start, OD_size_t size) {
377 uint8_t* lo = (uint8_t*)start;
378 uint8_t* hi = (uint8_t*)start + size - 1;
379 while (lo < hi) {
380 uint8_t swap = *lo;
381 *lo++ = *hi;
382 *hi-- = swap;
383 }
384}
385#endif
386
387#if ((CO_CONFIG_SDO_SRV)&CO_CONFIG_SDO_SRV_SEGMENTED) != 0

Callers 4

validateAndWriteToODFunction · 0.70
readFromOdFunction · 0.70
CO_SDOserver_processFunction · 0.70
CO_SDOserver.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected