[][src]Type Definition cc2538::aes::ctrl_alg_sel::R

type R = R<u32, CTRL_ALG_SEL>;

Reader of register CTRL_ALG_SEL

Methods

impl R[src]

pub fn tag(&self) -> TAG_R[src]

Bit 31 - 31:31] If this bit is cleared to 0, the DMA operation involves only data. If this bit is set, the DMA operation includes a TAG (Authentication Result / Digest). For SHA-256 operation, a DMA must be set up for both input data and TAG. For any other selected module, setting this bit only allows a DMA that reads the TAG. No data allowed to be transferred to or from the selected module via the DMA.

pub fn reserved28(&self) -> RESERVED28_R[src]

Bits 3:30 - 30:3] Bits should be written with 0s and ignored on read.

pub fn hash(&self) -> HASH_R[src]

Bit 2 - 2:2] If set to one, selects the hash engine as destination for the DMA The maximum transfer size to DMA engine is set to 64 bytes for reading and 32 bytes for writing (the latter is only applicable if the hash result is written out through the DMA).

pub fn aes(&self) -> AES_R[src]

Bit 1 - 1:1] If set to one, selects the AES engine as source/destination for the DMA The read and write maximum transfer size to the DMA engine is set to 16 bytes.

pub fn keystore(&self) -> KEYSTORE_R[src]

Bit 0 - 0:0] If set to one, selects the Key Store as destination for the DMA The maximum transfer size to DMA engine is set to 32 bytes (however transfers of 16, 24 and 32 bytes are allowed)