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
tasks_ksgen: TASKS_KSGEN
0x00 - Start generation of key-stream. This operation will stop by itself when completed.
tasks_crypt: TASKS_CRYPT
0x04 - Start encrypt/decrypt. This operation will stop by itself when completed.
tasks_stop: TASKS_STOP
0x08 - Stop encrypt/decrypt.
events_endksgen: EVENTS_ENDKSGEN
0x100 - Keystream generation completed.
events_endcrypt: EVENTS_ENDCRYPT
0x104 - Encrypt/decrypt completed.
events_error: EVENTS_ERROR
0x108 - Error happened.
shorts: SHORTS
0x200 - Shortcuts for the CCM.
intenset: INTENSET
0x304 - Interrupt enable set register.
intenclr: INTENCLR
0x308 - Interrupt enable clear register.
micstatus: MICSTATUS
0x400 - CCM RX MIC check result.
enable: ENABLE
0x500 - CCM enable.
mode: MODE
0x504 - Operation mode.
cnfptr: CNFPTR
0x508 - Pointer to a data structure holding AES key and NONCE vector.
inptr: INPTR
0x50c - Pointer to the input packet.
outptr: OUTPTR
0x510 - Pointer to the output packet.
scratchptr: SCRATCHPTR
0x514 - Pointer to a "scratch" data area used for temporary storage during resolution. A minimum of 43 bytes must be reserved.
power: POWER
0xffc - Peripheral power control.