pub const netopt_t_NETOPT_PDU_SIZE: netopt_t = 18;
Expand description

@brief (uint16_t) protocol data unit size

When set, fixes the number of bytes to be received. This is required for MAC layers with implicit header mode (no packet length information in PDDU) and predictable packet length (e.g LoRaWAN beacons). The device driver implementation should attempt to read exactly the expected number of bytes (possibly filling it up with garbage data if the payload is smaller).

When get, returns the number of expected bytes for the next reception.

In some MAC layers it will only be effective if used in conjunction with @ref NETOPT_FIXED_HEADER