pub struct AdiExpander {
pub port_a: AdiPort,
pub port_b: AdiPort,
pub port_c: AdiPort,
pub port_d: AdiPort,
pub port_e: AdiPort,
pub port_f: AdiPort,
pub port_g: AdiPort,
pub port_h: AdiPort,
}Expand description
A struct which represents a V5 ADI expander.
Fields§
§port_a: AdiPortADI Port 1 / A.
port_b: AdiPortADI Port 2 / B.
port_c: AdiPortADI Port 3 / C.
port_d: AdiPortADI Port 4 / D.
port_e: AdiPortADI Port 5 / E.
port_f: AdiPortADI Port 6 / F.
port_g: AdiPortADI Port 7 / G.
port_h: AdiPortADI Port 8 / H.
Implementations§
Source§impl AdiExpander
impl AdiExpander
Sourcepub unsafe fn new(smart_port: u8) -> Self
pub unsafe fn new(smart_port: u8) -> Self
Initializes an ADI expander on a V5 Smart Port
§Safety
This function is unsafe because it allows the user to create multiple
mutable references to the same ADI expander. You likely want to
implement Robot::new() instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdiExpander
impl RefUnwindSafe for AdiExpander
impl Send for AdiExpander
impl Sync for AdiExpander
impl Unpin for AdiExpander
impl UnwindSafe for AdiExpander
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