Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
type Field struct {
DefNum string
Name string
CCName string
Array string
Scale string
Offset string
Units string
TypeName string
FType types.Fit
Length string
Components []Component
Subfields []*Field // Not set for subfields
RefFieldName []string // Only set for subfields
RefFieldValue []string // Only set for subfields
Comment string
Example string
// contains filtered or unexported fields
}
func (*Field) HasComment ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(sdkMajVer, sdkMinVer int, workbookData []byte, opts ...GeneratorOption) (*Generator, error)
func (*Generator) GenerateProfile ¶
type GeneratorOption ¶
type GeneratorOption func(*generatorOptions)
func WithDebugOutput ¶
func WithDebugOutput() GeneratorOption
func WithGenerationTimestamp ¶
func WithGenerationTimestamp(gt bool) GeneratorOption
func WithHandleHeartRateSourceTypeQuirk ¶
func WithHandleHeartRateSourceTypeQuirk() GeneratorOption
func WithLogger ¶
func WithLogger(logger *log.Logger) GeneratorOption
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewMsgParser ¶
func NewTypeParser ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewMsgScanner ¶
func NewTypeScanner ¶
type Type ¶
type Type struct {
Name string
OrigName string
BaseType types.Base
Values []ValueTriple
// contains filtered or unexported fields
}
type ValueTriple ¶
type ValueTriple struct {
Name, Value, Comment string
}
Click to show internal directories.
Click to hide internal directories.