Documentation ¶
Index ¶
- func DatePack(Date *Date, verbose bool) int32
- func SPCPack(head *Header, sHead *SubHeader, lHead *LogHeader, data *Data, verbose bool) *bytes.Buffer
- func SaveCSV(SPC SPCfile, filename string)
- func SaveSPC(SPC SPCfile, filename string, verbose bool)
- type Data
- type Date
- type Flags
- type Header
- type LogHeader
- type SPCfile
- type SubFlags
- type SubHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Date ¶
type Date struct {
Year, Month, Day, Hour, Minute int32
}
Date is a more usable date format for SPC file
func DateUnpack ¶
DateUnpack Unpacks date from int32
type Flags ¶
type Flags struct {
Tsprec, Tcgram, Tmulti, Trandm, Tordrd, Talabs, Txyxys, Txvals bool
}
Flags store flags for SPC file
func FlagsUnpack ¶
FlagsUnpack unpacks flags from flag variable
type Header ¶
type Header struct {
Ftflg, Fversn, Fexper, Fexp uint8
Fnpts int32
Ffirst, Flast float64
Fnsub int32
Fxtype, Fytype, Fztype, Fpost uint8
Fdate int32
Fres, Fsource [9]byte
Fpeakpt int16
Fspare [32]uint8
Fcmnt [130]uint8
Fcatxt [30]uint8
Flogoff int32
Fmods int32
Fprocs, Flevel uint8
Fsampin int16
Ffactor float32
Fmethod [48]uint8
Fzinc float32
Fwplanes int32
Fwinc float32
Fwtype uint8
Freserv [187]uint8
}
Header stores header info for SPC file
func HeaderReader ¶
HeaderReader read header out of spc file
type LogHeader ¶
LogHeader stores the log header for SPC file
func LogHeaderReader ¶
LogHeaderReader reads the log header out of spc file
type SubFlags ¶
type SubFlags struct {
Tchng, Tdnupk, Tmodar bool
}
SubFlags stores sub flags for SPC file
func SubFlagsUnpack ¶
SubFlagsUnpack Unpacks sub flags from sub flag variable
Click to show internal directories.
Click to hide internal directories.