fbtypes

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesCategoryOfProfile = map[CategoryOfProfile]string{
	CategoryOfProfileCATEGORY_DRIVE:   "CATEGORY_DRIVE",
	CategoryOfProfileCATEGORY_ENCODER: "CATEGORY_ENCODER",
}
View Source
var EnumNamesProfileType = map[ProfileType]string{
	ProfileTypeUnknown:                  "Unknown",
	ProfileTypeServodrive_over_Ethercat: "Servodrive_over_Ethercat",
	ProfileTypeCANopen_over_Ethercat:    "CANopen_over_Ethercat",
}
View Source
var EnumNamesScalingStrategy = map[ScalingStrategy]string{
	ScalingStrategyUNKNOWN:          "UNKNOWN",
	ScalingStrategySOE_STANDARD:     "SOE_STANDARD",
	ScalingStrategyCOE_CALC_DRIVE:   "COE_CALC_DRIVE",
	ScalingStrategyCOE_CALC_CONTROL: "COE_CALC_CONTROL",
}
View Source
var EnumNamesdeviceScalingType = map[deviceScalingType]string{
	// contains filtered or unexported fields
}
View Source
var EnumNamesvariableType = map[variableType]string{
	// contains filtered or unexported fields
}
View Source
var EnumValuesCategoryOfProfile = map[string]CategoryOfProfile{
	"CATEGORY_DRIVE":   CategoryOfProfileCATEGORY_DRIVE,
	"CATEGORY_ENCODER": CategoryOfProfileCATEGORY_ENCODER,
}
View Source
var EnumValuesProfileType = map[string]ProfileType{
	"Unknown":                  ProfileTypeUnknown,
	"Servodrive_over_Ethercat": ProfileTypeServodrive_over_Ethercat,
	"CANopen_over_Ethercat":    ProfileTypeCANopen_over_Ethercat,
}
View Source
var EnumValuesScalingStrategy = map[string]ScalingStrategy{
	"UNKNOWN":          ScalingStrategyUNKNOWN,
	"SOE_STANDARD":     ScalingStrategySOE_STANDARD,
	"COE_CALC_DRIVE":   ScalingStrategyCOE_CALC_DRIVE,
	"COE_CALC_CONTROL": ScalingStrategyCOE_CALC_CONTROL,
}
View Source
var EnumValuesdeviceScalingType = map[string]deviceScalingType{
	"UNDEFINED":  deviceScalingTypeUNDEFINED,
	"ROTARY":     deviceScalingTypeROTARY,
	"PERCENTAGE": deviceScalingTypePERCENTAGE,
	"LINEAR":     deviceScalingTypeLINEAR,
}
View Source
var EnumValuesvariableType = map[string]variableType{
	"UNKNOWN":      variableTypeUNKNOWN,
	"BASE":         variableTypeBASE,
	"VELOCITY":     variableTypeVELOCITY,
	"HOMING":       variableTypeHOMING,
	"PROBE":        variableTypePROBE,
	"TORQUE_FORCE": variableTypeTORQUE_FORCE,
}

Functions

func APRBootStateAddActStep

func APRBootStateAddActStep(builder *flatbuffers.Builder, actStep uint32)

func APRBootStateAddMaxSteps

func APRBootStateAddMaxSteps(builder *flatbuffers.Builder, maxSteps uint32)

func APRBootStateAddText

func APRBootStateAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT)

func APRBootStateEnd

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

func APRBootStateStart

func APRBootStateStart(builder *flatbuffers.Builder)

func GetRootAsdummyFbs

func GetRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs

func GetRootAsmappingEntry

func GetRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry

func GetRootAsprofile

func GetRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile

func GetRootAsprofileConfig

func GetRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig

func GetRootAsprofileDeviceScalingType

func GetRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType

func GetRootAsprofileScalingCfg

func GetRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg

func GetRootAsprofileScalingStrategy

func GetRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy

func GetRootAsprofileTypeData

func GetRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData

func GetRootAsvalueMapping

func GetRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping

func GetSizePrefixedRootAsdummyFbs

func GetSizePrefixedRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs

func GetSizePrefixedRootAsmappingEntry

func GetSizePrefixedRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry

func GetSizePrefixedRootAsprofile

func GetSizePrefixedRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile

func GetSizePrefixedRootAsprofileConfig

func GetSizePrefixedRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig

func GetSizePrefixedRootAsprofileDeviceScalingType

func GetSizePrefixedRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType

func GetSizePrefixedRootAsprofileScalingCfg

func GetSizePrefixedRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg

func GetSizePrefixedRootAsprofileScalingStrategy

func GetSizePrefixedRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy

func GetSizePrefixedRootAsprofileTypeData

func GetSizePrefixedRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData

func GetSizePrefixedRootAsvalueMapping

func GetSizePrefixedRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping

func ProfileCategoryAddCategory

func ProfileCategoryAddCategory(builder *flatbuffers.Builder, category CategoryOfProfile)

func ProfileCategoryEnd

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

func ProfileCategoryStart

func ProfileCategoryStart(builder *flatbuffers.Builder)

Types

type APRBootState

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

func GetRootAsAPRBootState

func GetRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState

func GetSizePrefixedRootAsAPRBootState

func GetSizePrefixedRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState

func (*APRBootState) ActStep

func (rcv *APRBootState) ActStep() uint32

/ text of the boot step (can be shown in an HMI) / current boot step (starts with 0, ends with maxSteps)

func (*APRBootState) Init

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

func (*APRBootState) MaxSteps

func (rcv *APRBootState) MaxSteps() uint32

/ number of boot steps (when actStep == maxSteps then the booting is finished)

func (*APRBootState) MutateActStep

func (rcv *APRBootState) MutateActStep(n uint32) bool

/ current boot step (starts with 0, ends with maxSteps)

func (*APRBootState) MutateMaxSteps

func (rcv *APRBootState) MutateMaxSteps(n uint32) bool

/ number of boot steps (when actStep == maxSteps then the booting is finished)

func (*APRBootState) Table

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

func (*APRBootState) Text

func (rcv *APRBootState) Text() []byte

/ text of the boot step (can be shown in an HMI)

func (*APRBootState) UnPack

func (rcv *APRBootState) UnPack() *APRBootStateT

func (*APRBootState) UnPackTo

func (rcv *APRBootState) UnPackTo(t *APRBootStateT)

type APRBootStateT

type APRBootStateT struct {
	Text     string `json:"text"`
	ActStep  uint32 `json:"actStep"`
	MaxSteps uint32 `json:"maxSteps"`
}

/ return type of requests of the current boot state

func (*APRBootStateT) Pack

type CategoryOfProfile

type CategoryOfProfile uint32

/ This enum must have the same structure as the internal enum 'AxisProfileCategory'

const (
	/// drive category
	CategoryOfProfileCATEGORY_DRIVE CategoryOfProfile = 1
	/// encoder category
	CategoryOfProfileCATEGORY_ENCODER CategoryOfProfile = 2
)

func (CategoryOfProfile) String

func (v CategoryOfProfile) String() string

type ProfileCategory

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

func GetRootAsProfileCategory

func GetRootAsProfileCategory(buf []byte, offset flatbuffers.UOffsetT) *ProfileCategory

func GetSizePrefixedRootAsProfileCategory

func GetSizePrefixedRootAsProfileCategory(buf []byte, offset flatbuffers.UOffsetT) *ProfileCategory

func (*ProfileCategory) Category

func (rcv *ProfileCategory) Category() CategoryOfProfile

func (*ProfileCategory) Init

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

func (*ProfileCategory) MutateCategory

func (rcv *ProfileCategory) MutateCategory(n CategoryOfProfile) bool

func (*ProfileCategory) Table

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

func (*ProfileCategory) UnPack

func (rcv *ProfileCategory) UnPack() *ProfileCategoryT

func (*ProfileCategory) UnPackTo

func (rcv *ProfileCategory) UnPackTo(t *ProfileCategoryT)

type ProfileCategoryT

type ProfileCategoryT struct {
	Category CategoryOfProfile `json:"category"`
}

func (*ProfileCategoryT) Pack

type ProfileType

type ProfileType uint32
const (
	ProfileTypeUnknown                  ProfileType = 0
	ProfileTypeServodrive_over_Ethercat ProfileType = 1
	ProfileTypeCANopen_over_Ethercat    ProfileType = 2
)

func (ProfileType) String

func (v ProfileType) String() string

type ScalingStrategy

type ScalingStrategy uint32
const (
	ScalingStrategyUNKNOWN          ScalingStrategy = 0
	ScalingStrategySOE_STANDARD     ScalingStrategy = 1
	ScalingStrategyCOE_CALC_DRIVE   ScalingStrategy = 2
	ScalingStrategyCOE_CALC_CONTROL ScalingStrategy = 3
)

func (ScalingStrategy) String

func (v ScalingStrategy) String() string

Jump to

Keyboard shortcuts

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