#[repr(transparent)]pub struct Cinstrconf(pub u32);
Expand description
Custom instruction configuration register.
Tuple Fields§
§0: u32
Implementations§
Source§impl Cinstrconf
impl Cinstrconf
Sourcepub fn set_opcode(&mut self, val: u8)
pub fn set_opcode(&mut self, val: u8)
Opcode of Custom instruction.
Sourcepub fn set_length(&mut self, val: Length)
pub fn set_length(&mut self, val: Length)
Length of custom instruction in number of bytes.
Sourcepub const fn lio2(&self) -> bool
pub const fn lio2(&self) -> bool
Level of the IO2 pin (if connected) during transmission of custom instruction.
Sourcepub fn set_lio2(&mut self, val: bool)
pub fn set_lio2(&mut self, val: bool)
Level of the IO2 pin (if connected) during transmission of custom instruction.
Sourcepub const fn lio3(&self) -> bool
pub const fn lio3(&self) -> bool
Level of the IO3 pin (if connected) during transmission of custom instruction.
Sourcepub fn set_lio3(&mut self, val: bool)
pub fn set_lio3(&mut self, val: bool)
Level of the IO3 pin (if connected) during transmission of custom instruction.
Sourcepub fn set_wipwait(&mut self, val: bool)
pub fn set_wipwait(&mut self, val: bool)
Wait for write complete before sending command.
Sourcepub const fn lfen(&self) -> bool
pub const fn lfen(&self) -> bool
Enable long frame mode. When enabled, a custom instruction transaction has to be ended by writing the LFSTOP field.
Sourcepub fn set_lfen(&mut self, val: bool)
pub fn set_lfen(&mut self, val: bool)
Enable long frame mode. When enabled, a custom instruction transaction has to be ended by writing the LFSTOP field.
Sourcepub fn set_lfstop(&mut self, val: bool)
pub fn set_lfstop(&mut self, val: bool)
Stop (finalize) long frame transaction
Trait Implementations§
Source§impl Clone for Cinstrconf
impl Clone for Cinstrconf
Source§fn clone(&self) -> Cinstrconf
fn clone(&self) -> Cinstrconf
Returns a copy 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 Default for Cinstrconf
impl Default for Cinstrconf
Source§fn default() -> Cinstrconf
fn default() -> Cinstrconf
Returns the “default value” for a type. Read more
Source§impl PartialEq for Cinstrconf
impl PartialEq for Cinstrconf
impl Copy for Cinstrconf
impl Eq for Cinstrconf
impl StructuralPartialEq for Cinstrconf
Auto Trait Implementations§
impl Freeze for Cinstrconf
impl RefUnwindSafe for Cinstrconf
impl Send for Cinstrconf
impl Sync for Cinstrconf
impl Unpin for Cinstrconf
impl UnwindSafe for Cinstrconf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)