[−][src]Module tm4c_hal::bb
Code to handle bit-banding.
Bit-banding is where the SoC maps each 8-bit byte to 8 consecutive 32-bit words. Writing a 1 to that word sets the matching bit. Writing a 0 clears the matching bit. It means you can perform atomic bit set/clear; i.e. without a read-modify-write.
Functions
change_bit⚠ | Sets/Clears a bit at the given address atomically, using the bit-banding feature. We take a const pointer and mutate it, but that's because the svd2rust crate will only give us const pointers. |
read_bit | Reads a bit at the given address atomically, using the bit-banding feature. |
spin_bit | Spins while reading a bit at the given address atomically, using the bit- banding feature. We take a const pointer and mutate it, but that's because the svd2rust crate will only give us const pointers. |
toggle_bit⚠ | Sets and then Clears a bit at the given address atomically, using the bit- banding feature. We take a const pointer and mutate it, but that's because the svd2rust crate will only give us const pointers. |