Set, Clear, and Toggle Register Bits
Modify a single bit of an 8-bit hardware register using masks — without touching the others.
uint8_t set_bit(uint8_t reg, uint8_t bit);
uint8_t clear_bit(uint8_t reg, uint8_t bit);
uint8_t toggle_bit(uint8_t reg, uint8_t bit);