|
Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
|
Utility class for automating Opcode operations and processing. More...
Public Member Functions | |
| HashSet< Opcodes > | getArmInvertedRetvals () |
| Dictionary< Opcodes, byte > | getDict () |
Static Public Member Functions | |
| static OpcodeHelper | getInstance () |
Private Member Functions | |
| OpcodeHelper () | |
Private Attributes | |
| HashSet< Opcodes > | armInvertedRetvals = new HashSet<Opcodes>() |
| Dictionary< Opcodes, byte > | cmd = new Dictionary<Opcodes, byte>() |
Static Private Attributes | |
| static readonly OpcodeHelper | instance = new OpcodeHelper() |
Utility class for automating Opcode operations and processing.
It would be slightly more efficient if we made these constants, rather than Dictionary lookups. However, accessing them through an enum key provides significant advantages in troubleshooting and error reporting, as the enum can always be stringified. As this driver is oriented toward rapid-prototyping rather than maximum performance, I'm sticking with the map for now.
|
inlineprivate |
|
inline |
|
inline |
|
inlinestatic |
|
staticprivate |