CyberAtom Python Library

2.5.0

Public Member Functions | Public Attributes | List of all members
cyberatom.UsbConnection Class Reference

Provides connection to the device via computer's USB port. More...

Inheritance diagram for cyberatom.UsbConnection:

Public Member Functions

def __init__ (self)
 
def create_WithSerial (cls, serialNumber)
 Connects to USB device that has specific serial number. More...
 
def __del__ (self, release=cyberatom.IConnection_release)
 
def sendMessage (self, code, payload, len)
 
def checkForMessages (self, receiver)
 
def enumerateDevices (cls)
 

Public Attributes

 handle
 
 serialNumber
 

Detailed Description

Provides connection to the device via computer's USB port.

Construction of this class automatically opens connection to CyberAtom USB device. The connection is closed when the object is deleted (released).

Constructor & Destructor Documentation

def cyberatom.UsbConnection.__init__ (   self)
Note
This constructor creates connection to first CyberAtom device found on USB device list.

Member Function Documentation

def cyberatom.UsbConnection.checkForMessages (   self,
  receiver 
)
Parameters
receiver
def cyberatom.UsbConnection.create_WithSerial (   cls,
  serialNumber 
)

Connects to USB device that has specific serial number.

Parameters
serialNumberA serial number of the USB device to connect to.
Note
This constructor can be used more than one USB devices are in use at the same time.
def cyberatom.UsbConnection.sendMessage (   self,
  code,
  payload,
  len 
)
Parameters
code
payload
len

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