2020-04-25 14:27:34 -07:00
|
|
|
// Code generated by "stringer -type=coil"; DO NOT EDIT.
|
2018-04-15 18:33:04 -07:00
|
|
|
|
2018-09-03 19:12:22 -07:00
|
|
|
package plc
|
2018-04-15 18:33:04 -07:00
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
|
2019-07-20 21:57:29 -07:00
|
|
|
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[heartbeat-0]
|
|
|
|
|
_ = x[matchReset-1]
|
|
|
|
|
_ = x[stackLightGreen-2]
|
|
|
|
|
_ = x[stackLightOrange-3]
|
|
|
|
|
_ = x[stackLightRed-4]
|
|
|
|
|
_ = x[stackLightBlue-5]
|
|
|
|
|
_ = x[stackLightBuzzer-6]
|
2019-08-04 14:04:46 -07:00
|
|
|
_ = x[fieldResetLight-7]
|
2020-04-14 19:38:14 -05:00
|
|
|
_ = x[coilCount-8]
|
2019-07-20 21:57:29 -07:00
|
|
|
}
|
|
|
|
|
|
2020-04-14 19:38:14 -05:00
|
|
|
const _coil_name = "heartbeatmatchResetstackLightGreenstackLightOrangestackLightRedstackLightBluestackLightBuzzerfieldResetLightcoilCount"
|
2018-04-15 18:33:04 -07:00
|
|
|
|
2020-04-25 14:27:34 -07:00
|
|
|
var _coil_index = [...]uint8{0, 9, 19, 34, 50, 63, 77, 93, 108, 117}
|
2018-04-15 18:33:04 -07:00
|
|
|
|
|
|
|
|
func (i coil) String() string {
|
|
|
|
|
if i < 0 || i >= coil(len(_coil_index)-1) {
|
|
|
|
|
return "coil(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
|
}
|
|
|
|
|
return _coil_name[_coil_index[i]:_coil_index[i+1]]
|
|
|
|
|
}
|