Skip to main content

Crate dvb_t2mi

Crate dvb_t2mi 

Source
Expand description

ETSI TS 102 773 v1.4.1 DVB-T2 Modulator Interface (T2-MI) parser + builder.

Entry points:

  • Parse / Serialize — the two symmetric contracts every payload type implements.
  • packet — T2-MI packet header and type parsing.
  • payload — BBFrame, L1, FEF, timestamp, and addressing payload types.
  • crc — CRC-32 per Annex A.

§RFU policy

Payload parsers REJECT non-zero reserved (rfu) bits with ReservedBitsViolation and serialize them as 0 — with one deliberate exception: individual addressing (0x21) PRESERVES its leading rfu byte verbatim so gateway streams round-trip byte-exact (see payload::individual_addressing).

§Example

use dvb_t2mi::packet::Header;
use dvb_common::Parse;
let buf = [0x00u8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
let hdr = Header::parse(&buf[..]).unwrap();
assert_eq!(hdr.payload_len_bits, 0);

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

crc
T2-MI CRC helpers.
error
Error type returned by every parser in this crate.
packet
T2-MI packet header and type parsing.
payload
T2-MI payload types (§5.2.1 - §5.2.12).
ts
TS packet reassembly utilities.