Click or drag to resize

ModuleAPI Class

ModuleAPI is responsible for performing module related operations like sending commands to modules and initializing modules.
Inheritance Hierarchy
SystemObject
  ErrorClass
    API
      Nexpaq.APIsProductAPI
        Nexpaq.APIsModuleAPI

Namespace:  Nexpaq.APIs
Assembly:  NexpaqCore (in NexpaqCore.dll) Version: 1.0.6767.24310
Syntax
C#
public class ModuleAPI : ProductAPI

The ModuleAPI type exposes the following members.

Constructors
  NameDescription
Public methodModuleAPI
Initializes a new instance of the ModuleAPI class.
Top
Methods
  NameDescription
Protected methodBSLInfoReceivedHandler
Handles when product BSL info received
(Inherited from ProductAPI.)
Public methodChangeMode
Changes the mode of product.
(Inherited from ProductAPI.)
Public methodEraseFirmware
Erases the firmware in specified product.
(Inherited from ProductAPI.)
Public methodGetByUUID
Gets the module by UUID.
Public methodGetProductByUUID
Gets the product by UUID.
(Overrides ProductAPIGetProductByUUID(UUID).)
Public methodGetTypeID
Gets the product type identifier from known products or cloud.
(Inherited from ProductAPI.)
Public methodGetUUIDBySlot
Gets the UUID of module by slot.
Public methodInitializeModule
Initializes the module and requests all it's data.
Public methodInstallFirmware
Installs the firmware by version.
(Inherited from ProductAPI.)
Public methodInstallLatestFirmware
Installs the latest firmware.
(Inherited from ProductAPI.)
Public methodInstallSpecificFirmware
Installs specific firmware to module, type must be compatible. It is impossible to install MAX firmware to MSP and vice versa.
(Inherited from ProductAPI.)
Public methodPairByName
Public methodRequestBasicData
Requests the basic data from product.
(Inherited from ProductAPI.)
Public methodRequestFirmwareVersion
Requests the firmware version of product.
(Inherited from ProductAPI.)
Public methodSendCommand
Sends the command to module, using module driver.
Public methodSendRawCommand
Sends the raw command to module.
Public methodSendRawHexCommand
Sends the raw command to module with data in hex.
Public methodSetManifest
Sets the manifest to product.
(Inherited from ProductAPI.)
Protected methodTriggerError (Inherited from ErrorClass.)
Top
Events
  NameDescription
Public eventAllInfoReceived
Occurs when all module information received
Public eventBasicInfoReceived
Occurs when basic data for the module received.
Public eventBatteryStateReceived
Occurs when battery state received for the module.
Public eventBSLInfoReceived
occurs when bsl information are received.
(Inherited from ProductAPI.)
Public eventDataReceived
Occurs when data received from module.
Public eventError (Inherited from ErrorClass.)
Public eventFirmwareFlashed
Occurs when firmware was flashed to product.
(Inherited from ProductAPI.)
Public eventFirmwareUpdateAvailable
Occurs when firmware update available.
Public eventInserted
Occurs when module inserted.
Public eventManifestSet
Occurs when manifest set.
Public eventPulled
Occurs when module pulled out.
Public eventRawDataReceived
Occurs when raw data from module received without being processed with module driver.
Public eventTypeRecognised
Occurs when module type recognised.
Public eventUUIDRecieved
Occurs when module UUID recieved.
Top
Fields
  NameDescription
Protected fieldAPI
Main Api.
(Inherited from ProductAPI.)
Protected fieldType
Product type.
(Inherited from ProductAPI.)
Top
See Also