CG

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Header blocks.Header
	Link   Link
	Data   Data
}

func New

func New(file *os.File, version uint16, startAdress int64) *Block

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

func (*Block) FirstChannel

func (b *Block) FirstChannel() int64

Pointer to first channel block (CNBLOCK)

func (*Block) GetDataBytes added in v0.0.2

func (b *Block) GetDataBytes() uint32

func (*Block) IsVLSD added in v0.0.2

func (b *Block) IsVLSD() bool

func (*Block) Next

func (b *Block) Next() int64

Pointer to next channel group block (CGBLOCK)

func (*Block) PathSeparator added in v0.0.2

func (b *Block) PathSeparator() string

func (*Block) RowSize added in v0.0.3

func (b *Block) RowSize() int64

func (*Block) Type added in v0.0.2

func (b *Block) Type(version uint16) []string

type Data

type Data struct {
	RecordId   uint64
	CycleCount uint64
	Flags      uint16
	// Version 4.1
	PathSeparator uint16
	Reserved      [4]byte
	DataBytes     uint32
	InvalBytes    uint32
}
type Link struct {
	//Pointer to next channel group block (CGBLOCK)
	Next int64

	//Pointer to first channel block (CNBLOCK)
	CnFirst int64

	//Pointer to acquisition name (TXBLOCK)
	TxAcqName int64

	//Pointer to acquisition source (SIBLOCK)
	SiAcqSource int64

	//Pointer to first sample reduction block (SRBLOCK)
	SrFirst int64

	//Pointer to comment and additional information (TXBLOCK or MDBLOCK)
	MdComment int64

	// Version 4.2
	CgMaster int64
}

Jump to

Keyboard shortcuts

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