Struct nrf51::ccm::RegisterBlock [] [src]

#[repr(C)]
pub struct RegisterBlock { 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, pub power: POWER, // some fields omitted }

Register block

Fields

0x00 - Start generation of key-stream. This operation will stop by itself when completed.

0x04 - Start encrypt/decrypt. This operation will stop by itself when completed.

0x08 - Stop encrypt/decrypt.

0x100 - Keystream generation completed.

0x104 - Encrypt/decrypt completed.

0x108 - Error happened.

0x200 - Shortcuts for the CCM.

0x304 - Interrupt enable set register.

0x308 - Interrupt enable clear register.

0x400 - CCM RX MIC check result.

0x500 - CCM enable.

0x504 - Operation mode.

0x508 - Pointer to a data structure holding AES key and NONCE vector.

0x50c - Pointer to the input packet.

0x510 - Pointer to the output packet.

0x514 - Pointer to a "scratch" data area used for temporary storage during resolution. A minimum of 43 bytes must be reserved.

0xffc - Peripheral power control.