Struct vex_rt::adi::AdiExpander
source · [−]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: AdiPort
ADI Port 1 / A.
port_b: AdiPort
ADI Port 2 / B.
port_c: AdiPort
ADI Port 3 / C.
port_d: AdiPort
ADI Port 4 / D.
port_e: AdiPort
ADI Port 5 / E.
port_f: AdiPort
ADI Port 6 / F.
port_g: AdiPort
ADI Port 7 / G.
port_h: AdiPort
ADI Port 8 / H.
Implementations
sourceimpl 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.
Auto Trait Implementations
impl RefUnwindSafe for AdiExpander
impl Send for AdiExpander
impl Sync for AdiExpander
impl Unpin for AdiExpander
impl UnwindSafe for AdiExpander
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more