Constants for various EV3 modules. More...
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | ev3_constants_h |
| #define | NUM_OUTPUTS 4 |
| #define | NUM_INPUTS 4 |
| #define | TRUE true |
| #define | FALSE false |
| #define | NUM_LEDS 4 |
| #define | LCD_WIDTH 178 |
| #define | LCD_HEIGHT 128 |
| #define | TOPLINE_HEIGHT 10 |
| #define | OWNER_NONE 0x0000 |
| #define | LAYER_MASTER 0x00 |
| #define | LAYER_SLAVE1 0x10 |
| #define | LAYER_SLAVE2 0x20 |
| #define | LAYER_SLAVE3 0x40 |
| #define | LAYER_MASK 0x70 |
| #define | OUT_A 0x01 |
| #define | OUT_B 0x02 |
| #define | OUT_C 0x04 |
| #define | OUT_D 0x08 |
| #define | OUT_AB 0x03 |
| #define | OUT_AC 0x05 |
| #define | OUT_AD 0x09 |
| #define | OUT_BC 0x06 |
| #define | OUT_BD 0x0a |
| #define | OUT_CD 0x0c |
| #define | OUT_ABC 0x07 |
| #define | OUT_BCD 0x0e |
| #define | OUT_ABCD 0x0f |
| #define | OUT_ALL 0x0f |
| #define | OUT_MASK 0x0f |
| #define | IN_1 0x0 |
| #define | IN_2 0x1 |
| #define | IN_3 0x2 |
| #define | IN_4 0x3 |
| #define | OUT_FLOAT 0x00 |
| #define | OUT_OFF 0x40 |
| #define | OUT_ON 0x80 |
| #define | OUT_REV 0x00 |
| #define | OUT_TOGGLE 0x40 |
| #define | OUT_FWD 0x80 |
| #define | OUT_POWER_DEFAULT -127 |
| #define | OUT_REGMODE_IDLE 0 |
| #define | OUT_REGMODE_SPEED 1 |
| #define | OUT_REGMODE_SYNC 2 |
| #define | RESET_NONE 0x00 |
| #define | RESET_COUNT 0x08 |
| #define | RESET_BLOCK_COUNT 0x20 |
| #define | RESET_ROTATION_COUNT 0x40 |
| #define | RESET_BLOCKANDTACHO 0x28 |
| #define | RESET_ALL 0x68 |
| #define | DEVICE_TYPE_NXT_TOUCH 1 |
| Device is NXT touch sensor. More... | |
| #define | DEVICE_TYPE_NXT_LIGHT 2 |
| Device is NXT light sensor. More... | |
| #define | DEVICE_TYPE_NXT_SOUND 3 |
| Device is NXT sound sensor. More... | |
| #define | DEVICE_TYPE_NXT_COLOR 4 |
| Device is NXT color sensor. More... | |
| #define | DEVICE_TYPE_TACHO 7 |
| Device is a tacho motor. More... | |
| #define | DEVICE_TYPE_MINITACHO 8 |
| Device is a mini tacho motor. More... | |
| #define | DEVICE_TYPE_NEWTACHO 9 |
| Device is a new tacho motor. More... | |
| #define | DEVICE_TYPE_THIRD_PARTY_START 50 |
| #define | DEVICE_TYPE_THIRD_PARTY_END 99 |
| #define | DEVICE_TYPE_IIC_UNKNOWN 100 |
| #define | DEVICE_TYPE_NXT_TEST 101 |
| Device is a NXT ADC test sensor. More... | |
| #define | DEVICE_TYPE_NXT_IIC 123 |
| Device is NXT IIC sensor. More... | |
| #define | DEVICE_TYPE_TERMINAL 124 |
| Port is connected to a terminal. More... | |
| #define | DEVICE_TYPE_UNKNOWN 125 |
| Port not empty but type has not been determined. More... | |
| #define | DEVICE_TYPE_NONE 126 |
| Port empty or not available. More... | |
| #define | DEVICE_TYPE_ERROR 127 |
| Port not empty and type is invalid. More... | |
| #define | MAX_DEVICE_DATALENGTH 32 |
| #define | MAX_DEVICE_MODES 8 |
| #define | UART_DATA_LENGTH MAX_DEVICE_DATALENGTH |
| #define | UART_BUFFER_SIZE 64 |
| #define | TYPE_NAME_LENGTH 11 |
| #define | SYMBOL_LENGTH 4 |
| #define | DEVICE_LOGBUF_SIZE 300 |
| #define | IIC_DATA_LENGTH MAX_DEVICE_DATALENGTH |
| #define | IIC_NAME_LENGTH 8 |
| #define | BUTTON_ID_UP 0x01 |
| The up button. More... | |
| #define | BUTTON_ID_ENTER 0x02 |
| The enter button. More... | |
| #define | BUTTON_ID_DOWN 0x04 |
| The down button. More... | |
| #define | BUTTON_ID_RIGHT 0x08 |
| The right button. More... | |
| #define | BUTTON_ID_LEFT 0x10 |
| The left button. More... | |
| #define | BUTTON_ID_ESCAPE 0x20 |
| The exit (escape) button. More... | |
| #define | BUTTON_ID_ALL 0x3f |
| All buttons mask. More... | |
| #define | BTN1 BUTTON_ID_ESCAPE |
| The exit (escape) button. More... | |
| #define | BTN2 BUTTON_ID_RIGHT |
| The right button. More... | |
| #define | BTN3 BUTTON_ID_LEFT |
| The left button. More... | |
| #define | BTN4 BUTTON_ID_ENTER |
| The enter button. More... | |
| #define | BTN5 BUTTON_ID_UP |
| The up button. More... | |
| #define | BTN6 BUTTON_ID_DOWN |
| The down button. More... | |
| #define | BTNEXIT BTN1 |
| The exit (escape) button. More... | |
| #define | BTNRIGHT BTN2 |
| The right button. More... | |
| #define | BTNLEFT BTN3 |
| The left button. More... | |
| #define | BTNCENTER BTN4 |
| The enter button. More... | |
| #define | BTNUP BTN5 |
| The up button. More... | |
| #define | BTNDOWN BTN6 |
| The down button. More... | |
| #define | BTNANY BUTTON_ID_ALL |
| Any button. More... | |
| #define | NO_OF_BTNS 6 |
| The number of EV3 buttons. More... | |
| #define | NUM_BUTTONS 6 |
| Number of buttons in the system. More... | |
| #define | BTNSTATE_PRESSED_EV 0x01 |
| #define | BTNSTATE_SHORT_RELEASED_EV 0x02 |
| #define | BTNSTATE_LONG_PRESSED_EV 0x04 |
| #define | BTNSTATE_LONG_RELEASED_EV 0x08 |
| #define | BTNSTATE_PRESSED_STATE 0x80 |
| #define | BTNSTATE_NONE 0x10 |
| #define | NXTCOLOR_IDX_RED 0 |
| Access the red value from color sensor value arrays. More... | |
| #define | NXTCOLOR_IDX_GREEN 1 |
| Access the green value from color sensor value arrays. More... | |
| #define | NXTCOLOR_IDX_BLUE 2 |
| Access the blue value from color sensor value arrays. More... | |
| #define | NXTCOLOR_IDX_BLANK 3 |
| Access the blank value from color sensor value arrays. More... | |
| #define | NUM_NXTCOLOR_IDX 4 |
| The number of entries in the color sensor value arrays. More... | |
| #define | NXTCOLOR_CAL_POINT_0 0 |
| Calibration point 0. More... | |
| #define | NXTCOLOR_CAL_POINT_1 1 |
| Calibration point 1. More... | |
| #define | NXTCOLOR_CAL_POINT_2 2 |
| Calibration point 2. More... | |
| #define | NUM_NXTCOLOR_CAL_POINTS 3 |
| The number of calibration points. More... | |
| #define | INPUT_BLACKCOLOR 1 |
| The color value is black. More... | |
| #define | INPUT_BLUECOLOR 2 |
| The color value is blue. More... | |
| #define | INPUT_GREENCOLOR 3 |
| The color value is green. More... | |
| #define | INPUT_YELLOWCOLOR 4 |
| The color value is yellow. More... | |
| #define | INPUT_REDCOLOR 5 |
| The color value is red. More... | |
| #define | INPUT_WHITECOLOR 6 |
| The color value is white. More... | |
| #define | FILETYPE_UNKNOWN 0x00 |
| #define | FILETYPE_FOLDER 0x01 |
| #define | FILETYPE_SOUND 0x02 |
| #define | FILETYPE_BYTECODE 0x03 |
| #define | FILETYPE_GRAPHICS 0x04 |
| #define | FILETYPE_DATALOG 0x05 |
| #define | FILETYPE_PROGRAM 0x06 |
| #define | FILETYPE_TEXT 0x07 |
| #define | FILETYPE_SDCARD 0x10 |
| #define | FILETYPE_USBSTICK 0x20 |
| #define | NUM_FILETYPES 0x21 |
| Maximum icon types supported by the VM. More... | |
| #define | FONTTYPE_NORMAL 0 |
| #define | FONTTYPE_SMALL 1 |
| #define | FONTTYPE_LARGE 2 |
| #define | FONTTYPE_TINY 3 |
| #define | NUM_FONTTYPES 4 |
| Maximum font types supported by the VM. More... | |
| #define | ICONTYPE_NORMAL 0 |
| #define | ICONTYPE_SMALL 1 |
| #define | ICONTYPE_LARGE 2 |
| #define | ICONTYPE_MENU 3 |
| #define | ICONTYPE_ARROW 4 |
| #define | NUM_ICONTYPES 5 |
| Maximum icon types supported by the VM. More... | |
| #define | NICON_NONE -1 |
| #define | NICON_RUN 0 |
| #define | NICON_FOLDER 1 |
| #define | NICON_FOLDER2 2 |
| #define | NICON_USB 3 |
| #define | NICON_SD 4 |
| #define | NICON_SOUND 5 |
| #define | NICON_IMAGE 6 |
| #define | NICON_SETTINGS 7 |
| #define | NICON_ONOFF 8 |
| #define | NICON_SEARCH 9 |
| #define | NICON_WIFI 10 |
| #define | NICON_CONNECTIONS 11 |
| #define | NICON_ADD_HIDDEN 12 |
| #define | NICON_TRASHBIN 13 |
| #define | NICON_VISIBILITY 14 |
| #define | NICON_KEY 15 |
| #define | NICON_CONNECT 16 |
| #define | NICON_DISCONNECT 17 |
| #define | NICON_UP 18 |
| #define | NICON_DOWN 19 |
| #define | NICON_WAIT1 20 |
| #define | NICON_WAIT2 21 |
| #define | NICON_BLUETOOTH 22 |
| #define | NICON_INFO 23 |
| #define | NICON_TEXT 24 |
| #define | NICON_QUESTIONMARK 27 |
| #define | NICON_INFO_FILE 28 |
| #define | NICON_DISC 29 |
| #define | NICON_CONNECTED 30 |
| #define | NICON_OBP 31 |
| #define | NICON_OBD 32 |
| #define | NICON_OPENFOLDER 33 |
| #define | NICON_BRICK1 34 |
| #define | NUM_NICONS 35 |
| #define | PATH_SIZE 84 |
| Max path size excluding trailing forward slash including zero termination. More... | |
| #define | NAME_SIZE 32 |
| Max name size including zero termination (must be divideable by 4) More... | |
| #define | EXT_SIZE 5 |
| Max extension size including dot and zero termination. More... | |
| #define | FILENAME_SIZE 120 |
| Max filename size including path, name, extension and termination (must be divideable by 4) More... | |
| #define | MAC_SIZE 18 |
| Max WIFI MAC size including zero termination. More... | |
| #define | IP_SIZE 16 |
| Max WIFI IP size including zero termination. More... | |
| #define | BT_SIZE 13 |
| Max bluetooth address size including zero termination. More... | |
| #define | MS_1 1 |
| #define | MS_2 2 |
| #define | MS_3 3 |
| #define | MS_4 4 |
| #define | MS_5 5 |
| #define | MS_6 6 |
| #define | MS_7 7 |
| #define | MS_8 8 |
| #define | MS_9 9 |
| #define | MS_10 10 |
| #define | MS_20 20 |
| #define | MS_30 30 |
| #define | MS_40 40 |
| #define | MS_50 50 |
| #define | MS_60 60 |
| #define | MS_70 70 |
| #define | MS_80 80 |
| #define | MS_90 90 |
| #define | MS_100 100 |
| #define | MS_150 150 |
| #define | MS_200 200 |
| #define | MS_250 250 |
| #define | MS_300 300 |
| #define | MS_350 350 |
| #define | MS_400 400 |
| #define | MS_450 450 |
| #define | MS_500 500 |
| #define | MS_600 600 |
| #define | MS_700 700 |
| #define | MS_800 800 |
| #define | MS_900 900 |
| #define | SEC_1 1000 |
| #define | SEC_2 2000 |
| #define | SEC_3 3000 |
| #define | SEC_4 4000 |
| #define | SEC_5 5000 |
| #define | SEC_6 6000 |
| #define | SEC_7 7000 |
| #define | SEC_8 8000 |
| #define | SEC_9 9000 |
| #define | SEC_10 10000 |
| #define | SEC_15 15000 |
| #define | SEC_20 20000 |
| #define | SEC_30 30000 |
| #define | MIN_1 60000 |
| #define | SOUND_STATE_IDLE 0 |
| #define | SOUND_STATE_SETUP_FILE 1 |
| #define | SOUND_STATE_FILE 2 |
| #define | SOUND_STATE_FILE_LOOPING 3 |
| #define | SOUND_STATE_TONE 4 |
| #define | SOUND_STATE_TONE_LOOPING 5 |
| #define | SOUND_STATE_STOP 6 |
| #define | SOUND_CLICK 0 |
| #define | SOUND_DOUBLE_BEEP 1 |
| #define | SOUND_DOWN 2 |
| #define | SOUND_UP 3 |
| #define | SOUND_LOW_BEEP 4 |
| #define | SOUND_FAST_UP 5 |
| #define | TONE_C2 65 |
| #define | TONE_CS2 69 |
| #define | TONE_D2 73 |
| #define | TONE_DS2 78 |
| #define | TONE_E2 82 |
| #define | TONE_F2 87 |
| #define | TONE_FS2 92 |
| #define | TONE_G2 98 |
| #define | TONE_GS2 104 |
| #define | TONE_A2 110 |
| #define | TONE_AS2 117 |
| #define | TONE_B2 123 |
| #define | TONE_C3 131 |
| #define | TONE_CS3 139 |
| #define | TONE_D3 147 |
| #define | TONE_DS3 156 |
| #define | TONE_E3 165 |
| #define | TONE_F3 175 |
| #define | TONE_FS3 185 |
| #define | TONE_G3 196 |
| #define | TONE_GS3 208 |
| #define | TONE_A3 220 |
| #define | TONE_AS3 233 |
| #define | TONE_B3 247 |
| #define | TONE_C4 262 |
| #define | TONE_CS4 277 |
| #define | TONE_D4 294 |
| #define | TONE_DS4 311 |
| #define | TONE_E4 330 |
| #define | TONE_F4 349 |
| #define | TONE_FS4 370 |
| #define | TONE_G4 392 |
| #define | TONE_GS4 415 |
| #define | TONE_A4 440 |
| #define | TONE_AS4 466 |
| #define | TONE_B4 494 |
| #define | TONE_C5 523 |
| #define | TONE_CS5 554 |
| #define | TONE_D5 587 |
| #define | TONE_DS5 622 |
| #define | TONE_E5 659 |
| #define | TONE_F5 698 |
| #define | TONE_FS5 740 |
| #define | TONE_G5 784 |
| #define | TONE_GS5 831 |
| #define | TONE_A5 880 |
| #define | TONE_AS5 932 |
| #define | TONE_B5 988 |
| #define | TONE_C6 1047 |
| #define | TONE_CS6 1109 |
| #define | TONE_D6 1175 |
| #define | TONE_DS6 1245 |
| #define | TONE_E6 1319 |
| #define | TONE_F6 1397 |
| #define | TONE_FS6 1480 |
| #define | TONE_G6 1568 |
| #define | TONE_GS6 1661 |
| #define | TONE_A6 1760 |
| #define | TONE_AS6 1865 |
| #define | TONE_B6 1976 |
| #define | TONE_C7 2093 |
| #define | TONE_CS7 2217 |
| #define | TONE_D7 2349 |
| #define | TONE_DS7 2489 |
| #define | TONE_E7 2637 |
| #define | TONE_F7 2794 |
| #define | TONE_FS7 2960 |
| #define | TONE_G7 3136 |
| #define | TONE_GS7 3322 |
| #define | TONE_A7 3520 |
| #define | TONE_AS7 3729 |
| #define | TONE_B7 3951 |
| #define | NOTE_WHOLE 1000 |
| #define | NOTE_HALF (NOTE_WHOLE/2) |
| #define | NOTE_QUARTER (NOTE_WHOLE/4) |
| #define | NOTE_EIGHT (NOTE_WHOLE/8) |
| #define | NOTE_SIXTEEN (NOTE_WHOLE/16) |
| #define | LCD_LINE8 112 |
| #define | LCD_LINE7 96 |
| #define | LCD_LINE6 80 |
| #define | LCD_LINE5 64 |
| #define | LCD_LINE4 48 |
| #define | LCD_LINE3 32 |
| #define | LCD_LINE2 16 |
| #define | LCD_LINE1 0 |
| #define | DISPLAY_ERASE_ALL 0x00 |
| #define | DISPLAY_PIXEL 0x01 |
| #define | DISPLAY_HORIZONTAL_LINE 0x02 |
| #define | DISPLAY_VERTICAL_LINE 0x03 |
| #define | DISPLAY_CHAR 0x04 |
| #define | DISPLAY_ERASE_LINE 0x05 |
| #define | DISPLAY_FILL_REGION 0x06 |
| #define | DISPLAY_FRAME 0x07 |
| #define | DRAW_OPT_NORMAL (0x0000) |
| #define | DRAW_OPT_CLEAR_WHOLE_SCREEN (0x0001) |
| #define | DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN (0x0002) |
| #define | DRAW_OPT_CLEAR_PIXELS (0x0004) |
| #define | DRAW_OPT_CLEAR (0x0004) |
| #define | DRAW_OPT_INVERT (0x0004) |
| #define | DRAW_OPT_LOGICAL_COPY (0x0000) |
| #define | DRAW_OPT_LOGICAL_AND (0x0008) |
| #define | DRAW_OPT_LOGICAL_OR (0x0010) |
| #define | DRAW_OPT_LOGICAL_XOR (0x0018) |
| #define | DRAW_OPT_FILL_SHAPE (0x0020) |
| #define | DRAW_OPT_CLEAR_SCREEN_MODES (0x0003) |
| #define | DRAW_OPT_LOGICAL_OPERATIONS (0x0018) |
| #define | DRAW_OPT_POLYGON_POLYLINE (0x0400) |
| #define | DRAW_OPT_CLEAR_LINE (0x0800) |
| #define | DRAW_OPT_CLEAR_EOL (0x1000) |
| #define | CS_TIMER_1 0 |
| Centisecond timer number 1 (100 ticks per second) More... | |
| #define | CS_TIMER_2 1 |
| Centisecond timer number 2 (100 ticks per second) More... | |
| #define | CS_TIMER_3 2 |
| Centisecond timer number 3 (100 ticks per second) More... | |
| #define | CS_TIMER_4 3 |
| Centisecond timer number 4 (100 ticks per second) More... | |
| #define | NUM_CS_TIMERS 4 |
| The number of centisecond timers. More... | |
| #define | MS_TIMER_1 0 |
| Millisecond timer number 1 (1000 ticks per second) More... | |
| #define | MS_TIMER_2 1 |
| Millisecond timer number 2 (1000 ticks per second) More... | |
| #define | MS_TIMER_3 2 |
| Millisecond timer number 3 (1000 ticks per second) More... | |
| #define | MS_TIMER_4 3 |
| Millisecond timer number 4 (1000 ticks per second) More... | |
| #define | NUM_MS_TIMERS 4 |
| The number of millisecond timers. More... | |
| #define | US_TIMER_1 0 |
| Microsecond timer number 1 (1000000 ticks per second) More... | |
| #define | US_TIMER_2 1 |
| Microsecond timer number 2 (1000000 ticks per second) More... | |
| #define | US_TIMER_3 2 |
| Microsecond timer number 3 (1000000 ticks per second) More... | |
| #define | US_TIMER_4 3 |
| Microsecond timer number 4 (1000000 ticks per second) More... | |
| #define | NUM_US_TIMERS 4 |
| The number of microsecond timers. More... | |
| #define | LMS_PWM_DEVICE "lms_pwm" |
| #define | LMS_PWM_DEVICE_NAME "/dev/lms_pwm" |
| #define | LMS_MOTOR_DEVICE "lms_motor" |
| #define | LMS_MOTOR_DEVICE_NAME "/dev/lms_motor" |
| #define | LMS_ANALOG_DEVICE "lms_analog" |
| #define | LMS_ANALOG_DEVICE_NAME "/dev/lms_analog" |
| #define | LMS_POWER_DEVICE "lms_power" |
| #define | LMS_POWER_DEVICE_NAME "/dev/lms_power" |
| #define | LMS_DCM_DEVICE "lms_dcm" |
| #define | LMS_DCM_DEVICE_NAME "/dev/lms_dcm" |
| #define | LMS_UI_DEVICE "lms_ui" |
| #define | LMS_UI_DEVICE_NAME "/dev/lms_ui" |
| #define | LMS_LCD_DEVICE "lms_display" |
| #define | LMS_LCD_DEVICE_NAME "/dev/fb0" |
| #define | LMS_UART_DEVICE "lms_uart" |
| #define | LMS_UART_DEVICE_NAME "/dev/lms_uart" |
| #define | LMS_USBDEV_DEVICE "lms_usbdev" |
| #define | LMS_USBDEV_DEVICE_NAME "/dev/lms_usbdev" |
| #define | LMS_USBHOST_DEVICE "lms_usbhost" |
| #define | LMS_USBHOST_DEVICE_NAME "/dev/lms_usbhost" |
| #define | LMS_SOUND_DEVICE "lms_sound" |
| #define | LMS_SOUND_DEVICE_NAME "/dev/lms_sound" |
| #define | LMS_IIC_DEVICE "lms_iic" |
| #define | LMS_IIC_DEVICE_NAME "/dev/lms_iic" |
| #define | LMS_BT_DEVICE "lms_bt" |
| #define | LMS_BT_DEVICE_NAME "/dev/lms_bt" |
| #define | LMS_UPDATE_DEVICE "lms_update" |
| #define | LMS_UPDATE_DEVICE_NAME "/dev/lms_update" |
| #define | LMS_TEST_PIN_DEVICE "lms_tst_pin" |
| #define | LMS_TEST_PIN_DEVICE_NAME "/dev/lms_tst_pin" |
| #define | LMS_TEST_UART_DEVICE "lms_tst_uart" |
| #define | LMS_TEST_UART_DEVICE_NAME "/dev/lms_tst_uart" |
| #define | opError 0x00 |
| #define | opNop 0x01 |
| #define | opProgramStop 0x02 |
| #define | opProgramStart 0x03 |
| #define | opObjectStop 0x04 |
| #define | opObjectStart 0x05 |
| #define | opObjectTrigger 0x06 |
| #define | opObjectWait 0x07 |
| #define | opReturn 0x08 |
| #define | opCall 0x09 |
| #define | opObjectEnd 0x0A |
| #define | opSleep 0x0B |
| #define | opProgramInfo 0x0C |
| #define | opLabel 0x0D |
| #define | opProbe 0x0E |
| #define | opDo 0x0F |
| #define | opAdd1 0x10 |
| #define | opAdd2 0x11 |
| #define | opAdd4 0x12 |
| #define | opAddF 0x13 |
| #define | opSub1 0x14 |
| #define | opSub2 0x15 |
| #define | opSub4 0x16 |
| #define | opSubF 0x17 |
| #define | opMul1 0x18 |
| #define | opMul2 0x19 |
| #define | opMul4 0x1A |
| #define | opMulF 0x1B |
| #define | opDiv1 0x1C |
| #define | opDiv2 0x1D |
| #define | opDiv4 0x1E |
| #define | opDivF 0x1F |
| #define | opOr1 0x20 |
| #define | opOr2 0x21 |
| #define | opOr4 0x22 |
| #define | opAnd1 0x24 |
| #define | opAnd2 0x25 |
| #define | opAnd4 0x26 |
| #define | opXor1 0x28 |
| #define | opXor2 0x29 |
| #define | opXor4 0x2A |
| #define | opRl1 0x2C |
| #define | opRl2 0x2D |
| #define | opRl4 0x2E |
| #define | opInitBytes 0x2F |
| #define | opMove11 0x30 |
| #define | opMove12 0x31 |
| #define | opMove14 0x32 |
| #define | opMove1F 0x33 |
| #define | opMove21 0x34 |
| #define | opMove22 0x35 |
| #define | opMove24 0x36 |
| #define | opMove2F 0x37 |
| #define | opMove41 0x38 |
| #define | opMove42 0x39 |
| #define | opMove44 0x3A |
| #define | opMove4F 0x3B |
| #define | opMoveF1 0x3C |
| #define | opMoveF2 0x3D |
| #define | opMoveF4 0x3E |
| #define | opMoveFF 0x3F |
| #define | opJmp 0x40 |
| #define | opJmpFalse 0x41 |
| #define | opJmpTrue 0x42 |
| #define | opJmpNan 0x43 |
| #define | opCmpLT1 0x44 |
| #define | opCmpLT2 0x45 |
| #define | opCmpLT4 0x46 |
| #define | opCmpLTF 0x47 |
| #define | opCmpGT1 0x48 |
| #define | opCmpGT2 0x49 |
| #define | opCmpGT4 0x4A |
| #define | opCmpGTF 0x4B |
| #define | opCmpEQ1 0x4C |
| #define | opCmpEQ2 0x4D |
| #define | opCmpEQ4 0x4E |
| #define | opCmpEQF 0x4F |
| #define | opCmpNEQ1 0x50 |
| #define | opCmpNEQ2 0x51 |
| #define | opCmpNEQ4 0x52 |
| #define | opCmpNEQF 0x53 |
| #define | opCmpLTEQ1 0x54 |
| #define | opCmpLTEQ2 0x55 |
| #define | opCmpLTEQ4 0x56 |
| #define | opCmpLTEQF 0x57 |
| #define | opCmpGTEQ1 0x58 |
| #define | opCmpGTEQ2 0x59 |
| #define | opCmpGTEQ4 0x5A |
| #define | opCmpGTEQF 0x5B |
| #define | opSelect1 0x5C |
| #define | opSelect2 0x5D |
| #define | opSelect4 0x5E |
| #define | opSelectF 0x5F |
| #define | opSystem 0x60 |
| #define | opPortConvertOutput 0x61 |
| #define | opPortConvertInput 0x62 |
| #define | opNote2Freq 0x63 |
| #define | opJmpLT1 0x64 |
| #define | opJmpLT2 0x65 |
| #define | opJmpLT4 0x66 |
| #define | opJmpLTF 0x67 |
| #define | opJmpGT1 0x68 |
| #define | opJmpGT2 0x69 |
| #define | opJmpGT4 0x6A |
| #define | opJmpGTF 0x6B |
| #define | opJmpEQ1 0x6C |
| #define | opJmpEQ2 0x6D |
| #define | opJmpEQ4 0x6E |
| #define | opJmpEQF 0x6F |
| #define | opJmpNEQ1 0x70 |
| #define | opJmpNEQ2 0x71 |
| #define | opJmpNEQ4 0x72 |
| #define | opJmpNEQF 0x73 |
| #define | opJmpLTEQ1 0x74 |
| #define | opJmpLTEQ2 0x75 |
| #define | opJmpLTEQ4 0x76 |
| #define | opJmpLTEQF 0x77 |
| #define | opJmpGTEQ1 0x78 |
| #define | opJmpGTEQ2 0x79 |
| #define | opJmpGTEQ4 0x7A |
| #define | opJmpGTEQF 0x7B |
| #define | opInfo 0x7C |
| #define | opStrings 0x7D |
| #define | opMemoryWrite 0x7E |
| #define | opMemoryRead 0x7F |
| #define | opUIFlush 0x80 |
| #define | opUIRead 0x81 |
| #define | opUIWrite 0x82 |
| #define | opUIButton 0x83 |
| #define | opUIDraw 0x84 |
| #define | opTimerWait 0x85 |
| #define | opTimerReady 0x86 |
| #define | opTimerRead 0x87 |
| #define | opBreakpoint0 0x88 |
| #define | opBreakpoint1 0x89 |
| #define | opBreakpoint2 0x8A |
| #define | opBreakpoint3 0x8B |
| #define | opBreakpointSet 0x8C |
| #define | opMath 0x8D |
| #define | opRandom 0x8E |
| #define | opTimerReadUS 0x8F |
| #define | opKeepAlive 0x90 |
| #define | opComRead 0x91 |
| #define | opComWrite 0x92 |
| #define | opSound 0x94 |
| #define | opSoundTest 0x95 |
| #define | opSoundReady 0x96 |
| #define | opInputSample 0x97 |
| #define | opInputDeviceList 0x98 |
| #define | opInputDevice 0x99 |
| #define | opInputRead 0x9A |
| #define | opInputTest 0x9B |
| #define | opInputReady 0x9C |
| #define | opInputReadSI 0x9D |
| #define | opInputReadext 0x9E |
| #define | opInputWrite 0x9F |
| #define | opOutputGetType 0xA0 |
| #define | opOutputSetType 0xA1 |
| #define | opOutputReset 0xA2 |
| #define | opOutputStop 0xA3 |
| #define | opOutputPower 0xA4 |
| #define | opOutputSpeed 0xA5 |
| #define | opOutputStart 0xA6 |
| #define | opOutputPolarity 0xA7 |
| #define | opOutputRead 0xA8 |
| #define | opOutputTest 0xA9 |
| #define | opOutputReady 0xAA |
| #define | opOutputPosition 0xAB |
| #define | opOutputStepPower 0xAC |
| #define | opOutputTimePower 0xAD |
| #define | opOutputStepSpeed 0xAE |
| #define | opOutputTimeSpeed 0xAF |
| #define | opOutputStepSync 0xB0 |
| #define | opOutputTimeSync 0xB1 |
| #define | opOutputClearCount 0xB2 |
| #define | opOutputGetCount 0xB3 |
| #define | opOutputProgramStop 0xB4 |
| #define | opFile 0xC0 |
| #define | opArray 0xC1 |
| #define | opArrayWrite 0xC2 |
| #define | opArrayRead 0xC3 |
| #define | opArrayAppend 0xC4 |
| #define | opMemoryUsage 0xC5 |
| #define | opFilename 0xC6 |
| #define | opRead1 0xC8 |
| #define | opRead2 0xC9 |
| #define | opRead4 0xCA |
| #define | opReadF 0xCB |
| #define | opWrite1 0xCC |
| #define | opWrite2 0xCD |
| #define | opWrite4 0xCE |
| #define | opWriteF 0xCF |
| #define | opComReadY 0xD0 |
| #define | opComReadData 0xD1 |
| #define | opComWriteData 0xD2 |
| #define | opComGet 0xD3 |
| #define | opComSet 0xD4 |
| #define | opComTest 0xD5 |
| #define | opComRemove 0xD6 |
| #define | opComWriteFile 0xD7 |
| #define | opMailboxOpen 0xD8 |
| #define | opMailboxWrite 0xD9 |
| #define | opMailboxRead 0xDA |
| #define | opMailboxTest 0xDB |
| #define | opMailboxReady 0xDC |
| #define | opMailboxClose 0xDD |
| #define | opTest 0xFF |
Constants for various EV3 modules.
ev3_constants.h contains declarations for various EV3 C API functions.
License:
The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The Initial Developer of this code is John Hansen. Portions created by John Hansen are Copyright (C) 2009-2013 John Hansen. All Rights Reserved.
| #define ev3_constants_h |
| #define NUM_INPUTS 4 |
| #define NUM_OUTPUTS 4 |
1.8.6