4.7. IPeripheralCommandParser

added in version 1.3.0

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

    ParseResult

    Parse result constants

  • Method

    Name

    Contents

    CreateSendCommands

    Generates a command to receive the response from the peripheral.

    Parse

    Analyzes the response of the command (command generated with the CreateSendCommands ) for the peripheral control.

4.7.1. ParseResult

added in version 1.3.0

Parse result constants

  • Declaration

    public enum ParseResult {
        Invalid,
        Success,
        Failure
    }
    
  • Constants

    Name

    Contents

    Invalid

    Parse invalid

    Success

    Parse success

    Failure

    Parse failure

4.7.2. CreateSendCommands

added in version 1.3.0

Generates a command to receive the response from the peripheral.

  • Declaration

    IBuffer CreateSendCommands ()
    
  • Parameter

    None

  • Return value

    Contents

    Type

    Generated command.

    IBuffer

4.7.3. Parse

added in version 1.3.0

Analyzes the response of the command (command generated with the CreateSendCommands ) for the peripheral control.

  • Declaration

    ParseResult Parse(IBuffer readData)
    
  • Parameter

    Name

    Contents

    Type

    response

    Command response

    IBuffer