#[repr(C)]pub struct RegisterBlock {
pub tasks_start: TASKS_START,
pub tasks_stop: TASKS_STOP,
pub events_valrdy: EVENTS_VALRDY,
pub shorts: SHORTS,
pub intenset: INTENSET,
pub intenclr: INTENCLR,
pub config: CONFIG,
pub value: VALUE,
/* private fields */
}Expand description
Register block
Fields§
§tasks_start: TASKS_START0x00 - Task starting the random number generator
tasks_stop: TASKS_STOP0x04 - Task stopping the random number generator
events_valrdy: EVENTS_VALRDY0x100 - Event being generated for every new random number written to the VALUE register
shorts: SHORTS0x200 - Shortcut register
intenset: INTENSET0x304 - Enable interrupt
intenclr: INTENCLR0x308 - Disable interrupt
config: CONFIG0x504 - Configuration register
value: VALUE0x508 - Output random number
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more