#[repr(u32)]pub enum SmartDeviceType {
None = 0,
Motor = 2,
Rotation = 4,
Imu = 6,
Distance = 7,
Vision = 11,
Optical = 16,
Gps = 20,
Radio = 8,
Adi = 12,
Serial = 129,
}Expand description
Represents a possible type of device that can be registered on a SmartPort.
Variants§
None = 0
No device
Motor = 2
Smart Motor
Rotation = 4
Rotation Sensor
Imu = 6
Inertial Sensor
Distance = 7
Distance Sensor
Vision = 11
Vision Sensor
Optical = 16
Optical Sensor
Gps = 20
GPS Sensor
Radio = 8
Smart Radio
Adi = 12
ADI Expander
This variant is also internally to represent the brain’s onboard ADI slots.
Serial = 129
Generic Serial Port
Trait Implementations§
Source§impl Clone for SmartDeviceType
impl Clone for SmartDeviceType
Source§fn clone(&self) -> SmartDeviceType
fn clone(&self) -> SmartDeviceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartDeviceType
impl Debug for SmartDeviceType
Source§impl From<SmartDeviceType> for v5_device_e_t
impl From<SmartDeviceType> for v5_device_e_t
Source§fn from(value: SmartDeviceType) -> Self
fn from(value: SmartDeviceType) -> Self
Convert a SmartDeviceType into a raw pros_sys::apix::v5_device_e_t.
Source§impl PartialEq for SmartDeviceType
impl PartialEq for SmartDeviceType
Source§impl TryFrom<u32> for SmartDeviceType
impl TryFrom<u32> for SmartDeviceType
impl Copy for SmartDeviceType
impl Eq for SmartDeviceType
impl StructuralPartialEq for SmartDeviceType
Auto Trait Implementations§
impl Freeze for SmartDeviceType
impl RefUnwindSafe for SmartDeviceType
impl Send for SmartDeviceType
impl Sync for SmartDeviceType
impl Unpin for SmartDeviceType
impl UnwindSafe for SmartDeviceType
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