pub struct ArbitraryCellsPayload<'a> {
pub frame_idx: u8,
pub tx_identifier: u16,
pub start_cell_address: u32,
pub arbitrary_cell_data: &'a [u8],
}Expand description
Arbitrary cell insertion payload (type 0x02) per ETSI TS 102 773 §5.2.3.
Layout (byte offsets relative to payload start):
- byte 0: frame_idx (8 bits)
- byte 1-2: tx_identifier (16 bits) — 0x0000 = broadcast
- byte 3-4: rfu (16 bits) — must be 0
- byte 5 [7:6]: rfu (2 bits) — must be 0
- byte 5 [5:0] + byte 6-7: start_cell_address (22 bits)
- bytes 8..: arbitrary_cell_data (variable I/Q pairs)
Fields§
§frame_idx: u8FRAME_IDX of T2 frame.
tx_identifier: u16Transmitter identifier (0x0000 = broadcast to all).
start_cell_address: u32Cell address per EN 302 755 §8.3.6.2 (22-bit field).
arbitrary_cell_data: &'a [u8]Raw I/Q sample data (12-bit two’s complement I + 12-bit Q pairs).
Trait Implementations§
Source§impl<'a> Clone for ArbitraryCellsPayload<'a>
impl<'a> Clone for ArbitraryCellsPayload<'a>
Source§fn clone(&self) -> ArbitraryCellsPayload<'a>
fn clone(&self) -> ArbitraryCellsPayload<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ArbitraryCellsPayload<'a>
impl<'a> Debug for ArbitraryCellsPayload<'a>
impl<'a> Eq for ArbitraryCellsPayload<'a>
Source§impl<'a> From<ArbitraryCellsPayload<'a>> for AnyPayload<'a>
impl<'a> From<ArbitraryCellsPayload<'a>> for AnyPayload<'a>
Source§fn from(p: ArbitraryCellsPayload<'a>) -> Self
fn from(p: ArbitraryCellsPayload<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ArbitraryCellsPayload<'a>
impl<'a> Parse<'a> for ArbitraryCellsPayload<'a>
Source§impl<'a> PartialEq for ArbitraryCellsPayload<'a>
impl<'a> PartialEq for ArbitraryCellsPayload<'a>
Source§fn eq(&self, other: &ArbitraryCellsPayload<'a>) -> bool
fn eq(&self, other: &ArbitraryCellsPayload<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PayloadDef<'a> for ArbitraryCellsPayload<'a>
impl<'a> PayloadDef<'a> for ArbitraryCellsPayload<'a>
Source§impl Serialize for ArbitraryCellsPayload<'_>
impl Serialize for ArbitraryCellsPayload<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§impl<'a> Serialize for ArbitraryCellsPayload<'a>
impl<'a> Serialize for ArbitraryCellsPayload<'a>
impl<'a> StructuralPartialEq for ArbitraryCellsPayload<'a>
Source§impl<'a> Yokeable<'a> for ArbitraryCellsPayload<'static>
impl<'a> Yokeable<'a> for ArbitraryCellsPayload<'static>
Source§type Output = ArbitraryCellsPayload<'a>
type Output = ArbitraryCellsPayload<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for ArbitraryCellsPayload<'a>
impl<'a> RefUnwindSafe for ArbitraryCellsPayload<'a>
impl<'a> Send for ArbitraryCellsPayload<'a>
impl<'a> Sync for ArbitraryCellsPayload<'a>
impl<'a> Unpin for ArbitraryCellsPayload<'a>
impl<'a> UnsafeUnpin for ArbitraryCellsPayload<'a>
impl<'a> UnwindSafe for ArbitraryCellsPayload<'a>
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