capsules_core::driver

Enum NUM

Source
pub enum NUM {
Show 66 variants Alarm = 0, Console = 1, Led = 2, Button = 3, Gpio = 4, Adc = 5, Dac = 6, AnalogComparator = 7, LowLevelDebug = 8, ReadOnlyState = 9, Pwm = 16, Ipc = 65_536, Spi = 131_073, SpiPeripheral = 131_074, I2cMaster = 131_075, UsbUser = 131_077, I2cMasterSlave = 131_078, Can = 131_079, BleAdvertising = 196_608, Ieee802154 = 196_609, Udp = 196_610, LoRaPhySPI = 196_611, LoRaPhyGPIO = 196_612, Thread = 196_613, Eui64 = 196_614, Rng = 262_145, Crc = 262_146, Hmac = 262_147, CtapHid = 262_148, Sha = 262_149, Aes = 262_150, AppFlash = 327_680, NvmStorage = 327_681, SdCard = 327_682, Kv = 327_683, Temperature = 393_216, Humidity = 393_217, AmbientLight = 393_218, NINEDOF = 393_220, Proximity = 393_221, SoundPressure = 393_222, AirQuality = 393_223, Pressure = 393_224, Distance = 393_225, Moisture = 393_226, Tsl2561 = 458_752, Tmp006 = 458_753, Lps25hb = 458_756, L3gd20 = 458_757, Lsm303dlch = 458_758, Mlx90614 = 458_759, Lsm6dsoxtr = 458_760, Ltc294x = 524_288, Max17205 = 524_289, Pca9544a = 524_290, GpioAsync = 524_291, Nrf51822Serialization = 524_292, Buzzer = 589_824, Screen = 589_825, Touch = 589_826, TextScreen = 589_827, SevenSegment = 589_828, KeyboardHid = 589_829, DateTime = 589_831, CycleCount = 589_832, Servo = 589_833,
}

Variants§

§

Alarm = 0

§

Console = 1

§

Led = 2

§

Button = 3

§

Gpio = 4

§

Adc = 5

§

Dac = 6

§

AnalogComparator = 7

§

LowLevelDebug = 8

§

ReadOnlyState = 9

§

Pwm = 16

§

Ipc = 65_536

§

Spi = 131_073

§

SpiPeripheral = 131_074

§

I2cMaster = 131_075

§

UsbUser = 131_077

§

I2cMasterSlave = 131_078

§

Can = 131_079

§

BleAdvertising = 196_608

§

Ieee802154 = 196_609

§

Udp = 196_610

§

LoRaPhySPI = 196_611

§

LoRaPhyGPIO = 196_612

§

Thread = 196_613

§

Eui64 = 196_614

§

Rng = 262_145

§

Crc = 262_146

§

Hmac = 262_147

§

CtapHid = 262_148

§

Sha = 262_149

§

Aes = 262_150

§

AppFlash = 327_680

§

NvmStorage = 327_681

§

SdCard = 327_682

§

Kv = 327_683

§

Temperature = 393_216

§

Humidity = 393_217

§

AmbientLight = 393_218

§

NINEDOF = 393_220

§

Proximity = 393_221

§

SoundPressure = 393_222

§

AirQuality = 393_223

§

Pressure = 393_224

§

Distance = 393_225

§

Moisture = 393_226

§

Tsl2561 = 458_752

§

Tmp006 = 458_753

§

Lps25hb = 458_756

§

L3gd20 = 458_757

§

Lsm303dlch = 458_758

§

Mlx90614 = 458_759

§

Lsm6dsoxtr = 458_760

§

Ltc294x = 524_288

§

Max17205 = 524_289

§

Pca9544a = 524_290

§

GpioAsync = 524_291

§

Nrf51822Serialization = 524_292

§

Buzzer = 589_824

§

Screen = 589_825

§

Touch = 589_826

§

TextScreen = 589_827

§

SevenSegment = 589_828

§

KeyboardHid = 589_829

§

DateTime = 589_831

§

CycleCount = 589_832

§

Servo = 589_833

Trait Implementations§

Source§

impl Debug for NUM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromPrimitive for NUM

Source§

fn from_i64(n: i64) -> Option<Self>

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_usize(n: usize) -> Option<Self>

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
Source§

impl PartialEq for NUM

Source§

fn eq(&self, other: &NUM) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for NUM

Auto Trait Implementations§

§

impl Freeze for NUM

§

impl RefUnwindSafe for NUM

§

impl Send for NUM

§

impl Sync for NUM

§

impl Unpin for NUM

§

impl UnwindSafe for NUM

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.