#[repr(u8)]pub enum SmartDeviceType {
Show 15 variants
Motor,
Rotation,
Imu,
Distance,
Vision,
AiVision,
Electromagnet,
LightTower,
Arm,
Optical,
Gps,
Radio,
Adi,
GenericSerial,
Unknown(V5_DeviceType),
}
Expand description
A possible type of device that can be plugged into a SmartPort
.
Variants§
Motor
Smart Motor
Rotation
Rotation Sensor
Imu
Inertial Sensor
Distance
Distance Sensor
Vision
Vision Sensor
AiVision
AI Vision Sensor
Electromagnet
Workcell Electromagnet
LightTower
CTE Workcell Light Tower
Arm
CTE Workcell Arm
Optical
Optical Sensor
Gps
GPS Sensor
Radio
Smart Radio
Adi
ADI Expander
This variant is also internally to represent the Brain’s onboard ADI slots.
GenericSerial
Generic Serial Port
Unknown(V5_DeviceType)
Other device type code returned by the SDK that is currently unsupported, undocumented, or unknown.
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§const fn clone_from(&mut self, source: &Self)
const 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_DeviceType
impl From<SmartDeviceType> for V5_DeviceType
Source§fn from(value: SmartDeviceType) -> Self
fn from(value: SmartDeviceType) -> Self
Converts to this type from the input type.
Source§impl From<V5_DeviceType> for SmartDeviceType
impl From<V5_DeviceType> for SmartDeviceType
Source§fn from(value: V5_DeviceType) -> Self
fn from(value: V5_DeviceType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SmartDeviceType
impl PartialEq 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