type Data struct {
XMLName xml.Name `xml:"data"`
Enum []Enum `xml:"enum,omitempty"`
Value []Value `xml:"value,omitempty"`
Status []Status `xml:"status,omitempty"`
Command int `xml:"command,omitempty"`
Bits int `xml:"bits,attr,omitempty"`
Direction string `xml:"direction,attr,omitempty"`
}
type RangeItem struct {
XMLName xml.Name `xml:"rangeitem"`
Description string `xml:"description,attr,omitempty"`
Start int `xml:"start,attr"`
End int `xml:"end,attr"`
}
type Status struct {
XMLName xml.Name `xml:"status"`
Description string `xml:"description,attr,omitempty"`
Shortcut string `xml:"shortcut,attr,omitempty"`
Offset int `xml:"offset,attr,omitempty"`
Size int `xml:"size,attr,omitempty"`
}
type Value struct {
XMLName xml.Name `xml:"value"`
Range Range `xml:"range,omitempty"`
Scale Scale `xml:"scale,omitempty"`
Description string `xml:"description,attr,omitempty"`
Shortcut string `xml:"shortcut,attr,omitempty"`
Offset int `xml:"offset,attr,omitempty"`
Size int `xml:"size,attr,omitempty"`
Unit string `xml:"unit,attr,omitempty"`
}