Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn set_start(&self) -> &SET_START

0x40 - HMAC start control register

Source

pub const fn set_para_purpose(&self) -> &SET_PARA_PURPOSE

0x44 - HMAC parameter configuration register

Source

pub const fn set_para_key(&self) -> &SET_PARA_KEY

0x48 - HMAC key configuration register

Source

pub const fn set_para_finish(&self) -> &SET_PARA_FINISH

0x4c - HMAC configuration completion register

Source

pub const fn set_message_one(&self) -> &SET_MESSAGE_ONE

0x50 - HMAC one message control register

Source

pub const fn set_message_ing(&self) -> &SET_MESSAGE_ING

0x54 - HMAC message continue register

Source

pub const fn set_message_end(&self) -> &SET_MESSAGE_END

0x58 - HMAC message end register

Source

pub const fn set_result_finish(&self) -> &SET_RESULT_FINISH

0x5c - HMAC read result completion register

Source

pub const fn set_invalidate_jtag(&self) -> &SET_INVALIDATE_JTAG

0x60 - Invalidate JTAG result register

Source

pub const fn set_invalidate_ds(&self) -> &SET_INVALIDATE_DS

0x64 - Invalidate digital signature result register

Source

pub const fn query_error(&self) -> &QUERY_ERROR

0x68 - The matching result between key and purpose user configured

Source

pub const fn query_busy(&self) -> &QUERY_BUSY

0x6c - The busy state of HMAC module

Source

pub const fn wr_message_(&self, n: usize) -> &WR_MESSAGE_

0x80..0xc0 - Message register %s

Source

pub fn wr_message__iter(&self) -> impl Iterator<Item = &WR_MESSAGE_>

Iterator for array of: 0x80..0xc0 - Message register %s

Source

pub const fn rd_result_(&self, n: usize) -> &RD_RESULT_

0xc0..0xe0 - Hash result register %s

Source

pub fn rd_result__iter(&self) -> impl Iterator<Item = &RD_RESULT_>

Iterator for array of: 0xc0..0xe0 - Hash result register %s

Source

pub const fn set_message_pad(&self) -> &SET_MESSAGE_PAD

0xf0 - Software padding register

Source

pub const fn one_block(&self) -> &ONE_BLOCK

0xf4 - One block message register.

Source

pub const fn date(&self) -> &DATE

0xf8 - Version control register

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.