Struct hdlc::SpecialChars[][src]

pub struct SpecialChars {
    pub fend: u8,
    pub fesc: u8,
    pub tfend: u8,
    pub tfesc: u8,
}

Special Character structure for holding the encode and decode values

Default

FEND = 0x7E; FESC = 0x7D; TFEND = 0x5E; TFESC = 0x5D;

Fields

Frame END. Byte that marks the beginning and end of a packet

Frame ESCape. Byte that marks the start of a swap byte

Trade Frame END. Byte that is substituted for the FEND byte

Trade Frame ESCape. Byte that is substituted for the FESC byte

Methods

impl SpecialChars
[src]

Creates a new SpecialChars structure for encoding/decoding a packet

Trait Implementations

impl Debug for SpecialChars
[src]

Formats the value using the given formatter. Read more

impl Default for SpecialChars
[src]

Creates the default SpecialChars structure for encoding/decoding a packet

Auto Trait Implementations