Struct nrf52832_pac::ccm::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 16 fields
pub tasks_ksgen: TASKS_KSGEN,
pub tasks_crypt: TASKS_CRYPT,
pub tasks_stop: TASKS_STOP,
pub events_endksgen: EVENTS_ENDKSGEN,
pub events_endcrypt: EVENTS_ENDCRYPT,
pub events_error: EVENTS_ERROR,
pub shorts: SHORTS,
pub intenset: INTENSET,
pub intenclr: INTENCLR,
pub micstatus: MICSTATUS,
pub enable: ENABLE,
pub mode: MODE,
pub cnfptr: CNFPTR,
pub inptr: INPTR,
pub outptr: OUTPTR,
pub scratchptr: SCRATCHPTR,
/* private fields */
}
Expand description
Register block
Fields
tasks_ksgen: TASKS_KSGEN
0x00 - Start generation of key-stream. This operation will stop by itself when completed.
tasks_crypt: TASKS_CRYPT
0x04 - Start encryption/decryption. This operation will stop by itself when completed.
tasks_stop: TASKS_STOP
0x08 - Stop encryption/decryption
events_endksgen: EVENTS_ENDKSGEN
0x100 - Key-stream generation complete
events_endcrypt: EVENTS_ENDCRYPT
0x104 - Encrypt/decrypt complete
events_error: EVENTS_ERROR
0x108 - CCM error event
shorts: SHORTS
0x200 - Shortcut register
intenset: INTENSET
0x304 - Enable interrupt
intenclr: INTENCLR
0x308 - Disable interrupt
micstatus: MICSTATUS
0x400 - MIC check result
enable: ENABLE
0x500 - Enable
mode: MODE
0x504 - Operation mode
cnfptr: CNFPTR
0x508 - Pointer to data structure holding AES key and NONCE vector
inptr: INPTR
0x50c - Input pointer
outptr: OUTPTR
0x510 - Output pointer
scratchptr: SCRATCHPTR
0x514 - Pointer to data area used for temporary storage
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more