fifo

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fifo

type Fifo struct {
	// contains filtered or unexported fields
}

Circular Fifo object used in some modules like SDO client

func NewFifo

func NewFifo(size uint16) *Fifo

func (*Fifo) AltBegin

func (f *Fifo) AltBegin(offset int) int

Alternate begin

func (*Fifo) AltFinish

func (f *Fifo) AltFinish(crc *crc.CRC16)

func (*Fifo) AltGetOccupied

func (f *Fifo) AltGetOccupied() int

func (*Fifo) AltRead

func (f *Fifo) AltRead(buffer []byte) int

func (*Fifo) GetOccupied

func (f *Fifo) GetOccupied() int

func (*Fifo) GetSpace

func (f *Fifo) GetSpace() int

func (*Fifo) Read

func (f *Fifo) Read(buffer []byte, eof *bool) int

Read data from fifo and return number of bytes read

func (*Fifo) Reset

func (f *Fifo) Reset()

func (*Fifo) Write

func (f *Fifo) Write(buffer []byte, crc *crc.CRC16) int

Write data to fifo

Jump to

Keyboard shortcuts

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