#[repr(u8)]pub enum PacketType {
DcsShortPktWriteP0,
DcsShortPktWriteP1,
GenShortPktWriteP0,
GenShortPktWriteP1,
GenShortPktWriteP2,
DcsLongPktWrite,
GenLongPktWrite,
DcsShortPktRead(u8),
GenShortPktReadP0,
GenShortPktReadP1(u8),
GenShortPktReadP2(u8, u8),
MaxReturnPktSize,
}
Expand description
PacketTypes extracted from CubeMX
Variants§
DcsShortPktWriteP0
DCS short write, no parameters
DcsShortPktWriteP1
DCS short write, one parameter
GenShortPktWriteP0
Generic short write, no parameters
GenShortPktWriteP1
Generic short write, one parameter
GenShortPktWriteP2
Generic short write, two parameters
DcsLongPktWrite
DCS long write
GenLongPktWrite
Generic long write
DcsShortPktRead(u8)
DCS short read
GenShortPktReadP0
Generic short read, no parameters
GenShortPktReadP1(u8)
Generic short read, one parameter
GenShortPktReadP2(u8, u8)
Generic short read, two parameters
MaxReturnPktSize
Used to set the maximum return packet size for reading data
Trait Implementations§
source§impl From<PacketType> for u8
impl From<PacketType> for u8
source§fn from(packet_type: PacketType) -> u8
fn from(packet_type: PacketType) -> u8
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
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