nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Packet1

Struct Packet1 

Source
#[repr(transparent)]
pub struct Packet1(pub u32);
Expand description

DCP work packet 1 status register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Packet1

Source

pub const fn interrupt(&self) -> bool

Reflects whether the channel must issue an interrupt upon the completion of the packet.

Source

pub const fn set_interrupt(&mut self, val: bool)

Reflects whether the channel must issue an interrupt upon the completion of the packet.

Source

pub const fn decr_semaphore(&self) -> bool

Reflects whether the channel’s semaphore must be decremented at the end of the current operation

Source

pub const fn set_decr_semaphore(&mut self, val: bool)

Reflects whether the channel’s semaphore must be decremented at the end of the current operation

Source

pub const fn chain(&self) -> bool

Reflects whether the next command pointer register must be loaded into the channel’s current descriptor pointer

Source

pub const fn set_chain(&mut self, val: bool)

Reflects whether the next command pointer register must be loaded into the channel’s current descriptor pointer

Source

pub const fn chain_contiguous(&self) -> bool

Reflects whether the next packet’s address is located following this packet’s payload.

Source

pub const fn set_chain_contiguous(&mut self, val: bool)

Reflects whether the next packet’s address is located following this packet’s payload.

Source

pub const fn enable_memcopy(&self) -> bool

Reflects whether the selected memory-copy (memcopy) function should be enabled for this operation.

Source

pub const fn set_enable_memcopy(&mut self, val: bool)

Reflects whether the selected memory-copy (memcopy) function should be enabled for this operation.

Source

pub const fn enable_cipher(&self) -> bool

Reflects whether the selected cipher function must be enabled for this operation.

Source

pub const fn set_enable_cipher(&mut self, val: bool)

Reflects whether the selected cipher function must be enabled for this operation.

Source

pub const fn enable_hash(&self) -> bool

Reflects whether the selected hashing function must be enabled for this operation.

Source

pub const fn set_enable_hash(&mut self, val: bool)

Reflects whether the selected hashing function must be enabled for this operation.

Source

pub const fn enable_blit(&self) -> bool

Reflects whether the DCP must perform a blit operation

Source

pub const fn set_enable_blit(&mut self, val: bool)

Reflects whether the DCP must perform a blit operation

Source

pub const fn cipher_encrypt(&self) -> CipherEncrypt

When the cipher block is enabled, this bit indicates whether the operation is encryption or decryption

Source

pub const fn set_cipher_encrypt(&mut self, val: CipherEncrypt)

When the cipher block is enabled, this bit indicates whether the operation is encryption or decryption

Source

pub const fn cipher_init(&self) -> bool

Reflects whether the cipher block must load the initialization vector from the payload for this operation

Source

pub const fn set_cipher_init(&mut self, val: bool)

Reflects whether the cipher block must load the initialization vector from the payload for this operation

Source

pub const fn otp_key(&self) -> bool

Reflects whether a hardware-based key must be used

Source

pub const fn set_otp_key(&mut self, val: bool)

Reflects whether a hardware-based key must be used

Source

pub const fn payload_key(&self) -> bool

When set, it indicates the payload contains the key

Source

pub const fn set_payload_key(&mut self, val: bool)

When set, it indicates the payload contains the key

Source

pub const fn hash_init(&self) -> bool

Reflects whether the current hashing block is the initial block in the hashing operation, so the hash registers must be initialized before the operation

Source

pub const fn set_hash_init(&mut self, val: bool)

Reflects whether the current hashing block is the initial block in the hashing operation, so the hash registers must be initialized before the operation

Source

pub const fn hash_term(&self) -> bool

Reflects whether the current hashing block is the final block in the hashing operation, so the hash padding must be applied by the hardware

Source

pub const fn set_hash_term(&mut self, val: bool)

Reflects whether the current hashing block is the final block in the hashing operation, so the hash padding must be applied by the hardware

Source

pub const fn check_hash(&self) -> bool

Reflects whether the calculated hash value must be compared to the hash provided in the payload.

Source

pub const fn set_check_hash(&mut self, val: bool)

Reflects whether the calculated hash value must be compared to the hash provided in the payload.

Source

pub const fn hash_output(&self) -> HashOutput

When the hashing is enabled, this bit controls whether the input or output data is hashed.

Source

pub const fn set_hash_output(&mut self, val: HashOutput)

When the hashing is enabled, this bit controls whether the input or output data is hashed.

Source

pub const fn constant_fill(&self) -> bool

When this bit is set (MEMCOPY and BLIT modes only), the DCP simply fills the destination buffer with the value found in the source address field

Source

pub const fn set_constant_fill(&mut self, val: bool)

When this bit is set (MEMCOPY and BLIT modes only), the DCP simply fills the destination buffer with the value found in the source address field

Source

pub const fn test_sema_irq(&self) -> bool

This bit is used to test the channel semaphore transition to 0. FOR TEST USE ONLY!

Source

pub const fn set_test_sema_irq(&mut self, val: bool)

This bit is used to test the channel semaphore transition to 0. FOR TEST USE ONLY!

Source

pub const fn key_byteswap(&self) -> bool

Reflects whether the DCP engine swaps the key bytes (big-endian key).

Source

pub const fn set_key_byteswap(&mut self, val: bool)

Reflects whether the DCP engine swaps the key bytes (big-endian key).

Source

pub const fn key_wordswap(&self) -> bool

Reflects whether the DCP engine swaps the key words (big-endian key).

Source

pub const fn set_key_wordswap(&mut self, val: bool)

Reflects whether the DCP engine swaps the key words (big-endian key).

Source

pub const fn input_byteswap(&self) -> bool

Reflects whether the DCP engine byteswaps the input data (big-endian data).

Source

pub const fn set_input_byteswap(&mut self, val: bool)

Reflects whether the DCP engine byteswaps the input data (big-endian data).

Source

pub const fn input_wordswap(&self) -> bool

Reflects whether the DCP engine wordswaps the input data (big-endian data).

Source

pub const fn set_input_wordswap(&mut self, val: bool)

Reflects whether the DCP engine wordswaps the input data (big-endian data).

Source

pub const fn output_byteswap(&self) -> bool

Reflects whether the DCP engine byteswaps the output data (big-endian data).

Source

pub const fn set_output_byteswap(&mut self, val: bool)

Reflects whether the DCP engine byteswaps the output data (big-endian data).

Source

pub const fn output_wordswap(&self) -> bool

Reflects whether the DCP engine wordswaps the output data (big-endian data).

Source

pub const fn set_output_wordswap(&mut self, val: bool)

Reflects whether the DCP engine wordswaps the output data (big-endian data).

Source

pub const fn tag(&self) -> u8

Packet Tag

Source

pub const fn set_tag(&mut self, val: u8)

Packet Tag

Trait Implementations§

Source§

impl Clone for Packet1

Source§

fn clone(&self) -> Packet1

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Packet1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Packet1

Source§

fn default() -> Packet1

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Packet1

Source§

fn eq(&self, other: &Packet1) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Packet1

Source§

impl Eq for Packet1

Source§

impl StructuralPartialEq for Packet1

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.