#[repr(transparent)]pub struct Cinstrconf(pub u32);Expand description
Custom instruction configuration register.
Tuple Fields§
§0: u32Implementations§
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 more