A device reports status of its limit switches as a series of ones a zeros (meaning a string containing "010111110000"). Ideal representation of these switches would be a flags enum like this:
[Flags] public enum SwitchStatus { xMin, xMax, yMin, yMax, aMax, bMax, cMax, unknown4, unknown3, unknown2, unknown1, unknown0 } Is it possible to convert the string representation to the enum? If so, how?