MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / byteReverse

Function byteReverse

libraries/bitHelpers/bitHelpers.cpp:234–239  ·  view source on GitHub ↗

/////////////////////////////////////////// BYTE REVERSE

Source from the content-addressed store, hash-verified

232// BYTE REVERSE
233//
234uint16_t byteReverse(uint16_t value)
235{
236 uint16_t x = value;
237 x = (x >> 8) | (x << 8);
238 return x;
239}
240
241
242uint32_t byteReverse(uint32_t value)

Callers 1

unittestFunction · 0.85

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.68