fbs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesCurrentType = map[CurrentType]string{
	CurrentTypeCYCLE: "CYCLE",
	CurrentTypeNONE:  "NONE",
}
View Source
var EnumNamesWatchdogVariant = map[WatchdogVariant]string{
	WatchdogVariantNONE:   "NONE",
	WatchdogVariantCyclic: "Cyclic",
}
View Source
var EnumValuesCurrentType = map[string]CurrentType{
	"CYCLE": CurrentTypeCYCLE,
	"NONE":  CurrentTypeNONE,
}
View Source
var EnumValuesWatchdogVariant = map[string]WatchdogVariant{
	"NONE":   WatchdogVariantNONE,
	"Cyclic": WatchdogVariantCyclic,
}

Functions

func CyclicAddErrorCount

func CyclicAddErrorCount(builder *flatbuffers.Builder, errorCount uint32)

func CyclicAddErrorReaction

func CyclicAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT)

func CyclicAddReset

func CyclicAddReset(builder *flatbuffers.Builder, reset bool)

func CyclicEnd

func CyclicEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func CyclicStart

func CyclicStart(builder *flatbuffers.Builder)

func DurationAddErrorCount

func DurationAddErrorCount(builder *flatbuffers.Builder, errorCount uint32)

func DurationAddErrorReaction

func DurationAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT)

func DurationAddReset

func DurationAddReset(builder *flatbuffers.Builder, reset bool)

func DurationAddTime

func DurationAddTime(builder *flatbuffers.Builder, time uint32)

func DurationEnd

func DurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func DurationStart

func DurationStart(builder *flatbuffers.Builder)

func ErrorReactionAddClass

func ErrorReactionAddClass(builder *flatbuffers.Builder, class flatbuffers.UOffsetT)

func ErrorReactionAddConfiguration

func ErrorReactionAddConfiguration(builder *flatbuffers.Builder, configuration flatbuffers.UOffsetT)

func ErrorReactionAddMaxConsecutiveErrors

func ErrorReactionAddMaxConsecutiveErrors(builder *flatbuffers.Builder, maxConsecutiveErrors uint32)

func ErrorReactionEnd

func ErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ErrorReactionStart

func ErrorReactionStart(builder *flatbuffers.Builder)

func TypeAddType

func TypeAddType(builder *flatbuffers.Builder, type_ CurrentType)

func TypeEnd

func TypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func TypeStart

func TypeStart(builder *flatbuffers.Builder)

func WatchdogAddName

func WatchdogAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func WatchdogAddType

func WatchdogAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT)

func WatchdogAddVariant

func WatchdogAddVariant(builder *flatbuffers.Builder, variant flatbuffers.UOffsetT)

func WatchdogAddVariantType

func WatchdogAddVariantType(builder *flatbuffers.Builder, variantType WatchdogVariant)

func WatchdogEnd

func WatchdogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func WatchdogStart

func WatchdogStart(builder *flatbuffers.Builder)

Types

type CurrentType

type CurrentType int8

/ Type of watchdog of the task

const (
	/// Task will be monitored regarding the consumed cycle time
	CurrentTypeCYCLE CurrentType = 0
	/// No watchdog used
	CurrentTypeNONE CurrentType = 1
)

func (CurrentType) String

func (v CurrentType) String() string

type Cyclic

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

func GetRootAsCyclic

func GetRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic

func GetSizePrefixedRootAsCyclic

func GetSizePrefixedRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic

func (*Cyclic) ErrorCount

func (rcv *Cyclic) ErrorCount() uint32

func (*Cyclic) ErrorReaction

func (rcv *Cyclic) ErrorReaction(obj *ErrorReaction) *ErrorReaction

func (*Cyclic) Init

func (rcv *Cyclic) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Cyclic) MutateErrorCount

func (rcv *Cyclic) MutateErrorCount(n uint32) bool

func (*Cyclic) MutateReset

func (rcv *Cyclic) MutateReset(n bool) bool

func (*Cyclic) Reset

func (rcv *Cyclic) Reset() bool

func (*Cyclic) Table

func (rcv *Cyclic) Table() flatbuffers.Table

func (*Cyclic) UnPack added in v1.1.0

func (rcv *Cyclic) UnPack() *CyclicT

func (*Cyclic) UnPackTo added in v1.1.0

func (rcv *Cyclic) UnPackTo(t *CyclicT)

type CyclicT added in v1.1.0

type CyclicT struct {
	ErrorCount    uint32
	Reset         bool
	ErrorReaction *ErrorReactionT
}

func (*CyclicT) Pack added in v1.1.0

func (t *CyclicT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type Duration

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

func GetRootAsDuration

func GetRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration

func GetSizePrefixedRootAsDuration

func GetSizePrefixedRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration

func (*Duration) ErrorCount

func (rcv *Duration) ErrorCount() uint32

func (*Duration) ErrorReaction

func (rcv *Duration) ErrorReaction(obj *ErrorReaction) *ErrorReaction

func (*Duration) Init

func (rcv *Duration) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Duration) MutateErrorCount

