bit_util - Bit Manipulation UtilitiesThe BIT_UTIL functions perform various operations on bits and bytes.
bitBit() - extracts a bit from a value.
bitByte() - extracts an 8-bit byte from a value.
bitNibble() - extracts a 4-bit nibble from a value.
bitReverseByte() - reverse the order of bits in an 8-bit byte.
bitReverseNibble() - reverse the order of bits in a 4-bit nibble.
bitWord() - extracts a 16-bit word from a value.
bit_util.c
bit_util.h
(See libgpl for the
complete source, including support routines and build files.)