[][src]Type Definition lpc55s6x_pac::hashcrypt::status::R

type R = R<u32, STATUS>;

Reader of register STATUS

Methods

impl R[src]

pub fn waiting(&self) -> WAITING_R[src]

Bit 0 - If 1, the block is waiting for more data to process.

pub fn digest_aka_outdata(&self) -> DIGEST_AKA_OUTDATA_R[src]

Bit 1 - For Hash, if 1 then a DIGEST is ready and waiting and there is no active next block already started. For Cryptographic uses, this will be set for each block processed, indicating OUTDATA (and OUTDATA2 if larger output) contains the next value to read out. This is cleared when any data is written, when New is written, for Cryptographic uses when the last word is read out, or when the block is disabled.

pub fn error(&self) -> ERROR_R[src]

Bit 2 - If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT field will indicate which block it was on.

pub fn needkey(&self) -> NEEDKEY_R[src]

Bit 4 - Indicates the block wants the key to be written in (set along with WAITING)

pub fn neediv(&self) -> NEEDIV_R[src]

Bit 5 - Indicates the block wants an IV/NONE to be written in (set along with WAITING)

pub fn icbidx(&self) -> ICBIDX_R[src]

Bits 16:21 - If ICB-AES is selected, then reads as the ICB index count based on ICBSTRM (from CRYPTCFG). That is, if 3 bits of ICBSTRM, then this will count from 0 to 7 and then back to 0. On 0, it has to compute the full ICB, quicker when not 0.