improve backwards compatibility #163
@@ -242,6 +242,9 @@ impl From<u16> for PacketId {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(since = "0.16.0", note = "use PacketSequenceControl instead")]
|
||||||
|
pub type PacketSequenceCtrl = PacketSequenceControl;
|
||||||
|
|
||||||
/// Abstraction for the CCSDS Packet Sequence Control (PSC) field which is the
|
/// Abstraction for the CCSDS Packet Sequence Control (PSC) field which is the
|
||||||
/// third and the fourth byte in the CCSDS primary header.
|
/// third and the fourth byte in the CCSDS primary header.
|
||||||
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
|
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
|
||||||
@@ -309,6 +312,12 @@ pub trait CcsdsPacket {
|
|||||||
usize::from(self.data_len()) + CCSDS_HEADER_LEN + 1
|
usize::from(self.data_len()) + CCSDS_HEADER_LEN + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(since = "0.16.0", note = "use packet_len instead")]
|
||||||
|
#[inline]
|
||||||
|
fn total_len(&self) -> usize {
|
||||||
|
self.packet_len()
|
||||||
|
}
|
||||||
|
|
||||||
/// Retrieve 13 bit Packet Identification field. Can usually be retrieved with a bitwise AND
|
/// Retrieve 13 bit Packet Identification field. Can usually be retrieved with a bitwise AND
|
||||||
/// of the first 2 bytes with 0x1FFF.
|
/// of the first 2 bytes with 0x1FFF.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user