Struct capsules::net::sixlowpan::TxState [] [src]

struct TxState {
    packet: TakeCell<'static, [u8]>,
    src_pan: Cell<PanID>,
    dst_pan: Cell<PanID>,
    src_mac_addr: Cell<MacAddress>,
    dst_mac_addr: Cell<MacAddress>,
    security: Cell<Option<(SecurityLevel, KeyId)>>,
    dgram_tag: Cell<u16>,
    dgram_size: Cell<u16>,
    dgram_offset: Cell<usize>,
    tx_dgram_tag: Cell<u16>,
    tx_busy: Cell<bool>,
    tx_buf: TakeCell<'static, [u8]>,
}

Tracks the global transmit state for a single IPv6 packet.

Since transmit is serialized, the Sixlowpan struct only contains a reference to a single TxState (that is, we can only have a single outstanding transmission at the same time).

This struct maintains a reference to the full IPv6 packet, the source/dest MAC addresses and PanIDs, security/compression/fragmentation options, per-fragmentation state, and some global state.

Fields

Methods

impl TxState
[src]

[src]

Creates a new TxState

Arguments

tx_buf - A buffer for storing fragments the size of a 802.15.4 frame. This buffer must be at least radio::MAX_FRAME_SIZE bytes long.

[src]

[src]

[src]

[src]

[src]

[src]