Enum vex_sdk::adi::V5_AdiPortConfiguration
source · #[repr(C)]pub enum V5_AdiPortConfiguration {
Show 18 variants
kAdiPortTypeAnalogIn = 0,
kAdiPortTypeAnalogOut = 1,
kAdiPortTypeDigitalIn = 2,
kAdiPortTypeDigitalOut = 3,
kAdiPortTypeSmartButton = 4,
kAdiPortTypeSmartPot = 5,
kAdiPortTypeLegacyButton = 6,
kAdiPortTypeLegacyPotentiometer = 7,
kAdiPortTypeLegacyLineSensor = 8,
kAdiPortTypeLegacyLightSensor = 9,
kAdiPortTypeLegacyGyro = 10,
kAdiPortTypeLegacyAccelerometer = 11,
kAdiPortTypeLegacyServo = 12,
kAdiPortTypeLegacyPwm = 13,
kAdiPortTypeQuadEncoder = 14,
kAdiPortTypeSonar = 15,
kAdiPortTypeLegacyPwmSlew = 16,
kAdiPortTypeUndefined = 255,
}Variants§
kAdiPortTypeAnalogIn = 0
kAdiPortTypeAnalogOut = 1
kAdiPortTypeDigitalIn = 2
kAdiPortTypeDigitalOut = 3
kAdiPortTypeSmartButton = 4
kAdiPortTypeSmartPot = 5
kAdiPortTypeLegacyButton = 6
kAdiPortTypeLegacyPotentiometer = 7
kAdiPortTypeLegacyLineSensor = 8
kAdiPortTypeLegacyLightSensor = 9
kAdiPortTypeLegacyGyro = 10
kAdiPortTypeLegacyAccelerometer = 11
kAdiPortTypeLegacyServo = 12
kAdiPortTypeLegacyPwm = 13
kAdiPortTypeQuadEncoder = 14
kAdiPortTypeSonar = 15
kAdiPortTypeLegacyPwmSlew = 16
kAdiPortTypeUndefined = 255
Trait Implementations§
source§impl Clone for V5_AdiPortConfiguration
impl Clone for V5_AdiPortConfiguration
source§fn clone(&self) -> V5_AdiPortConfiguration
fn clone(&self) -> V5_AdiPortConfiguration
Returns a copy 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 V5_AdiPortConfiguration
impl Debug for V5_AdiPortConfiguration
source§impl Default for V5_AdiPortConfiguration
impl Default for V5_AdiPortConfiguration
source§fn default() -> V5_AdiPortConfiguration
fn default() -> V5_AdiPortConfiguration
Returns the “default value” for a type. Read more
source§impl PartialEq for V5_AdiPortConfiguration
impl PartialEq for V5_AdiPortConfiguration
source§fn eq(&self, other: &V5_AdiPortConfiguration) -> bool
fn eq(&self, other: &V5_AdiPortConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for V5_AdiPortConfiguration
impl Eq for V5_AdiPortConfiguration
impl StructuralPartialEq for V5_AdiPortConfiguration
Auto Trait Implementations§
impl Freeze for V5_AdiPortConfiguration
impl RefUnwindSafe for V5_AdiPortConfiguration
impl Send for V5_AdiPortConfiguration
impl Sync for V5_AdiPortConfiguration
impl Unpin for V5_AdiPortConfiguration
impl UnwindSafe for V5_AdiPortConfiguration
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