Constants Reference

This page shows some of the useful constants which are defined in the pfxbrick.pfx module. This module is automatically generated from a C header file used globally by Fx Bricks for all PFx Brick related software components including the firmware and the desktop and mobile PFx apps. This header file contains most of the constants defined in the Interface Control Document (ICD) so that references to features, parameters, attributes, etc. can be made using a convenient literal rather a number. Since these definitions are shared across all software and documentation assets, any changes that are made will be consistent across the entire stack of software.

PFxAction

The PFxAction object contains 16 fields which represent the same data structures used internally within the PFx Brick. When assigning values to the fields in PFxAction, it is often more convenient to use named literal values, especially for parameter values.

This section lists constant literals grouped by field in the PFxAction class.

Command Byte

EVT_COMMAND_NONE = 0x00
EVT_COMMAND_ALL_OFF = 0x01
EVT_COMMAND_IR_LOCKOUT_ON = 0x02
EVT_COMMAND_IR_LOCKOUT_OFF = 0x03
EVT_COMMAND_IR_LOCK_TOGGLE = 0x04
EVT_COMMAND_ALL_MOTORS_OFF = 0x05
EVT_COMMAND_ALL_LIGHTS_OFF = 0x06
EVT_COMMAND_ALL_AUDIO_OFF = 0x07
EVT_COMMAND_RESTART = 0x08

Motor Action ID Byte

EVT_MOTOR_ACTION_ID_MASK = 0xF0
EVT_MOTOR_OUTPUT_MASK = 0x0F
EVT_MOTOR_ESTOP = 0x00
EVT_MOTOR_STOP = 0x10
EVT_MOTOR_INC_SPD = 0x20
EVT_MOTOR_DEC_SPD = 0x30
EVT_MOTOR_INC_SPD_BI = 0x40
EVT_MOTOR_DEC_SPD_BI = 0x50
EVT_MOTOR_CHANGE_DIR = 0x60
EVT_MOTOR_SET_SPD = 0x70
EVT_MOTOR_SET_SPD_TIMED = 0x80
EVT_MOTOR_OSCILLATE = 0x90
EVT_MOTOR_OSCILLATE_BIDIR = 0xA0
EVT_MOTOR_OSCILLATE_BIDIR_WAIT = 0xB0
EVT_MOTOR_WIPE = 0x90
EVT_MOTOR_WIPE_BIDIR = 0xA0
EVT_MOTOR_WIPE_BIDIR_WAIT = 0xB0
EVT_MOTOR_RANDOM = 0xC0
EVT_MOTOR_RANDOM_BIDIR = 0xD0
EVT_MOTOR_SOUND_MODULATED = 0xE0
EVT_MOTOR_OUTPUT_A = 0x01
EVT_MOTOR_OUTPUT_B = 0x02
EVT_MOTOR_OUTPUT_C = 0x04
EVT_MOTOR_OUTPUT_D = 0x08

Motor Param 1 and 2

MOTOR_STEP parameter values:

EVT_MOTOR_STEP_DEFAULT = 0x0
EVT_MOTOR_STEP_1PCT = 0x1
EVT_MOTOR_STEP_2PCT = 0x2
EVT_MOTOR_STEP_3PCT = 0x3
EVT_MOTOR_STEP_5PCT = 0x4
EVT_MOTOR_STEP_6PCT = 0x5
EVT_MOTOR_STEP_10PCT = 0x6
EVT_MOTOR_STEP_20PCT = 0x7
EVT_MOTOR_STEP_25PCT = 0x8
EVT_MOTOR_STEP_33PCT = 0x9
EVT_MOTOR_STEP_TLG7STEP = 0xA

MOTOR_SPEED paramter values:

