xmodem

package
v0.0.0-...-e3e1421 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//XModem1KBlockSsize is the size of the block that must be provided
	XModem1KBlockSsize uint16 = 1024
)

Variables

This section is empty.

Functions

func CRC16

func CRC16(data []byte) uint16

CRC16 calculates CRC16 for data frame

func SendBlock1K

func SendBlock1K(p io.ReadWriter, block uint8, data []byte, size uint16) error

SendBlock1K is used to send 1K data block over XModem

func SendEOT

func SendEOT(p io.ReadWriter) error

SendEOT is used to finish the transmission of the data

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