39 lines
555 B
Go
39 lines
555 B
Go
package thermocouple
|
|
|
|
import "errors"
|
|
|
|
type Type int
|
|
|
|
const (
|
|
None Type = iota
|
|
B
|
|
E
|
|
J
|
|
K
|
|
N
|
|
R
|
|
S
|
|
T
|
|
)
|
|
|
|
var (
|
|
ErrUnimplemented = errors.New("unimplemented thermocouple type")
|
|
ErrThermocoupleNone = errors.New("thermocouple of type None has no valid functions")
|
|
ErrUV = errors.New("uv value out of range")
|
|
ErrC = errors.New("c value out of range")
|
|
)
|
|
|
|
var (
|
|
ThermoStringLookup = map[Type]string{
|
|
B: "B",
|
|
E: "E",
|
|
J: "J",
|
|
K: "K",
|
|
N: "N",
|
|
R: "R",
|
|
S: "S",
|
|
T: "T",
|
|
None: "U",
|
|
}
|
|
)
|