Struct stm32ral::RWRegister [−][src]
pub struct RWRegister<T> { /* fields omitted */ }
Expand description
A read-write register of type T.
Contains one value of type T and provides volatile read/write functions to it.
Safety
This register should be used where reads and writes to this peripheral register do not lead to memory unsafety. For example, it is a poor choice for a DMA target, but less worrisome for a GPIO output data register.
Access to this register must be synchronised; if multiple threads (or the main thread and an interrupt service routine) are accessing it simultaneously you may encounter data races.