very nice article on the matter, and congrats on your publication!
Bit Flipping Tutorial
An Uncomplicated Guide to Controlling MCU Functional
Bit flipping—the process of flipping bits in registers—enables you to control a microcontroller’s functionality. But what is the best method of bit flipping? Eric points you in the right direction with this helpful tutorial. p. 52
Keywords: Programming, bit flipping, masking, logic, C, HAL, hardware abstraction layer, API