EVT_MOTOR_SPEED_STOP = 0x0
EVT_MOTOR_SPEED_FWD_10 = 0x1
EVT_MOTOR_SPEED_FWD_25 = 0x2
EVT_MOTOR_SPEED_FWD_33 = 0x3
EVT_MOTOR_SPEED_FWD_50 = 0x4
EVT_MOTOR_SPEED_FWD_67 = 0x5
EVT_MOTOR_SPEED_FWD_75 = 0x6
EVT_MOTOR_SPEED_FWD_100 = 0x7
EVT_MOTOR_SPEED_REV_STOP = 0x8
EVT_MOTOR_SPEED_REV_10 = 0x9
EVT_MOTOR_SPEED_REV_25 = 0xA
EVT_MOTOR_SPEED_REV_33 = 0xB
EVT_MOTOR_SPEED_REV_50 = 0xC
EVT_MOTOR_SPEED_REV_67 = 0xD
EVT_MOTOR_SPEED_REV_75 = 0xE
EVT_MOTOR_SPEED_REV_100 = 0xF
EVT_MOTOR_SPEED_LO_MASK = 0xF
EVT_MOTOR_SPEED_HIRES_MASK = 0x3F
EVT_MOTOR_SPEED_HIRES = 0x80
EVT_MOTOR_SPEED_HIRES_REV = 0x40
EVT_MOTOR_SPEED_HIRES_FWD = 0x80

MOTOR_PERIOD parameter values:

EVT_MOTOR_PERIOD_250MS = 0x0
EVT_MOTOR_PERIOD_500MS = 0x1
EVT_MOTOR_PERIOD_750MS = 0x2
EVT_MOTOR_PERIOD_1S = 0x3
EVT_MOTOR_PERIOD_1_25S = 0x4
EVT_MOTOR_PERIOD_1_5S = 0x5
EVT_MOTOR_PERIOD_2S = 0x6
EVT_MOTOR_PERIOD_2_5S = 0x7
EVT_MOTOR_PERIOD_3S = 0x8
EVT_MOTOR_PERIOD_4S = 0x9
EVT_MOTOR_PERIOD_5S = 0xA
EVT_MOTOR_PERIOD_10S = 0xB
EVT_MOTOR_PERIOD_15S = 0xC
EVT_MOTOR_PERIOD_20S = 0xD
EVT_MOTOR_PERIOD_30S = 0xE
EVT_MOTOR_PERIOD_60S = 0xF
EVT_MOTOR_PERIOD_ON_MASK = 0x0F
EVT_MOTOR_PERIOD_OFF_MASK = 0xF0

Light Fx ID

Individual light Fx:

EVT_LIGHT_COMBO_MASK = 0x80
EVT_LIGHT_ID_MASK = 0x7F
EVT_LIGHTFX_NONE = 0x00
EVT_LIGHTFX_ON_OFF_TOGGLE = 0x01
EVT_LIGHTFX_INC_BRIGHT = 0x02
EVT_LIGHTFX_DEC_BRIGHT = 0x03
EVT_LIGHTFX_SET_BRIGHT = 0x04
EVT_LIGHTFX_FLASH50_P = 0x05
EVT_LIGHTFX_FLASH50_N = 0x06
EVT_LIGHTFX_STROBE_P = 0x07
EVT_LIGHTFX_STROBE_N = 0x08
EVT_LIGHTFX_GYRALITE_P = 0x09
EVT_LIGHTFX_GYRALITE_N = 0x0A
EVT_LIGHTFX_FLICKER = 0x0B
EVT_LIGHTFX_RAND_BLINK = 0x0C
EVT_LIGHTFX_PHOTON_TORP = 0x0D
EVT_LIGHTFX_LASER_PULSE = 0x0E
EVT_LIGHTFX_ENGINE_GLOW = 0x0F
EVT_LIGHTFX_LIGHTHOUSE = 0x10
EVT_LIGHTFX_BROKEN_LIGHT = 0x11
EVT_LIGHTFX_STATUS_IND = 0x12
EVT_LIGHTFX_SOUND_MOD = 0x13
EVT_LIGHTFX_MOTOR_MOD = 0x14

Combo light Fx:

