We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Reverse the bits in a byte.
unsigned char ReverseBits(unsigned char b);
b The byte to reverse.
unsigned char b with bits reversed.
unsigned char a = ReverseBits(0b11110000);
a => 0b00001111
unsigned char a = ReverseBits(0b11001100);
a => 0b00110011
unsigned char a = ReverseBits(0b10110111);
a => 0b11101101
Home
Getting Started
Tutorials
FAQ
Pinouts
VI Reference
Firmware Reference
Specification Reference