ecal

package
v0.0.0-...-155a76e Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// eCAL Components
	CNone       uint = 0x000
	CPublisher  uint = 0x001
	CSubscriber uint = 0x002
	CService    uint = 0x004
	CMonitoring uint = 0x008
	CLogging    uint = 0x010
	CTimeSync   uint = 0x020
	CDefault    uint = CPublisher | CSubscriber | CService | CLogging | CTimeSync
	CAll        uint = CPublisher | CSubscriber | CService | CMonitoring | CLogging | CTimeSync
)

Variables

This section is empty.

Functions

func Finalize

func Finalize() int

func GetConfig

func GetConfig() string

TODO: Reimplement with a proper config serialization as eCAL::DumpConfig() is planned to be removed!

func GetVersion

func GetVersion() C.struct_version

func GetVersionDateString

func GetVersionDateString() string

func GetVersionString

func GetVersionString() string

func Initialize

func Initialize(config Config, unitName string, components uint) int

func IsComponentInitialized

func IsComponentInitialized(component uint) bool

func IsInitialized

func IsInitialized() bool

func Ok

func Ok() bool

func SetUnitName

func SetUnitName(unitName string) bool

Types

type Config

type Config struct {
	Logging ConfigLogging
}

func NewConfig

func NewConfig(opts ...ConfigOption) Config

type ConfigLogging

type ConfigLogging struct {
	ReceiveEnabled bool
}

type ConfigOption

type ConfigOption func(*Config)

func WithLoggingReceive

func WithLoggingReceive(r bool) ConfigOption

Directories

Path Synopsis
protobuf
Implementation for cgo preamble functions
Implementation for cgo preamble functions
string
Implementation for cgo preamble functions
Implementation for cgo preamble functions

Jump to

Keyboard shortcuts

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