EVT_COMBOFX_NONE = 0x00
EVT_COMBOFX_LIN_SWEEP = 0x01
EVT_COMBOFX_BARGRAPH = 0x02
EVT_COMBOFX_KNIGHTRIDER = 0x03
EVT_COMBOFX_EMCY_TWSONIC = 0x04
EVT_COMBOFX_EMCY_WHELEN = 0x05
EVT_COMBOFX_TIMES_SQ = 0x06
EVT_COMBOFX_NOISE = 0x07
EVT_COMBOFX_TWINKLE_STAR = 0x08
EVT_COMBOFX_TRAFFIC_SIG = 0x09
EVT_COMBOFX_SOUND_BAR = 0x0A
EVT_COMBOFX_ALT_FLASH = 0x0B
EVT_COMBOFX_LAVA_LAMP = 0x0C
EVT_COMBOFX_LASER_CANNON = 0x0D

Light Param 1-5

DIR_OPTION parameter:

EVT_DIR_OPTION_NONE = 0x00
EVT_DIR_OPTION_MOTORA_FWD = 0x01
EVT_DIR_OPTION_MOTORA_REV = 0x02
EVT_DIR_OPTION_MOTORB_FWD = 0x03
EVT_DIR_OPTION_MOTORB_REV = 0x04
EVT_DIR_OPTION_MOTORC_FWD = 0x05
EVT_DIR_OPTION_MOTORC_REV = 0x06
EVT_DIR_OPTION_MOTORD_FWD = 0x07
EVT_DIR_OPTION_MOTORD_REV = 0x08
EVT_DIR_OPTION_ODD_MOTORA_FWD = 0x09
EVT_DIR_OPTION_ODD_MOTORB_FWD = 0x0A
EVT_DIR_OPTION_ODD_MOTORC_FWD = 0x0B
EVT_DIR_OPTION_ODD_MOTORD_FWD = 0x0C
EVT_DIR_OPTION_ODD_MOTORA_REV = 0x0D
EVT_DIR_OPTION_ODD_MOTORB_REV = 0x0E
EVT_DIR_OPTION_ODD_MOTORC_REV = 0x0F
EVT_DIR_OPTION_ODD_MOTORD_REV = 0x10

FADE_TIME parameter:

EVT_FADE_TIME_NONE = 0x0
EVT_FADE_TIME_50MS = 0x1
EVT_FADE_TIME_100MS = 0x2
EVT_FADE_TIME_200MS = 0x3
EVT_FADE_TIME_400MS = 0x4
EVT_FADE_TIME_500MS = 0x5
EVT_FADE_TIME_600MS = 0x6
EVT_FADE_TIME_800MS = 0x7
EVT_FADE_TIME_1S = 0x8
EVT_FADE_TIME_1_5S = 0x9
EVT_FADE_TIME_2S = 0xA
EVT_FADE_TIME_2_5S = 0xB
EVT_FADE_TIME_3S = 0xC
EVT_FADE_TIME_4S = 0xD
EVT_FADE_TIME_5S = 0xE
EVT_FADE_TIME_10S = 0xF
EVT_FADE_TIME_MAX = 0x10
EVT_FADE_TIME_MIN = 0x1F

FADE_FACTOR parameter:

EVT_FADE_FACTOR_NONE = 0x0
EVT_FADE_FACTOR_1 = 0x1
EVT_FADE_FACTOR_5 = 0x2
EVT_FADE_FACTOR_10 = 0x3
EVT_FADE_FACTOR_15 = 0x4
EVT_FADE_FACTOR_20 = 0x5
EVT_FADE_FACTOR_25 = 0x6
EVT_FADE_FACTOR_30 = 0x7
EVT_FADE_FACTOR_40 = 0x8
EVT_FADE_FACTOR_50 = 0x9
EVT_FADE_FACTOR_75 = 0xA
EVT_FADE_FACTOR_90 = 0xB
EVT_FADE_FACTOR_100 = 0xC
EVT_FADE_FACTOR_150 = 0xD
EVT_FADE_FACTOR_200 = 0xE
EVT_FADE_FACTOR_400 = 0xF
EVT_FADE_FACTOR_MAX = 0x10
EVT_FADE_FACTOR_MIN = 0x1F

