...
A state machine enables the user to specify a set of modes, that each can take different mode values. For examples example we could have a "day" mode that can take the values "weekday" and "weekend", and a "time" mode that could take the "daytime" and "nighttime" values.
...