Rust and Volatile - (register type volatile)
⚓ Rust 📅 2025-10-04 👤 surdeus 👁️ 10So - I see this 'volatile' crate:
HOWEVER - that is NOT what I am looking for.
I am specifically looking for a means to access HARDWARE register in the rather standard way it is done with Embedded C language drivers.
This means there are:
A) Volatile Pointers - to a register one can read and write.
AN example would be a status register for a UART.
B) "Volatile const pointers" - to a data register that can only be read.
An Example would be a 'RX_DATA' register that you can read but you cannot write. The idea would be the TX_DATA register might be at a different address/Location.
Any suggestions? Or is the answer: Give up and write the driver in C.
2 posts - 2 participants
🏷️ Rust_feed