PERIOD parameter:

EVT_PERIOD_100MS = 0x0
EVT_PERIOD_250MS = 0x1
EVT_PERIOD_500MS = 0x2
EVT_PERIOD_750MS = 0x3
EVT_PERIOD_1S = 0x4
EVT_PERIOD_1_25S = 0x5
EVT_PERIOD_1_5S = 0x6
EVT_PERIOD_1_75S = 0x7
EVT_PERIOD_2S = 0x8
EVT_PERIOD_2_5S = 0x9
EVT_PERIOD_3S = 0xA
EVT_PERIOD_4S = 0xB
EVT_PERIOD_5S = 0xC
EVT_PERIOD_8S = 0xD
EVT_PERIOD_10S = 0xE
EVT_PERIOD_20S = 0xF
EVT_PERIOD_MAX = 0x10

PERIOD2 parameter:

EVT_PERIOD2_50MS = 0x0
EVT_PERIOD2_100MS = 0x1
EVT_PERIOD2_200MS = 0x2
EVT_PERIOD2_300MS = 0x3
EVT_PERIOD2_400MS = 0x4
EVT_PERIOD2_500MS = 0x5
EVT_PERIOD2_600MS = 0x6
EVT_PERIOD2_700MS = 0x7
EVT_PERIOD2_800MS = 0x8
EVT_PERIOD2_900MS = 0x9
EVT_PERIOD2_1S = 0xA
EVT_PERIOD2_1_25S = 0xB
EVT_PERIOD2_1_5S = 0xC
EVT_PERIOD2_1_75S = 0xD
EVT_PERIOD2_2S = 0xE
EVT_PERIOD2_3S = 0xF
EVT_PERIOD2_MAX = 0x10
PFX_PERIOD_COUNT_MAX = EVT_PERIOD_MAX + EVT_PERIOD2_MAX

DUTY_CYCLE parameter:

EVT_DUTYCY_1 = 0x0
EVT_DUTYCY_2 = 0x1
EVT_DUTYCY_5 = 0x2
EVT_DUTYCY_10 = 0x3
EVT_DUTYCY_15 = 0x4
EVT_DUTYCY_20 = 0x5
EVT_DUTYCY_25 = 0x6
EVT_DUTYCY_30 = 0x7
EVT_DUTYCY_40 = 0x8
EVT_DUTYCY_50 = 0x9
EVT_DUTYCY_60 = 0xA
EVT_DUTYCY_70 = 0xB
EVT_DUTYCY_75 = 0xC
EVT_DUTYCY_80 = 0xD
EVT_DUTYCY_85 = 0xE
EVT_DUTYCY_90 = 0xF
EVT_DUTYCY_95 = 0x10
EVT_DUTYCY_98 = 0x11
EVT_DUTYCY_99 = 0x12
EVT_DUTYCY_MAX = 0x13

BURST_COUNT parameter:

EVT_BURST_COUNT_1 = 0x0
EVT_BURST_COUNT_2 = 0x1
EVT_BURST_COUNT_3 = 0x2
EVT_BURST_COUNT_4 = 0x3
EVT_BURST_COUNT_MAX = 0x4

SIZE parameter:

EVT_SIZE_8_LIGHTS = 0x0
EVT_SIZE_7_LIGHTS = 0x1
EVT_SIZE_6_LIGHTS = 0x2
EVT_SIZE_5_LIGHTS = 0x3
EVT_SIZE_4_LIGHTS = 0x4

BAR_STYLE parameter:

EVT_BAR_STYLE_NONE = 0x0
EVT_BAR_STYLE_LEFTRIGHT = 0x1
EVT_BAR_STYLE_RIGHTLEFT = 0x2
EVT_BAR_STYLE_INOUT = 0x3
EVT_BAR_STYLE_OUTIN = 0x4

