pub struct TsNbus {
data_pins: [Option<GpioPin>; 8],
csn: Option<GpioPin>,
txrx: Option<GpioPin>,
strobe: Option<GpioPin>,
ale: Option<GpioPin>,
rdy: Option<GpioPin>,
power_state: PowerState,
children: Vec<BusChild>,
}Fields§
§data_pins: [Option<GpioPin>; 8]§csn: Option<GpioPin>§txrx: Option<GpioPin>§strobe: Option<GpioPin>§ale: Option<GpioPin>§rdy: Option<GpioPin>§power_state: PowerState§children: Vec<BusChild>Implementations§
Source§impl TsNbus
impl TsNbus
Sourcefn set_data_direction(&self, output: bool)
fn set_data_direction(&self, output: bool)
Sets data direction.
Sourcefn write_byte(&self, val: u8)
fn write_byte(&self, val: u8)
Writes byte.
Sourcefn start_transaction(&self)
fn start_transaction(&self)
Starts transaction.
Sourcefn end_transaction(&self)
fn end_transaction(&self)
Performs the end transaction operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TsNbus
impl RefUnwindSafe for TsNbus
impl Send for TsNbus
impl Sync for TsNbus
impl Unpin for TsNbus
impl UnsafeUnpin for TsNbus
impl UnwindSafe for TsNbus
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