pub struct L1CurrentPayload<'a> {
pub frame_idx: u8,
pub freq_source: FrequencySource,
pub l1_current_data: &'a [u8],
}Expand description
L1-current payload (type 0x10) per ETSI TS 102 773 §5.2.4.
Layout:
- byte 0: frame_idx (8 bits) — T2 frame where L1 is carried
- byte 1
[7:6]: freq_source (2 bits) — Table 2 - byte 1
[5:0]: rfu (6 bits) — must be 0 - bytes 2..: l1_current_data (variable bytes)
Fields§
§frame_idx: u8FRAME_IDX of T2 frame where L1 is carried.
freq_source: FrequencySourceFrequency source per §5.2.4 Table 2.
l1_current_data: &'a [u8]L1-current data: L1PRE + L1CONF + L1DYN_CURR + L1EXT (all per EN 302 755).
Trait Implementations§
Source§impl<'a> Clone for L1CurrentPayload<'a>
impl<'a> Clone for L1CurrentPayload<'a>
Source§fn clone(&self) -> L1CurrentPayload<'a>
fn clone(&self) -> L1CurrentPayload<'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 L1CurrentPayload<'a>
impl<'a> Debug for L1CurrentPayload<'a>
impl<'a> Eq for L1CurrentPayload<'a>
Source§impl<'a> From<L1CurrentPayload<'a>> for AnyPayload<'a>
impl<'a> From<L1CurrentPayload<'a>> for AnyPayload<'a>
Source§fn from(p: L1CurrentPayload<'a>) -> Self
fn from(p: L1CurrentPayload<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for L1CurrentPayload<'a>
impl<'a> Parse<'a> for L1CurrentPayload<'a>
Source§impl<'a> PartialEq for L1CurrentPayload<'a>
impl<'a> PartialEq for L1CurrentPayload<'a>
Source§fn eq(&self, other: &L1CurrentPayload<'a>) -> bool
fn eq(&self, other: &L1CurrentPayload<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PayloadDef<'a> for L1CurrentPayload<'a>
impl<'a> PayloadDef<'a> for L1CurrentPayload<'a>
Source§impl Serialize for L1CurrentPayload<'_>
impl Serialize for L1CurrentPayload<'_>
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 L1CurrentPayload<'a>
impl<'a> Serialize for L1CurrentPayload<'a>
impl<'a> StructuralPartialEq for L1CurrentPayload<'a>
Source§impl<'a> Yokeable<'a> for L1CurrentPayload<'static>
impl<'a> Yokeable<'a> for L1CurrentPayload<'static>
Source§type Output = L1CurrentPayload<'a>
type Output = L1CurrentPayload<'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 L1CurrentPayload<'a>
impl<'a> RefUnwindSafe for L1CurrentPayload<'a>
impl<'a> Send for L1CurrentPayload<'a>
impl<'a> Sync for L1CurrentPayload<'a>
impl<'a> Unpin for L1CurrentPayload<'a>
impl<'a> UnsafeUnpin for L1CurrentPayload<'a>
impl<'a> UnwindSafe for L1CurrentPayload<'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