SWEEP_STYLE parameter:

EVT_SWEEP_STYLE_LEFTRIGHT = 0x0
EVT_SWEEP_STYLE_RIGHTLEFT = 0x1

TWINSONIC_STYLE parameter:

EVT_TWINSONIC_SINGLE = 0x0
EVT_TWINSONIC_DUAL = 0x1
EVT_TWINSONIC_AERO = 0x2
EVT_TWINSONIC_COMBO = 0x3

WHELEN_STYLE parameter:

EVT_WHELEN_SIGALERT = 0x0
EVT_WHELEN_SIGALERT_STDY = 0x1
EVT_WHELEN_COMET_FLASH = 0x2
EVT_WHELEN_ACT_FLASH50 = 0x3
EVT_WHELEN_ACT_FLASH150 = 0x4
EVT_WHELEN_MODU_FLASH = 0x5
EVT_WHELEN_SINGLE_FLASH = 0x6
EVT_WHELEN_DOUBLE_FLASH = 0x7
EVT_WHELEN_TRIPLE_FLASH = 0x8
EVT_WHELEN_WARNING = 0x9
EVT_WHELEN_RANDOM = 0xA

SEQ parameter:

EVT_SEQ_SOLID = 0x0
EVT_SEQ_LEFTRIGHT = 0x1
EVT_SEQ_INOUT = 0x2

FLASH_RATE parameter:

EVT_FLASH_RATE_SLOW = 0x0
EVT_FLASH_RATE_MED = 0x1
EVT_FLASH_RATE_FAST = 0x2
EVT_FLASH_RATE_VERYFAST = 0x3

TRAFFIC_STYLE parameter:

EVT_TRAFFIC_STD = 0x0
EVT_TRAFFIC_STD_FLGRN = 0x1
EVT_TRAFFIC_EUR = 0x2
EVT_TRAFFIC_NS_FLRED = 0x3
EVT_TRAFFIC_STD_PED = 0x4
EVT_TRAFFIC_STD_FLGRN_PED = 0x5
EVT_TRAFFIC_EUR_PED = 0x6
EVT_TRAFFIC_EW_FLRED = 0x7
EVT_TRAFFIC_EUR2 = 0x8
EVT_TRAFFIC_EUR2_PED = 0x9

SEQ_TIME parameter:

EVT_SEQ_TIME_SLOW = 0x0
EVT_SEQ_TIME_MED = 0x1
EVT_SEQ_TIME_FAST = 0x2
EVT_SEQ_TIME_VERYFAST = 0x3

FAULT_RATE parameter:

EVT_FAULT_RATE_RARE = 0x0
EVT_FAULT_RATE_OCCASIONAL = 0x1
EVT_FAULT_RATE_OFTEN = 0x2
EVT_FAULT_RATE_VERYOFTEN = 0x3
EVT_FAULT_RATE_ALWAYS = 0x4

FAULT_INTENSITY parameter:

EVT_FAULT_INT_SUBTLE = 0x0
EVT_FAULT_INT_MODERATE = 0x1
EVT_FAULT_INT_SERVERE = 0x2
EVT_FAULT_INT_MAX = 0x3
EVT_FAULT_INT_FLICKER_ON = 0x4

SOURCE1 parameter:

EVT_SOURCE1_USB_CONN = 0x01
EVT_SOURCE1_USB_ACTIVITY = 0x02
EVT_SOURCE1_IR_ACTIVITY = 0x04
EVT_SOURCE1_IR_LOCKOUT = 0x08
EVT_SOURCE1_AUDIO_PLAY = 0x10
EVT_SOURCE1_BLE_CONN = 0x20
EVT_SOURCE1_BLE_ACTIVITY = 0x40
EVT_SOURCE1_FS_ACCESS = 0x80

SOURCE2 parameter:

