Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HDLC ¶
type HDLC struct { TxCharsEscape [256]bool RxCharsIgnore [256]bool // contains filtered or unexported fields }
HDLC is a packet framer that implements the HDLC protocol
func NewHDLCFramer ¶
func NewHDLCFramer(port io.ReadWriter, options *framerinterface.FramerOptions) (*HDLC, error)
NewHDLCFramer is used to create a HDLC framer
func (*HDLC) GetStats ¶
func (s *HDLC) GetStats() framerinterface.BaseStats
GetStats returns a safely accessed snapshot of the statistics
func (*HDLC) Run ¶
func (s *HDLC) Run(receivedPacket framerinterface.FramerReceivedPacketHandler) error
Run should be called to start the receiver process. It will only return on read errors (eg, port closed)
func (*HDLC) SendPacket ¶
SendPacket is used to send a packet to the port using HDLC framing
Click to show internal directories.
Click to hide internal directories.