Module atlas_scientific_constants

Source
Expand description

numeric values used in communication with Atlas Scientific sensor units

Constantsยง

ASCII_VAL_NINE
ASCII value for representation of figure nine
ASCII_VAL_ZERO
ASCII value for representation of figure zero
COMMAND_READ
command sent to sensor unit for initiating response
DECIMAL_POINT
decimal point
INDEX_CONTENT_START
start of data inside the message from the sensor
INDEX_FIRST_CHARACTER
location of the first character to be checked inside the message from the sensor
INDEX_LAST_CHARACTER
location of the last character to be checked inside the message from the sensor
INDEX_PENULTIMATE_CHARACTER
finish of data inside the message from the sensor
MAX_MUTEX_ACCESS_DURATION_MILLIS
allow max. 10 milliseconds for mutex to be blocked by any other thread
MESSAGE_FINISH_MAGIC
magic number at finish position inside the message which identifies valid response from sensor unit
MESSAGE_SIZE
length of the message received from the sensor (number of bytes)
MESSAGE_START_MAGIC
magic number at front position inside the message which identifies valid response from sensor unit
NEGATIVE_SIGN
negative sign (note: positive sign does not occur in the message from the sensor)