4.6. IPeripheralCommandParser
An interface to provide functions to generate commands for the peripheral control.
This interface is only for models which support the peripheral. For the supporting models, refer to Supported Peripherals .
Constant
Name
Contents
Parse result constants
Property
Name
Contents
Generates a command to receive the response from the peripheral.
Method
Name
Contents
Analyzes the response of the command (command generated with the SendCommands ) for the peripheral control.
4.6.1. ParseResult
Parse result constants
Declaration
public enum ParseResult { Invalid, Success, Failure }
Constants
Name
Contents
Invalid
Parse invalid
Success
Parse success
Failure
Parse failure
4.6.2. SendCommands
Generates a command to receive the response from the peripheral.
Declaration
byte[] SendCommands { get; }
Parameter
None
Return value
Contents
Type
Generated command.
byte[]
4.6.3. Parse
Analyzes the response of the command (command generated with the SendCommands ) for the peripheral control.
Declaration
ParseResult Parse(byte[] readData)
Parameter
Name
Contents
Type
response
Command response
byte[]
Return value
Contents
Type
Parse result