#[repr(transparent)]pub struct Cinstrconf(pub u32);
Expand description
Custom instruction configuration register.
Tuple Fields§
§0: u32
Implementations§
Source§impl Cinstrconf
impl Cinstrconf
Sourcepub const fn set_opcode(&mut self, val: u8)
pub const fn set_opcode(&mut self, val: u8)
Opcode of Custom instruction.
Sourcepub const fn set_length(&mut self, val: Length)
pub const 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 const fn set_lio2(&mut self, val: bool)
pub const 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 const fn set_lio3(&mut self, val: bool)
pub const fn set_lio3(&mut self, val: bool)
Level of the IO3 pin (if connected) during transmission of custom instruction.
Sourcepub const fn set_wipwait(&mut self, val: bool)
pub const fn set_wipwait(&mut self, val: bool)
Wait for write complete before sending command.
Sourcepub const fn set_wren(&mut self, val: bool)
pub const fn set_wren(&mut self, val: bool)
Send WREN (write enable opcode 0x06) before instruction.
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 const fn set_lfen(&mut self, val: bool)
pub const 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 const fn set_lfstop(&mut self, val: bool)
pub const 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Cinstrconf
impl Debug for Cinstrconf
Source§impl Default for Cinstrconf
impl Default for Cinstrconf
Source§fn default() -> Cinstrconf
fn default() -> Cinstrconf
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
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)
clone_to_uninit
)