Documentation ¶
Index ¶
- Constants
- func LittleEndianArray() []int
- type Block
- func (b *Block) BlankBlock() *Block
- func (b *Block) ByteOrder() binary.ByteOrder
- func (b *Block) GetChannelName(f *os.File) string
- func (b *Block) GetCommentMd() int64
- func (b *Block) GetConversion(file *os.File, channelDataType uint8) CC.Conversion
- func (b *Block) GetDataType() uint8
- func (b *Block) GetSyncType() uint8
- func (b *Block) GetType() uint8
- func (b *Block) InvalBitPos() uint32
- func (b *Block) IsAllValuesInvalid() bool
- func (b *Block) IsAllValuesValid() bool
- func (b *Block) IsComposed() bool
- func (b *Block) LoadDataType(lenSize int) interface{}
- func (b *Block) NewConversion(file *os.File) *CC.Block
- func (b *Block) Next() int64
- func (b *Block) SignalBytesRange() uint32
- type Data
- type Link
Constants ¶
View Source
const ( UnsignedIntegerLE uint8 = iota // 0 UnsignedIntegerBE // 1 SignedIntegerLE // 2 SignedIntegerBE // 3 IEEE754FloatLE // 4 IEEE754FloatBE // 5 StringSBC // 6 StringUTF8 // 7 StringUTF16LE // 8 StringUTF16BE // 9 ByteArrayUnknown // 10 MIMESample // 11 MIMEStream // 12 CANopenDate // 13 CANopenTime // 14 // Version 4.2 ComplexNumberLE // 15 ComplexNumberBE // 16 )
Variables ¶
This section is empty.
Functions ¶
func LittleEndianArray ¶ added in v0.0.3
func LittleEndianArray() []int
Types ¶
type Block ¶
func (*Block) BlankBlock ¶
func (*Block) GetCommentMd ¶
func (*Block) GetConversion ¶ added in v0.0.2
GetConversion return Conversion structs that hold the formula to convert raw sample to desired value.
func (*Block) GetDataType ¶ added in v0.0.2
func (*Block) GetSyncType ¶ added in v0.0.2
func (*Block) InvalBitPos ¶ added in v0.0.2
func (*Block) IsAllValuesInvalid ¶ added in v0.0.2
func (*Block) IsAllValuesValid ¶ added in v0.0.2
func (*Block) IsComposed ¶ added in v0.0.2
func (*Block) LoadDataType ¶ added in v0.0.2
func (*Block) NewConversion ¶ added in v0.0.2
NewConversion create a new CCBlock according to the Link.CcConvertion field.
func (*Block) SignalBytesRange ¶ added in v0.0.3
LengthSignalInRow is number of Bytes required to store (cn_bit_count + cn_bit_offset) bits
type Data ¶
type Data struct { Type uint8 SyncType uint8 DataType uint8 BitOffset uint8 ByteOffset uint32 BitCount uint32 Flags uint32 InvalBitPos uint32 Precision uint8 // Use [1]byte for versions >= 4.1 Reserved uint8 //Version 4.1 AttachmentCount uint16 ValRangeMin float64 ValRangeMax float64 LimitMin float64 LimitMax float64 LimitExtMin float64 LimitExtMax float64 }
Click to show internal directories.
Click to hide internal directories.