EVT_SOURCE2_MOTORA_FWD = 0x01
EVT_SOURCE2_MOTORA_REV = 0x02
EVT_SOURCE2_MOTORB_FWD = 0x04
EVT_SOURCE2_MOTORB_REV = 0x08
EVT_SOURCE2_MOTORC_FWD = 0x10
EVT_SOURCE2_MOTORC_REV = 0x20
EVT_SOURCE2_MOTORD_FWD = 0x40
EVT_SOURCE2_MOTORD_REV = 0x80
EVT_SOURCE2_MOTORA_MASK = 0xFC
EVT_SOURCE2_MOTORB_MASK = 0xF3
EVT_SOURCE2_MOTORC_MASK = 0xCF
EVT_SOURCE2_MOTORD_MASK = 0x3F
EVT_INVERT_NORMAL = 0x00

TRANSITION parameter:

EVT_TRANSITION_TOGGLE = 0x00
EVT_TRANSITION_ON = 0x01
EVT_TRANSITION_OFF = 0x02
EVT_TRANSITION_DURATION = 0x03
EVT_TRANSITION_MASK = 0x03

Sound Fx ID

EVT_SOUND_NONE = 0x0
EVT_SOUND_INC_VOL = 0x1
EVT_SOUND_DEC_VOL = 0x2
EVT_SOUND_SET_VOL = 0x3
EVT_SOUND_PLAY_ONCE = 0x4
EVT_SOUND_PLAY_CONT = 0x5
EVT_SOUND_PLAY_NTIMES = 0x6
EVT_SOUND_PLAY_DUR = 0x7
EVT_SOUND_PLAY_PITCH = 0x8
EVT_SOUND_PLAY_GATED = 0x9
EVT_SOUND_PLAY_AM = 0xA
EVT_SOUND_STOP = 0xB
EVT_SOUND_PLAY_IDX_MOTOR = 0xC
EVT_SOUND_PLAY_RAND = 0xD
EVT_SOUND_FILE_SEEK = 0xE
EVT_SOUND_FILE_SCRUB = 0xF
EVT_SOUND_PLAY_PAUSE_FLAG = 0x10

Sound Param 1 and 2

SOUND_DURATION parameter:

EVT_SOUND_DUR_500MS = 0x0
EVT_SOUND_DUR_1S = 0x1
EVT_SOUND_DUR_1_5S = 0x2
EVT_SOUND_DUR_2S = 0x3
EVT_SOUND_DUR_3S = 0x4
EVT_SOUND_DUR_4S = 0x5
EVT_SOUND_DUR_5S = 0x6
EVT_SOUND_DUR_10S = 0x7
EVT_SOUND_DUR_15S = 0x8
EVT_SOUND_DUR_20S = 0x9
EVT_SOUND_DUR_30S = 0xA
EVT_SOUND_DUR_45S = 0xB
EVT_SOUND_DUR_60S = 0xC
EVT_SOUND_DUR_90S = 0xD
EVT_SOUND_DUR_2M = 0xE
EVT_SOUND_DUR_5M = 0xF

RETRIGGER parameter:

EVT_SOUND_TOGGLE = 0x0
EVT_SOUND_RESTART = 0x1

IDX_OPTIONS parameter:

EVT_SOUND_IDX_MOTOR_MASK = 0x03
EVT_SOUND_IDX_MOTOR_CURR_SPD = 0x04
EVT_SOUND_IDX_MOTOR_TGT_SPD = 0x00
EVT_SOUND_IDX_VOL_MOD_OFF = 0x0
EVT_SOUND_IDX_VOL_MOD_LIGHT = 0x1
EVT_SOUND_IDX_VOL_MOD_MED = 0x2
EVT_SOUND_IDX_VOL_MOD_HEAVY = 0x3
EVT_SOUND_IDX_VOL_MOD_MASK = 0x3
EVT_SOUND_IDX_PLAY_STARTUP = 0x4
EVT_SOUND_IDX_PLAY_START_OVR = 0x8

PROBABILITY parameter:

