xmodem

package
v0.0.0-...-46927c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ACK byte = 0x06
View Source
const EOT byte = 0x04
View Source
const LONG_PACKET_PAYLOAD_LEN = 1024
View Source
const MAX_SEND_BLOCK_FAILURES = 10
View Source
const NAK byte = 0x15
View Source
const POLL byte = 0x43
View Source
const SHORT_PACKET_PAYLOAD_LEN = 128
View Source
const SOH byte = 0x01
View Source
const STX byte = 0x02

Variables

This section is empty.

Functions

func CRC16

func CRC16(data []byte) uint16

func CRC16Constant

func CRC16Constant(data []byte, length int) uint16

func ModemReceive

func ModemReceive(c io.ReadWriter) ([]byte, error)

func ModemSend

func ModemSend(c io.ReadWriter, data []byte, cb *func(currentBlock, totalBlock uint)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL