pub struct Framing {
pub asm: Vec<u8>,
pub frame_length: i32,
pub pseudo_randomized: bool,
pub izone_length: i32,
pub trailer_length: i32,
pub rs: Option<RSConfig>,
}Expand description
Spacecraft framing configuration.
Fields§
§asm: Vec<u8>§frame_length: i32Length of the frame contained within a CADU, not including the ASM or any Reed-Solomon parity bytes.
This length, along with the Self::izone_length and Self::trailer_length will effectively define the length of an MPDU.
pseudo_randomized: bool§izone_length: i32§trailer_length: i32§rs: Option<RSConfig>Implementations§
source§impl Framing
impl Framing
sourcepub fn cadu_len(&self) -> i32
pub fn cadu_len(&self) -> i32
Returns the expected length of CADU which will include the ASM and the length of the Reed-Solomon code block.
So, for example, with standard RS(223/255) with an interleave of 4 this will return 1024, which is 4 bytes for the ASM, 128 bits for the Reed-Solomon code block and the frame bytes.
sourcepub fn mpdu_len(&self) -> i32
pub fn mpdu_len(&self) -> i32
Return the length of a MPDU. This will be the Self::frame_length minus any bytes for the insert zone or trailer.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Framing
impl<'de> Deserialize<'de> for Framing
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Framing
impl PartialEq for Framing
impl StructuralPartialEq for Framing
Auto Trait Implementations§
impl RefUnwindSafe for Framing
impl Send for Framing
impl Sync for Framing
impl Unpin for Framing
impl UnwindSafe for Framing
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