Wasatch.NET 2.4.14
.NET application driver for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
WasatchNET.OpcodeHelper Class Reference

Utility class for automating Opcode operations and processing. More...

Collaboration diagram for WasatchNET.OpcodeHelper:
[legend]

Public Member Functions

HashSet< OpcodesgetArmInvertedRetvals ()
 
Dictionary< Opcodes, byte > getDict ()
 

Static Public Member Functions

static OpcodeHelper getInstance ()
 

Private Member Functions

 OpcodeHelper ()
 

Private Attributes

HashSet< OpcodesarmInvertedRetvals = new HashSet<Opcodes>()
 
Dictionary< Opcodes, byte > cmd = new Dictionary<Opcodes, byte>()
 

Static Private Attributes

static readonly OpcodeHelper instance = new OpcodeHelper()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OpcodeHelper()

WasatchNET.OpcodeHelper.OpcodeHelper ( )
inlineprivate

Member Function Documentation

◆ getArmInvertedRetvals()

HashSet< Opcodes > WasatchNET.OpcodeHelper.getArmInvertedRetvals ( )
inline

◆ getDict()

Dictionary< Opcodes, byte > WasatchNET.OpcodeHelper.getDict ( )
inline

◆ getInstance()

static OpcodeHelper WasatchNET.OpcodeHelper.getInstance ( )
inlinestatic

Member Data Documentation

◆ armInvertedRetvals

HashSet<Opcodes> WasatchNET.OpcodeHelper.armInvertedRetvals = new HashSet<Opcodes>()
private

◆ cmd

Dictionary<Opcodes, byte> WasatchNET.OpcodeHelper.cmd = new Dictionary<Opcodes, byte>()
private

◆ instance

readonly OpcodeHelper WasatchNET.OpcodeHelper.instance = new OpcodeHelper()
staticprivate

The documentation for this class was generated from the following file: