Skip to main content

L1PostDynamic

Struct L1PostDynamic 

Source
#[non_exhaustive]
pub struct L1PostDynamic { pub frame_idx: u8, pub sub_slice_interval: u32, pub type_2_start: u32, pub l1_change_counter: u8, pub start_rf_idx: u8, pub reserved_1: u8, pub plps: Vec<PlpDynamic>, pub reserved_3: u8, pub aux: Vec<AuxDynamic>, }
Expand description

Dynamic L1-post signalling — EN 302 755 §7.2.3.2, Figure 28.

Parse with L1PostDynamic::parse(bytes, num_plp, num_aux). num_plp and num_aux come from the configurable block’s num_plp / num_aux fields.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§frame_idx: u8

FRAME_IDX (8 bits).

§sub_slice_interval: u32

SUB_SLICE_INTERVAL (22 bits; 0 if no type-2 PLPs).

§type_2_start: u32

TYPE_2_START (22 bits; 0 if no type-2 PLPs).

§l1_change_counter: u8

L1_CHANGE_COUNTER (8 bits; 0 = no scheduled change).

§start_rf_idx: u8

START_RF_IDX (3 bits; 0 if TFS not used).

§reserved_1: u8

RESERVED_1 (8 bits).

§plps: Vec<PlpDynamic>

PLP dynamic loop (length = num_plp).

§reserved_3: u8

RESERVED_3 (8 bits, post-PLP-loop).

§aux: Vec<AuxDynamic>

AUX dynamic loop (length = num_aux).

Implementations§

Source§

impl L1PostDynamic

Source

pub fn parse(bytes: &[u8], num_plp: u8, num_aux: u8) -> Result<Self>

Parse from bytes with num_plp and num_aux context from the configurable block.

§Errors

crate::Error::L1Bits on bit-stream overrun.

Source

pub fn len_bits(&self) -> usize

Compute total bit-length (without byte padding).

Source

pub fn serialize_bits(&self, w: &mut BitWriter<'_>) -> Result<()>

Serialise into a pre-allocated bit-writer.

§Errors

crate::Error::L1Bits if the writer’s buffer is too small.

Trait Implementations§

Source§

impl Clone for L1PostDynamic

Source§

fn clone(&self) -> L1PostDynamic

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for L1PostDynamic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for L1PostDynamic

Source§

impl PartialEq for L1PostDynamic

Source§

fn eq(&self, other: &L1PostDynamic) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for L1PostDynamic

Available on crate feature serde only.
Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for L1PostDynamic

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PayloadObject for T
where T: Debug + Any + Send + Sync + Serialize,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Available on crate feature serde only.
Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.