EVT_SOUND_RAND_RARE = 0x0
EVT_SOUND_RAND_OCCASIONAL = 0x1
EVT_SOUND_RAND_OFTEN = 0x2
EVT_SOUND_RAND_VERYOFTEN = 0x3

Event IDs

EVT_ID_8879_TWO_BUTTONS = 0x0
EVT_ID_8879_LEFT_BUTTON = 0x1
EVT_ID_8879_RIGHT_BUTTON = 0x2
EVT_ID_8879_LEFT_INC = 0x3
EVT_ID_8879_LEFT_DEC = 0x4
EVT_ID_8879_RIGHT_INC = 0x5
EVT_ID_8879_RIGHT_DEC = 0x6
EVT_ID_8885_LEFT_FWD = 0x7
EVT_ID_8885_LEFT_REV = 0x8
EVT_ID_8885_RIGHT_FWD = 0x9
EVT_ID_8885_RIGHT_REV = 0xA
EVT_ID_8885_LEFT_CTROFF = 0xB
EVT_ID_8885_RIGHT_CTROFF = 0xC
EVT_ID_EV3_BEACON = 0xD
EVT_ID_TEST_EVENT = 0xE
EVT_ID_STARTUP_EVENT = 0xF
EVT_ID_STARTUP_EVENT2 = 0x10
EVT_ID_RCTRAIN_UP = 0x14
EVT_ID_RCTRAIN_DOWN = 0x15
EVT_ID_RCTRAIN_STOP = 0x16
EVT_ID_RCTRAIN_HORN = 0x17
EVT_ID_MAX = 0x20

Shifted event IDs as an address:

EVT_8879_TWO_BUTTONS = 0x00
EVT_8879_LEFT_BUTTON = 0x04
EVT_8879_RIGHT_BUTTON = 0x08
EVT_8879_LEFT_INC = 0x0C
EVT_8879_LEFT_DEC = 0x10
EVT_8879_RIGHT_INC = 0x14
EVT_8879_RIGHT_DEC = 0x18
EVT_8885_LEFT_FWD = 0x1C
EVT_8885_LEFT_REV = 0x20
EVT_8885_RIGHT_FWD = 0x24
EVT_8885_RIGHT_REV = 0x28
EVT_8885_LEFT_CTROFF = 0x2C
EVT_8885_RIGHT_CTROFF = 0x30
EVT_EV3_BEACON = 0x34
EVT_TEST_EVENT = 0x38
EVT_DEFAULT_EVENT = 0x3C
EVT_DEFAULT_EVENT = 0x3C
EVT_STARTUP_EVENT1 = 0x3C
EVT_STARTUP_EVENT2 = 0x3D
EVT_STARTUP_EVENT3 = 0x3E
EVT_STARTUP_EVENT4 = 0x3F
EVT_STARTUP_EVENT5 = 0x40
EVT_STARTUP_EVENT6 = 0x41
EVT_STARTUP_EVENT7 = 0x42
EVT_STARTUP_EVENT8 = 0x43
EVT_BUTTON_PRESS = 0x44
EVT_BUTTON_LONGPRESS = 0x45
EVT_BUTTON_DOWN = 0x46
EVT_BUTTON_UP = 0x47
EVT_BLE_CONNECT = 0x48
EVT_BLE_DISCONNECT = 0x49
EVT_USB_CONNECT = 0x4A
EVT_USB_DISCONNECT = 0x4B
EVT_RCTRAIN_UP = 0x50
EVT_RCTRAIN_DOWN = 0x54
EVT_RCTRAIN_STOP = 0x58
EVT_RCTRAIN_HORN = 0x5C
EVT_SPARKFUN_POWER = 0x60
EVT_SPARKFUN_A = 0x61
EVT_SPARKFUN_B = 0x62
EVT_SPARKFUN_C = 0x63
EVT_SPARKFUN_UP = 0x64
EVT_SPARKFUN_DOWN = 0x65
EVT_SPARKFUN_LEFT = 0x66
EVT_SPARKFUN_RIGHT = 0x67
EVT_ADAFRUIT_VOLDOWN = 0x68
EVT_ADAFRUIT_PLAY = 0x69
EVT_ADAFRUIT_VOLUP = 0x6A
EVT_ADAFRUIT_SETUP = 0x6B
EVT_ADAFRUIT_STOP = 0x6C
EVT_ADAFRUIT_UP = 0x6D
EVT_ADAFRUIT_DOWN = 0x6E
EVT_ADAFRUIT_LEFT = 0x6F
EVT_ADAFRUIT_RIGHT = 0x70
EVT_ADAFRUIT_ENTER = 0x71
EVT_ADAFRUIT_REPEAT = 0x72
EVT_ADAFRUIT_0 = 0x73
EVT_ADAFRUIT_1 = 0x74
EVT_ADAFRUIT_2 = 0x75
EVT_ADAFRUIT_3 = 0x76
EVT_ADAFRUIT_4 = 0x77
EVT_ADAFRUIT_5 = 0x78
EVT_ADAFRUIT_6 = 0x79
EVT_ADAFRUIT_7 = 0x7A
EVT_ADAFRUIT_8 = 0x7B
EVT_ADAFRUIT_9 = 0x7C
EVT_INVALID = 0xFF
EVT_EVENT_ID_MAX = 0x20
EVT_EVENT_ID_MASK = 0x7C
EVT_EVENT_CH_MASK = 0x03

