Python wrapper for the Erma GmbH SSI card SSI1417
This module is a python wrapper for the Erma GmbH SSI card SSI1417. All functions within this module return as first result an error code. The following error codes are defined:
SSI_ERR_OK
SSI_ERR_ALREADYOPEN
SSI_ERR_NOTOPEN
SSI_ERR_NOCARD
SSI_ERR_NOADDRESS
SSI_ERR_NOVALUE
SSI_ERR_WRONGMODE
SSI_ERR_DRIVERNOTFOUND
SSI_ERR_INTERNALERROR
SSI_ERR_FUNCDISABLED
SSI_ERR_WRONGVALUE
SSI_ERR_DEVICERUNNING
SSI_ERR_DEVICESTOPPED
SSI_ERR_NOTPRESENT
SSI_ERR_NOTSUPPORTED
SSI_ERR_NOENCODER
SSI_ERR_TOMANY
SSI_ERR_TIMEOUT
SSI_ERR_FUNCTIONFAIL
SSI_ERR_IMPOSSIBLE
SSI_ERR_NOTPOSSIBLE
As of version 1.0.0.8.post1 the pyermassi module can be configured to
raise exceptions instead of returning an error code. To use this feature
you have to set the variable RAISE_EXCEPTIONS to True. Example:
>>> import pyermassi as ssi
>>> ssi.RAISE_EXCEPTIONS = True
If a function requests an encoder number as parameter this can be one of
EncoderNr1
...
EncoderNr16
Encoder types can be either NO_ENCODER or GENERIC_SSI.
Clock values in SSIGetSSIClock and SSISetSSIClock can be one of
SSICLK050K // 50 kHz
SSICLK100K // 100 kHz
SSICLK200K // 200 kHz
SSICLK500K // 500 kHz
SSICLK1M // 1,0 MHz
SSICLK2M5 // 2,5 MHz
SSICLK5M // 5,0 MHz

