Phidgets.PhidgetException (version 2.1.9, May 17 2010)
index
 

Copyright 2010 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License. 
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/

 
Modules
       
Phidgets
sys
threading

 
Classes
       
PhidgetErrorCodes
exceptions.Exception(exceptions.BaseException)
PhidgetException

 
class PhidgetErrorCodes
     Data and other attributes defined here:
EPHIDGET_BADPASSWORD = 10
EPHIDGET_DUPLICATE = 12
EPHIDGET_EVENT = 15
EPHIDGET_INTERRUPTED = 6
EPHIDGET_INVALID = 7
EPHIDGET_INVALIDARG = 4
EPHIDGET_NETWORK = 8
EPHIDGET_NETWORK_NOTCONNECTED = 16
EPHIDGET_NOMEMORY = 2
EPHIDGET_NOTATTACHED = 5
EPHIDGET_NOTFOUND = 1
EPHIDGET_OK = 0
EPHIDGET_OUTOFBOUNDS = 14
EPHIDGET_TIMEOUT = 13
EPHIDGET_UNEXPECTED = 3
EPHIDGET_UNKNOWNVAL = 9
EPHIDGET_UNSUPPORTED = 11
EPHIDGET_WRONGDEVICE = 17
PHIDGET_ERREVENT_BADPASSWORD = 32770
PHIDGET_ERREVENT_BADPOWER = 36872
PHIDGET_ERREVENT_BADVERSION = 32771
PHIDGET_ERREVENT_CODE_COUNT = 10
PHIDGET_ERREVENT_NETWORK = 32769
PHIDGET_ERREVENT_OUTOFRANGE = 36871
PHIDGET_ERREVENT_OVERCURRENT = 36870
PHIDGET_ERREVENT_OVERRUN = 36866
PHIDGET_ERREVENT_OVERTEMP = 36869
PHIDGET_ERREVENT_PACKETLOST = 36867
PHIDGET_ERREVENT_WRAP = 36868
PHIDGET_ERROR_CODE_COUNT = 20
PHIDGET_ERR_BADVERSION = 19
PHIDGET_ERR_CLOSED = 18

 
class PhidgetException(exceptions.Exception)
    This class represents Phidget related exceptions.
 
All Phidget exceptions originate in the phidget21 C library.
These exceptions can be thrown by most function in the library and cover such things as trying to access a Phidget before opening it,
or before it is attached and ready to use, out of bounds Index and data values,
trying to read data that isn't available, and other less common problems.
 
Extends:
    Exception
 
 
Method resolution order:
PhidgetException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, code)

Static methods defined here:
getErrorDescription(self, code)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x1E1D58E8>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
FormatError(...)
FormatError([integer]) -> string
 
Convert a win32 error code into a string. If the error code is not
given, the return value of a call to GetLastError() is used.
POINTER(...)
addressof(...)
addressof(C instance) -> integer
Return the address of the C instance internal buffer
alignment(...)
alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
byref(...)
byref(C instance[, offset=0]) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
get_errno(...)
get_last_error(...)
pointer(...)
resize(...)
Resize the memory buffer of a ctypes instance
set_conversion_mode(...)
set_conversion_mode(encoding, errors) -> (previous-encoding, previous-errors)
 
Set the encoding and error handling ctypes uses when converting
between unicode and strings.  Returns the previous values.
set_errno(...)
set_last_error(...)
sizeof(...)
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance

 
Data
        DEFAULT_MODE = 0
GetLastError = <_FuncPtr object at 0x009C4990>
RTLD_GLOBAL = 0
RTLD_LOCAL = 0
__author__ = 'Adam Stelmack'
__date__ = 'May 17 2010'
__package__ = 'Phidgets'
__version__ = '2.1.9'
cdll = <ctypes.LibraryLoader object at 0x00AF68B0>
memmove = <CFunctionType object at 0x009C4A08>
memset = <CFunctionType object at 0x009C4BE8>
oledll = <ctypes.LibraryLoader object at 0x00AF6950>
pydll = <ctypes.LibraryLoader object at 0x00AF68D0>
pythonapi = <PyDLL 'python dll', handle 1e000000 at af68f0>
windll = <ctypes.LibraryLoader object at 0x00AF6910>

 
Author
        Adam Stelmack