Peripherals

Struct Peripherals 

Source
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: Controller

Primary Controller.

§partner_controller: Controller

Partner Controller.

§port01: SmartPort

Smart Port 1.

§port02: SmartPort

Smart Port 2.

§port03: SmartPort

Smart Port 3.

§port04: SmartPort

Smart Port 4.

§port05: SmartPort

Smart Port 5.

§port06: SmartPort

Smart Port 6.

§port07: SmartPort

Smart Port 7.

§port08: SmartPort

Smart Port 8.

§port09: SmartPort

Smart Port 9.

§port10: SmartPort

Smart Port 10.

§port11: SmartPort

Smart Port 11.

§port12: SmartPort

Smart Port 12.

§port13: SmartPort

Smart Port 13.

§port14: SmartPort

Smart Port 14.

§port15: SmartPort

Smart Port 15.

§port16: SmartPort

Smart Port 16.

§port17: SmartPort

Smart Port 17.

§port18: SmartPort

Smart Port 18.

§port19: SmartPort

Smart Port 19.

§port20: SmartPort

Smart Port 20.

§port21: SmartPort

Smart Port 21.

§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§

Source§

impl Peripherals

Source

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.