Error Codes

PFX_ERR_NONE = 0x00
PFX_ERR_VERIFY_PASS = 0x00
PFX_ERR_VERIFY_FAIL = 0x01
PFX_ERR_TRANSFER_REQUEST_OK = 0x00
PFX_ERR_TRANSFER_FILE_EXISTS = 0x02
PFX_ERR_TRANSFER_TOO_BIG = 0x03
PFX_ERR_TRANSFER_INVALID = 0x04
PFX_ERR_TRANSFER_FILE_NOT_FOUND = 0x05
PFX_ERR_TRANSFER_ERROR = 0xFF
PFX_ERR_TRANSFER_CRC_MISMATCH = 0x06
PFX_ERR_TRANSFER_BUSY_WAIT = 0x07
PFX_ERR_TRANSFER_LUT_FULL = 0x08
PFX_ERR_TRANSFER_COMPLETE = 0x09
PFX_ERR_UPGRADE_FAIL = 0x80
PFX_ERR_FILE_SYSTEM_ERR = 0xF0
PFX_ERR_FILE_INVALID = 0xF1
PFX_ERR_FILE_OUT_OF_RANGE = 0xF2
PFX_ERR_FILE_READ_ONLY = 0xF3
PFX_ERR_FILE_TOO_BIG = 0xF4
PFX_ERR_FILE_NOT_FOUND = 0xF5
PFX_ERR_FILE_NOT_UNIQUE = 0xF6
PFX_ERR_FILE_LOCKED_BUSY = 0xF7
PFX_ERR_FILE_SYSTEM_FULL = 0xF8
PFX_ERR_FILE_SYSTEM_TIMEOUT = 0xF9
PFX_ERR_FILE_INVALID_ADDRESS = 0xFA
PFX_ERR_FILE_NEXT_SECTOR = 0xFB
PFX_ERR_FILE_ACCESS_DENIED = 0xFC
PFX_ERR_FILE_EOF = 0xFF
PFX_ERR_BLE_FAULT = 0x0B
PFX_ERR_SPKR_SHORTCIR_FAULT = 0x04
PFX_ERR_DAC_OVERTEMP_FAULT = 0x08
PFX_ERR_TRAP_BROWNOUT_RST = 0x0A
PFX_ERR_TRAP_CONFLICT = 0x10
PFX_ERR_TRAP_ILLEGAL_OPCODE = 0x20
PFX_ERR_TRAP_CONFIG_MISMATCH = 0x40