Struct nrf52840_pac::ccm::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 19 fields 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, /* 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

§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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.