ADC  9.2
Analog to Digital Conversor library for the Teensy 3.1/3.2 microprocessor
atomic Namespace Reference

Atomic set, clear, change, or get bit in a register. More...

Detailed Description

Atomic set, clear, change, or get bit in a register.

Clear bit in address (make it zero), set bit (make it one), or return the value of that bit. changeBitFlag can change up to 2 bits in a flag at the same time

We can change this functions depending on the board:

  • Teensy 3.x use bitband.
  • Teensy LC has a more advanced bit manipulation engine.
  • Teensy 4 also has bitband capabilities, but are not yet implemented, instead registers are set and cleared manually. TODO: fix this.