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 FromPrimitive for NUM
impl FromPrimitive for NUM
Source§fn from_i64(n: i64) -> Option<Self>
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>
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>
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>
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>
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>
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>
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>
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.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> 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