func (rcv *Duration) MutateErrorCount(n uint32) bool

func (*Duration) MutateReset

func (rcv *Duration) MutateReset(n bool) bool

func (*Duration) MutateTime

func (rcv *Duration) MutateTime(n uint32) bool

func (*Duration) Reset

func (rcv *Duration) Reset() bool

func (*Duration) Table

func (rcv *Duration) Table() flatbuffers.Table

func (*Duration) Time

func (rcv *Duration) Time() uint32

func (*Duration) UnPack added in v1.1.0

func (rcv *Duration) UnPack() *DurationT

func (*Duration) UnPackTo added in v1.1.0

func (rcv *Duration) UnPackTo(t *DurationT)

type DurationT added in v1.1.0

type DurationT struct {
	Time          uint32
	ErrorCount    uint32
	Reset         bool
	ErrorReaction *ErrorReactionT
}

func (*DurationT) Pack added in v1.1.0

func (t *DurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type ErrorReaction

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

func GetRootAsErrorReaction

func GetRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction

func GetSizePrefixedRootAsErrorReaction

func GetSizePrefixedRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction

func (*ErrorReaction) Init

func (rcv *ErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ErrorReaction) MaxConsecutiveErrors

func (rcv *ErrorReaction) MaxConsecutiveErrors() uint32

func (*ErrorReaction) MutateMaxConsecutiveErrors

func (rcv *ErrorReaction) MutateMaxConsecutiveErrors(n uint32) bool

func (*ErrorReaction) Table

func (rcv *ErrorReaction) Table() flatbuffers.Table

func (*ErrorReaction) UnPack added in v1.1.0

func (rcv *ErrorReaction) UnPack() *ErrorReactionT

func (*ErrorReaction) UnPackTo added in v1.1.0

func (rcv *ErrorReaction) UnPackTo(t *ErrorReactionT)

type ErrorReactionT added in v1.1.0

type ErrorReactionT struct {
	Class                *common__scheduler__watchdog__errorreaction__fbs.ClassT
	Configuration        *common__scheduler__watchdog__errorreaction__fbs.ConfigurationT
	MaxConsecutiveErrors uint32
}

func (*ErrorReactionT) Pack added in v1.1.0

type Type

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

func GetRootAsType

func GetRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type

func GetSizePrefixedRootAsType

func GetSizePrefixedRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type

func (*Type) Init

func (rcv *Type) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Type) MutateType

func (rcv *Type) MutateType(n CurrentType) bool

/ Type of watchdog of the task

func (*Type) Table

func (rcv *Type) Table() flatbuffers.Table

func (*Type) Type

func (rcv *Type) Type() CurrentType

/ Type of watchdog of the task

func (*Type) UnPack added in v1.1.0

func (rcv *Type) UnPack() *TypeT

func (*Type) UnPackTo added in v1.1.0

func (rcv *Type) UnPackTo(t *TypeT)

type TypeT added in v1.1.0

type TypeT struct {
	Type CurrentType
}

/ Type of watchdog of the task

func (*TypeT) Pack added in v1.1.0

func (t *TypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type Watchdog

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

func GetRootAsWatchdog

func GetRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog

func GetSizePrefixedRootAsWatchdog

func GetSizePrefixedRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog

func (*Watchdog) Init

func (rcv *Watchdog) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Watchdog) MutateVariantType

func (rcv *Watchdog) MutateVariantType(n WatchdogVariant) bool

func (*Watchdog) Name

func (rcv *Watchdog) Name() []byte

func (*Watchdog) Table

func (rcv *Watchdog) Table() flatbuffers.Table

func (*Watchdog) Type

func (rcv *Watchdog) Type(obj *Type) *Type

func (*Watchdog) UnPack added in v1.1.0

func (rcv *Watchdog) UnPack() *WatchdogT

func (*Watchdog) UnPackTo added in v1.1.0

func (rcv *Watchdog) UnPackTo(t *WatchdogT)

func (*Watchdog) Variant

func (rcv *Watchdog) Variant(obj *flatbuffers.Table) bool

func (*Watchdog) VariantType

func (rcv *Watchdog) VariantType() WatchdogVariant

type WatchdogT added in v1.1.0

type WatchdogT struct {
	Name    string
	Type    *TypeT
	Variant *WatchdogVariantT
}

func (*WatchdogT) Pack added in v1.1.0

func (t *WatchdogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type WatchdogVariant

type WatchdogVariant byte
const (
	WatchdogVariantNONE   WatchdogVariant = 0
	WatchdogVariantCyclic WatchdogVariant = 1
)

func (WatchdogVariant) String

func (v WatchdogVariant) String() string

func (WatchdogVariant) UnPack added in v1.1.0

type WatchdogVariantT added in v1.1.0

type WatchdogVariantT struct {
	Type  WatchdogVariant
	Value interface{}
}

func (*WatchdogVariantT) Pack added in v1.1.0

Jump to

Keyboard shortcuts

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