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

Function nybbleReverse

libraries/bitHelpers/bitHelpers.cpp:192–197  ·  view source on GitHub ↗

/////////////////////////////////////////// NYBBLE REVERSE

Source from the content-addressed store, hash-verified

190// NYBBLE REVERSE
191//
192uint8_t nybbleReverse(uint8_t value)
193{
194 uint8_t x = value;
195 x = (x >> 4) | (x << 4);
196 return x;
197}
198
199
200uint16_t nybbleReverse(uint16_t value)

Callers 1

unittestFunction · 0.85

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.68