Documentation
¶
Index ¶
Constants ¶
View Source
const ( SOH byte = 0x01 STX byte = 0x02 EOT byte = 0x04 ACK byte = 0x06 NAK byte = 0x15 POLL byte = 0x43 ShortPacketPayloadLen = 128 )
ymodem constants
Variables ¶
View Source
var ( LongPacketPayloadLen = getLongPacketPayloadLen() // default errors ErrInvalidPacket = errors.New("invalid packet") ErrSendingEndBlock = errors.New("failed to send end block") )
Functions ¶
func CRC16Constant ¶
CRC16Constant calculate constant crc16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.