Files
cheesy-arena-lite/plc/register_string.go
2019-07-20 22:41:35 -07:00

30 lines
851 B
Go

// Code generated by "stringer -type=register"; DO NOT EDIT.
package plc
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[red1Bandwidth-0]
_ = x[red2Bandwidth-1]
_ = x[red3Bandwidth-2]
_ = x[blue1Bandwidth-3]
_ = x[blue2Bandwidth-4]
_ = x[blue3Bandwidth-5]
_ = x[registerCount-6]
}
const _register_name = "red1Bandwidthred2Bandwidthred3Bandwidthblue1Bandwidthblue2Bandwidthblue3BandwidthregisterCount"
var _register_index = [...]uint8{0, 13, 26, 39, 53, 67, 81, 94}
func (i register) String() string {
if i < 0 || i >= register(len(_register_index)-1) {
return "register(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _register_name[_register_index[i]:_register_index[i+1]]
}