#[repr(transparent)]pub struct Capability0(pub u32);Expand description
DCP capability 0 register
Tuple Fields§
§0: u32Implementations§
Source§impl Capability0
impl Capability0
Sourcepub const fn num_keys(&self) -> u8
pub const fn num_keys(&self) -> u8
Encoded value indicating the number of key-storage locations implemented in the design
Sourcepub const fn set_num_keys(&mut self, val: u8)
pub const fn set_num_keys(&mut self, val: u8)
Encoded value indicating the number of key-storage locations implemented in the design
Sourcepub const fn num_channels(&self) -> u8
pub const fn num_channels(&self) -> u8
Encoded value indicating the number of channels implemented in the design
Sourcepub const fn set_num_channels(&mut self, val: u8)
pub const fn set_num_channels(&mut self, val: u8)
Encoded value indicating the number of channels implemented in the design
Sourcepub const fn disable_unique_key(&self) -> bool
pub const fn disable_unique_key(&self) -> bool
Write to a 1 to disable the per-device unique key
Sourcepub const fn set_disable_unique_key(&mut self, val: bool)
pub const fn set_disable_unique_key(&mut self, val: bool)
Write to a 1 to disable the per-device unique key
Sourcepub const fn disable_decrypt(&self) -> bool
pub const fn disable_decrypt(&self) -> bool
Write to 1 to disable the decryption
Sourcepub const fn set_disable_decrypt(&mut self, val: bool)
pub const fn set_disable_decrypt(&mut self, val: bool)
Write to 1 to disable the decryption
Trait Implementations§
Source§impl Clone for Capability0
impl Clone for Capability0
Source§fn clone(&self) -> Capability0
fn clone(&self) -> Capability0
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Capability0
impl Debug for Capability0
Source§impl Default for Capability0
impl Default for Capability0
Source§fn default() -> Capability0
fn default() -> Capability0
Returns the “default value” for a type. Read more
Source§impl PartialEq for Capability0
impl PartialEq for Capability0
impl Copy for Capability0
impl Eq for Capability0
impl StructuralPartialEq for Capability0
Auto Trait Implementations§
impl Freeze for Capability0
impl RefUnwindSafe for Capability0
impl Send for Capability0
impl Sync for Capability0
impl Unpin for Capability0
impl UnwindSafe for Capability0
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more