[][src]Struct nrf52840_hal::target::ccm::RegisterBlock

#[repr(C)]
pub struct RegisterBlock { pub tasks_ksgen: TASKS_KSGEN, pub tasks_crypt: TASKS_CRYPT, pub tasks_stop: TASKS_STOP, pub tasks_rateoverride: TASKS_RATEOVERRIDE, 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, pub maxpacketsize: MAXPACKETSIZE, pub rateoverride: RATEOVERRIDE, // some fields omitted }

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

tasks_rateoverride: TASKS_RATEOVERRIDE

0x0c - Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption

events_endksgen: EVENTS_ENDKSGEN

0x100 - Key-stream generation complete

events_endcrypt: EVENTS_ENDCRYPT

0x104 - Encrypt/decrypt complete

events_error: EVENTS_ERROR

0x108 - Deprecated register - 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

maxpacketsize: MAXPACKETSIZE

0x518 - Length of key-stream generated when MODE.LENGTH = Extended.

rateoverride: RATEOVERRIDE

0x51c - Data rate override setting.

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self