Enum stm32f407g_disc::hal::can::Id
source · pub enum Id {
Standard(StandardId),
Extended(ExtendedId),
}
Expand description
A CAN Identifier (standard or extended).
Variants§
Standard(StandardId)
Standard 11-bit Identifier (0..=0x7FF
).
Extended(ExtendedId)
Extended 29-bit Identifier (0..=0x1FFF_FFFF
).
Trait Implementations§
source§impl From<ExtendedId> for Id
impl From<ExtendedId> for Id
source§fn from(id: ExtendedId) -> Id
fn from(id: ExtendedId) -> Id
Converts to this type from the input type.
source§impl From<StandardId> for Id
impl From<StandardId> for Id
source§fn from(id: StandardId) -> Id
fn from(id: StandardId) -> Id
Converts to this type from the input type.