optoKummenberg

Loading...
Searching...
No Matches
Classes | Variables
optoKummenberg.tools.definitions Namespace Reference

## Classes
class | CommandID
class | EnChannel
class | EnSignalFlowPath
class | EnStage
class | GenericFilterFlag
class | Units
class | UnitType
class | Waveforms
class | WaveformShape

## Variables
int | MAX_PAYLOAD_SIZE = 50
int | SAMPLING_FREQ = 10000
str | ENDIAN = ">"
int | CHANNEL_CNT = 4
int | MAX_CHANNEL_CNT = 8
int | SIGNAL_FLOW_STAGE_CNT = 5
int | CMD_TIMEOUT = 1
int | CHUNK_SIZE = 8
int | ESCAPE_BYTE = 0x7D
int | FRAME_BOUNDARY = 0x7E
int | ESCAPE_MASK = 1 << 5
dict | SimpleResponses
dict | commandID
dict | commandName = dict((value, key) for key, value in commandID.items())

## Variable Documentation

## ◆ CHANNEL_CNT

int optoKummenberg.tools.definitions.CHANNEL_CNT = 4

## ◆ CHUNK_SIZE

int optoKummenberg.tools.definitions.CHUNK_SIZE = 8

## ◆ CMD_TIMEOUT

int optoKummenberg.tools.definitions.CMD_TIMEOUT = 1

## ◆ commandID

dict optoKummenberg.tools.definitions.commandID

Initial value:
1= {
2 'GENERIC_COMMAND' : 0X00,
3 'GET_FIRMWARE_ID' : 0X01,
4 'GET_STATUS' : 0X02,
5 'START_SELF_TEST' : 0X03,
6 'LOAD_CONFIG' : 0X04,
7 'STORE_CONFIG' : 0X05,
8 'SET_COMM_MODE' : 0X06,
9 'SET_VALUE' : 0X10,
10 'GET_VALUE' : 0X11,
11 'SET_MULTIPLE' : 0X12,
12 'GET_MULTIPLE' : 0X13,
13 'SET_VECTOR' : 0X14,
14 'GET_VECTOR' : 0X15
15 }

## ◆ commandName

dict optoKummenberg.tools.definitions.commandName = dict((value, key) for key, value in commandID.items())

## ◆ ENDIAN

str optoKummenberg.tools.definitions.ENDIAN = ">"

## ◆ ESCAPE_BYTE

int optoKummenberg.tools.definitions.ESCAPE_BYTE = 0x7D

## ◆ ESCAPE_MASK

int optoKummenberg.tools.definitions.ESCAPE_MASK = 1 << 5

## ◆ FRAME_BOUNDARY

int optoKummenberg.tools.definitions.FRAME_BOUNDARY = 0x7E

## ◆ MAX_CHANNEL_CNT

int optoKummenberg.tools.definitions.MAX_CHANNEL_CNT = 8

## ◆ MAX_PAYLOAD_SIZE

int optoKummenberg.tools.definitions.MAX_PAYLOAD_SIZE = 50

## ◆ SAMPLING_FREQ

int optoKummenberg.tools.definitions.SAMPLING_FREQ = 10000

## ◆ SIGNAL_FLOW_STAGE_CNT

int optoKummenberg.tools.definitions.SIGNAL_FLOW_STAGE_CNT = 5

## ◆ SimpleResponses

dict optoKummenberg.tools.definitions.SimpleResponses

Initial value:
1= {
2 'PROCESSED_WITHOUT_ERROR' : b'OK\r\n',
3 'OUT_OF_RANGE_UPPER' : b'OU\r\n',
4 'OUT_OF_RANGE_LOWER' : b'OL\r\n',
5 'UNRECOGNIZED_MESSAGE' : b'NO\r\n',
6 'ERROR' : b'ERROR\r\n'
7}