LibPI

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistorianPoint

type HistorianPoint struct {
	PIId int32
}

type PITIMESTAMP

type PITIMESTAMP struct {
	Month  C.int32_t
	Year   C.int32_t
	Day    C.int32_t
	Hour   C.int32_t
	Minute C.int32_t
	Tzinfo C.int32_t
	Second C.double
}

func NewPITIMESTAMP

func NewPITIMESTAMP(dt time.Time) PITIMESTAMP

type PointCache

type PointCache struct {
	DatalogName string
	DataLogID   int
	DataLogType int
	Process     bool
	PIName      string
	PIId        *int32
}

func (*PointCache) Print

func (pc *PointCache) Print()

Add a method to print out the contents of the PointCache

type PointLookup

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

func NewPointLookup

func NewPointLookup() *PointLookup

func (*PointLookup) AddPoint

func (pl *PointLookup) AddPoint(point *PointCache)

AddPoint adds or updates a point in the lookup

func (*PointLookup) GetPointByDataLogID

func (pl *PointLookup) GetPointByDataLogID(dataLogID int) (*PointCache, bool)

GetPoint retrieves a point based on DataLogID

func (*PointLookup) GetPointByDataLogName

func (pl *PointLookup) GetPointByDataLogName(datalogName string) (*PointCache, bool)

GetPointByName retrieves a point based on DatalogName

func (*PointLookup) GetPointIDByDataLogID

func (pl *PointLookup) GetPointIDByDataLogID(dataLogID int) (*int32, bool)

GetPoint retrieves a point based on DataLogID

func (*PointLookup) PrintAll

func (pl *PointLookup) PrintAll()

PrintAll method to print all PointCache instances in the map

type PointType

type PointType int

PointType represents the different point types

const (
	PointTypeUnknown PointType = iota
	PointTypeReal
	PointTypeInteger
	PointTypeDigital
)

func (PointType) String

func (pt PointType) String() string

String provides a string representation of the PointType

Jump to

Keyboard shortcuts

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