pub struct Peripherals {Show 31 fields
pub master_controller: Controller,
pub partner_controller: Controller,
pub port01: SmartPort,
pub port02: SmartPort,
pub port03: SmartPort,
pub port04: SmartPort,
pub port05: SmartPort,
pub port06: SmartPort,
pub port07: SmartPort,
pub port08: SmartPort,
pub port09: SmartPort,
pub port10: SmartPort,
pub port11: SmartPort,
pub port12: SmartPort,
pub port13: SmartPort,
pub port14: SmartPort,
pub port15: SmartPort,
pub port16: SmartPort,
pub port17: SmartPort,
pub port18: SmartPort,
pub port19: SmartPort,
pub port20: SmartPort,
pub port21: SmartPort,
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 all the peripherals on the V5 brain.
Fields§
§master_controller: ControllerPrimary Controller.
partner_controller: ControllerPartner Controller.
port01: SmartPortSmart Port 1.
port02: SmartPortSmart Port 2.
port03: SmartPortSmart Port 3.
port04: SmartPortSmart Port 4.
port05: SmartPortSmart Port 5.
port06: SmartPortSmart Port 6.
port07: SmartPortSmart Port 7.
port08: SmartPortSmart Port 8.
port09: SmartPortSmart Port 9.
port10: SmartPortSmart Port 10.
port11: SmartPortSmart Port 11.
port12: SmartPortSmart Port 12.
port13: SmartPortSmart Port 13.
port14: SmartPortSmart Port 14.
port15: SmartPortSmart Port 15.
port16: SmartPortSmart Port 16.
port17: SmartPortSmart Port 17.
port18: SmartPortSmart Port 18.
port19: SmartPortSmart Port 19.
port20: SmartPortSmart Port 20.
port21: SmartPortSmart Port 21.
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 Peripherals
impl Peripherals
Sourcepub unsafe fn new() -> Self
pub unsafe fn new() -> Self
Constructs a Peripherals struct unsafely.
§Safety
This function is unsafe because it allows the user to create multiple
mutable references to the V5’s peripherals. You likely want to use the
peripherals object passed into
Robot::initialize instead.
Auto Trait Implementations§
impl Freeze for Peripherals
impl !RefUnwindSafe for Peripherals
impl Send for Peripherals
impl Sync for Peripherals
impl Unpin for Peripherals
impl !UnwindSafe for Peripherals
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