OS
v1.7.5
Documentation
|
Helper Bit-manipulation interfaces. More...
Functions | |
template<typename T , typename W > | |
void | multipleSet (T &dst, W xBits) |
Uses the bitwise OR operator to set bits into dst. | |
template<typename T , typename W > | |
void | multipleClear (T &dst, W xBits) |
Uses the bitwise AND operator to clear bits into dst. | |
template<typename T > | |
void | singleSet (T &dst, const size_t xBit) |
Uses the bitwise OR operator to set a single bit into dst. | |
template<typename T > | |
void | singleClear (T &dst, const size_t xBit) |
Uses the bitwise AND operator to clear a single bit into dst. | |
template<typename T > | |
bool | singleRead (T dst, const size_t xBit) |
Uses the bitwise AND operator to read the value of a single bit from dst. | |
template<typename T > | |
void | singleToggle (T &dst, const size_t xBit) |
Uses the bitwise XOR operator to toggle the value of a single bit from dst. | |
template<typename T > | |
void | singleWrite (T &dst, const size_t xBit, const bool value) |
Write the boolean value in a single bit of the dst variable. | |
template<typename T , typename W > | |
bool | multipleGet (T reg, W xBits) |
Read multiple bits by applying the mask given by xBits to the dst variable. | |
Helper Bit-manipulation interfaces.