-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathev3.yml
More file actions
10147 lines (9583 loc) · 231 KB
/
ev3.yml
File metadata and controls
10147 lines (9583 loc) · 231 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%YAML 1.1
---
# The canonical source for this file is https://github.com/ev3dev/lmsasm/blob/master/bytecodes/data/ev3.yml
# Do not make changes to this file unless you also submit a pull request.
defines:
OUTPUTS:
value: 4
desc: Number of output ports in the system
INPUTS:
value: 4
desc: Number of input ports in the system
BUTTONS:
value: 6
desc: Number of buttons in the system
LEDS:
value: 4
desc: Number of LEDs in the system
LCD_WIDTH:
value: 178
desc: LCD horizontal pixels
LCD_HEIGHT:
value: 128
desc: LCD vertical pixels
TOPLINE_HEIGHT:
value: 10
desc: Top line vertical pixels
LCD_STORE_LEVELS:
value: 3
desc: Store levels
DEFAULT_VOLUME:
value: 100
DEFAULT_SLEEPMINUTES:
value: 30
# SOFTWARE
FG_COLOR:
value: 1
desc: Forground color
BG_COLOR:
value: 0
desc: Background color
CHAIN_DEPT:
value: 4
desc: Number of bricks in the USB daisy chain (master + slaves)
PATHSIZE:
value: 84
desc: Max path size excluding trailing forward slash including zero termination
NAMESIZE:
value: 32
desc: Max name size including zero termination (must be divideable by 4)
EXTSIZE:
value: 5
desc: Max extension size including dot and zero termination
FILENAMESIZE:
value: 120
desc: Max filename size including path, name, extension and termination (must be divideable by 4)
MACSIZE:
value: 18
desc: Max WIFI MAC size including zero termination
IPSIZE:
value: 16
desc: Max WIFI IP size including zero termination
BTADRSIZE:
value: 13
desc: Max bluetooth address size including zero termination
ERR_STRING_SIZE:
value: 32
desc: Inclusive zero termination
EVENT_NONE:
value: 0
EVENT_BT_PIN:
value: 1
EVENT_BT_REQ_CONF:
value: 2
MAX_VALID_TYPE:
value: 101
desc: Highest valid device type
# FOLDERS
MEMORY_FOLDER:
value: "/mnt/ramdisk"
desc: Folder for non volatile user programs/data
PROGRAM_FOLDER:
value: "../prjs/BrkProg_SAVE"
desc: Folder for On Brick Programming programs
DATALOG_FOLDER:
value: "../prjs/BrkDL_SAVE"
desc: Folder for On Brick Data log files
SDCARD_FOLDER:
value: "../prjs/SD_Card"
desc: Folder for SD card mount
USBSTICK_FOLDER:
value: "../prjs/USB_Stick"
desc: Folder for USB stick mount
PRJS_DIR:
value: "../prjs"
desc: Project folder
APPS_DIR:
value: "../apps"
desc: Apps folder
TOOLS_DIR:
value: "../tools"
desc: Tools folder
TMP_DIR:
value: "../tmp"
desc: Temporary folder
SETTINGS_DIR:
value: "../sys/settings"
desc: Folder for non volatile settings
DIR_DEEPT:
value: 127
desc: Max directory items allocated including "." and ".."
# FILES USED IN APPLICATION
LASTRUN_FILE_NAME:
value: "lastrun"
desc: Last run filename
CALDATA_FILE_NAME:
value: "caldata"
desc: Calibration data filename
# FILES USED IN APPS
SLEEP_FILE_NAME:
value: "Sleep"
desc: File used in "Sleep" app to save status
VOLUME_FILE_NAME:
value: "Volume"
desc: File used in "Volume" app to save status
WIFI_FILE_NAME:
value: "WiFi"
desc: File used in "WiFi" app to save status
BLUETOOTH_FILE_NAME:
value: "Bluetooth"
desc: File used in "Bluetooth" app to save status
# EXTENSIONS
EXT_SOUND:
value: ".rsf"
desc: Robot Sound File
EXT_GRAPHICS:
value: ".rgf"
desc: Robot Graphics File
EXT_BYTECODE:
value: ".rbf"
desc: Robot Byte code File
EXT_TEXT:
value: ".rtf"
desc: Robot Text File
EXT_DATALOG:
value: ".rdf"
desc: Robot Datalog File
EXT_PROGRAM:
value: ".rpf"
desc: Robot Program File
EXT_CONFIG:
value: ".rcf"
desc: Robot Configuration File
EXT_ARCHIVE:
value: ".raf"
desc: Robot Archive File
# NAME LENGTHs
BRICKNAMESIZE:
value: 120
desc: Brick name maximal size (including zero termination)
BTPASSKEYSIZE:
value: 7
desc: Bluetooth pass key size (including zero termination)
WIFIPASSKEYSIZE:
value: 33
desc: WiFi pass key size (including zero termination)
# VALID CHARACTERS
CHARSET_NAME:
value: 0x01
desc: Character set allowed in brick name and raw filenames
CHARSET_FILENAME:
value: 0x02
desc: Character set allowed in file names
CHARSET_BTPASSKEY:
value: 0x04
desc: Character set allowed in bluetooth pass key
CHARSET_WIFIPASSKEY:
value: 0x08
desc: Character set allowed in WiFi pass key
CHARSET_WIFISSID:
value: 0x10
desc: Character set allowed in WiFi ssid
# NUMBER LIMITS
DATA8_MIN:
value: -127
desc: DATA8 negative limit
DATA8_MAX:
value: 127
desc: DATA8 positive limit
DATA16_MIN:
value: -32767
desc: DATA16 negative limit
DATA16_MAX:
value: 32767
desc: DATA16 positive limit
DATA32_MIN:
value: -2147483647
desc: DATA32 negative limit
DATA32_MAX:
value: 2147483647
desc: DATA32 positive limit
DATAF_MIN:
value: -2147483647
desc: DATAF negative limit
DATAF_MAX:
value: 2147483647
desc: DATAF positive limit
DATA8_NAN:
value: 0x80
DATA16_NAN:
value: 0x8000
DATA32_NAN:
value: 0x80000000
DATAF_NAN:
value: 0x7FC00000
#
PULSE_GUI_BACKGROUND:
value: 0x01
PULSE_BROWSER:
value: 0x02
PULSE_KEY:
value: 0x04
# GRAPHICS
POP3_ABS_X:
value: 16
POP3_ABS_Y:
value: 50
POP3_ABS_WARN_ICON_X:
value: 64
POP3_ABS_WARN_ICON_X1:
value: 40
POP3_ABS_WARN_ICON_X2:
value: 72
POP3_ABS_WARN_ICON_X3:
value: 104
POP3_ABS_WARN_ICON_Y:
value: 60
POP3_ABS_WARN_SPEC_ICON_X:
value: 88
POP3_ABS_WARN_SPEC_ICON_Y:
value: 60
POP3_ABS_WARN_TEXT_X:
value: 80
POP3_ABS_WARN_TEXT_Y:
value: 68
POP3_ABS_WARN_YES_X:
value: 72
POP3_ABS_WARN_YES_Y:
value: 90
POP3_ABS_WARN_LINE_X:
value: 21
POP3_ABS_WARN_LINE_Y:
value: 89
POP3_ABS_WARN_LINE_ENDX:
value: 155
enums:
TYPE: &TYPE
desc: Type values for byte codes
members:
MODE_KEEP:
desc: Mode value that won't change mode in byte codes (convenient place to define)
value: -1
TYPE_KEEP:
desc: Type value that won't change type in byte codes
value: 0
TYPE_NXT_TOUCH:
desc: Device is NXT touch sensor
value: 1
TYPE_NXT_LIGHT:
desc: Device is NXT light sensor
value: 2
TYPE_NXT_SOUND:
desc: Device is NXT sound sensor
value: 3
TYPE_NXT_COLOR:
desc: Device is NXT color sensor
value: 4
TYPE_NXT_ULTRASONIC:
desc: Device is NXT ultra sonic sensor
value: 5
TYPE_NXT_TEMPERATURE:
desc: Device is NXT temperature sensor
value: 6
TYPE_TACHO:
desc: Device is EV3/NXT tacho motor
value: 7
TYPE_MINITACHO:
desc: Device is EV3 mini tacho motor
value: 8
TYPE_NEWTACHO:
desc: Device is EV3 new tacho motor
value: 9
TYPE_TOUCH:
desc: Device is EV3 touch sensor
value: 16
TYPE_COLOR:
desc: Device is EV3 color sensor
value: 29
TYPE_ULTRASONIC:
desc: Device is EV3 ultra sonic sensor
value: 30
TYPE_GYRO:
desc: Device is EV3 gyro sensor
value: 32
TYPE_IR:
desc: Device is EV3 IR sensor
value: 33
TYPE_THIRD_PARTY_START:
value: 50
TYPE_THIRD_PARTY_END:
value: 98
TYPE_ENERGYMETER:
desc: Device is energy meter
value: 99
TYPE_IIC_UNKNOWN:
desc: Device type is not known yet
value: 100
TYPE_NXT_TEST:
desc: Device is a NXT ADC test sensor
value: 101
TYPE_NXT_IIC:
desc: Device is NXT IIC sensor
value: 123
TYPE_TERMINAL:
desc: Port is connected to a terminal
value: 124
TYPE_UNKNOWN:
desc: Port not empty but type has not been determined
value: 125
TYPE_NONE:
desc: Port empty or not available
value: 126
TYPE_ERROR:
desc: Port not empty and type is invalid
value: 127
SLOT: &SLOT
desc: Program ID's (Slots)
members:
GUI_SLOT:
desc: Program slot reserved for executing the user interface
value: 0
USER_SLOT:
desc: Program slot used to execute user projects, apps and tools
value: 1
CMD_SLOT:
desc: Program slot used for direct commands coming from c_com
value: 2
TERM_SLOT:
desc: Program slot used for direct commands coming from c_ui
value: 3
DEBUG_SLOT:
desc: Program slot used to run the debug ui
value: 4
SLOTS:
desc: Maximum slots supported by the VM
value: 5
CURRENT_SLOT:
value: -1
remarks: ONLY VALID IN opPROGRAM_STOP
BUTTONTYPE: &BUTTONTYPE
desc: Button
members:
NO_BUTTON:
value: 0
UP_BUTTON:
value: 1
ENTER_BUTTON:
value: 2
DOWN_BUTTON:
value: 3
RIGHT_BUTTON:
value: 4
LEFT_BUTTON:
value: 5
BACK_BUTTON:
value: 6
ANY_BUTTON:
value: 7
BUTTONTYPES:
value: 8
BROWSERTYPE: &BROWSERTYPE
desc: Browser Types Avaliable
members:
BROWSE_FOLDERS:
desc: Browser for folders
value: 0
BROWSE_FOLDS_FILES:
desc: Browser for folders and files
value: 1
BROWSE_CACHE:
desc: Browser for cached / recent files
value: 2
BROWSE_FILES:
desc: Browser for files
value: 3
BROWSERTYPES:
desc: Maximum browser types supported by the VM
value: 4
FONTTYPE: &FONTTYPE
desc: Font Types Avaliable
members:
NORMAL_FONT:
value: 0
SMALL_FONT:
value: 1
LARGE_FONT:
value: 2
TINY_FONT:
value: 3
FONTTYPES:
desc: Maximum font types supported by the VM
value: 4
ICONTYPE: &ICONTYPE
desc: Icon Types Avaliable
members:
NORMAL_ICON:
desc: 24x12_Files_Folders_Settings.bmp
value: 0
SMALL_ICON:
value: 1
LARGE_ICON:
desc: 24x22_Yes_No_OFF_FILEOps.bmp
value: 2
MENU_ICON:
value: 3
ARROW_ICON:
desc: 8x12_miniArrows.bmp
value: 4
ICONTYPES:
desc: Maximum icon types supported by the VM
value: 5
S_ICON_NO: &S_ICON_NO
members:
SICON_CHARGING:
value: 0
SICON_BATT_4:
value: 1
SICON_BATT_3:
value: 2
SICON_BATT_2:
value: 3
SICON_BATT_1:
value: 4
SICON_BATT_0:
value: 5
SICON_WAIT1:
value: 6
SICON_WAIT2:
value: 7
SICON_BT_ON:
value: 8
SICON_BT_VISIBLE:
value: 9
SICON_BT_CONNECTED:
value: 10
SICON_BT_CONNVISIB:
value: 11
SICON_WIFI_3:
value: 12
SICON_WIFI_2:
value: 13
SICON_WIFI_1:
value: 14
SICON_WIFI_CONNECTED:
value: 15
SICON_USB:
value: 21
S_ICON_NOS:
value: 22
N_ICON_NO: &N_ICON_NO
members:
ICON_NONE:
value: -1
ICON_RUN:
value: 0
ICON_FOLDER:
value: 1
ICON_FOLDER2:
value: 2
ICON_USB:
value: 3
ICON_SD:
value: 4
ICON_SOUND:
value: 5
ICON_IMAGE:
value: 6
ICON_SETTINGS:
value: 7
ICON_ONOFF:
value: 8
ICON_SEARCH:
value: 9
ICON_WIFI:
value: 10
ICON_CONNECTIONS:
value: 11
ICON_ADD_HIDDEN:
value: 12
ICON_TRASHBIN:
value: 13
ICON_VISIBILITY:
value: 14
ICON_KEY:
value: 15
ICON_CONNECT:
value: 16
ICON_DISCONNECT:
value: 17
ICON_UP:
value: 18
ICON_DOWN:
value: 19
ICON_WAIT1:
value: 20
ICON_WAIT2:
value: 21
ICON_BLUETOOTH:
value: 22
ICON_INFO:
value: 23
ICON_TEXT:
value: 24
ICON_QUESTIONMARK:
value: 27
ICON_INFO_FILE:
value: 28
ICON_DISC:
value: 29
ICON_CONNECTED:
value: 30
ICON_OBP:
value: 31
ICON_OBD:
value: 32
ICON_OPENFOLDER:
value: 33
ICON_BRICK1:
value: 34
N_ICON_NOS:
value: 35
L_ICON_NO: &L_ICON_NO
members:
YES_NOTSEL:
value: 0
YES_SEL:
value: 1
NO_NOTSEL:
value: 2
NO_SEL:
value: 3
"OFF":
value: 4
WAIT_VERT:
value: 5
WAIT_HORZ:
value: 6
TO_MANUAL:
value: 7
WARNSIGN:
value: 8
WARN_BATT:
value: 9
WARN_POWER:
value: 10
WARN_TEMP:
value: 11
NO_USBSTICK:
value: 12
TO_EXECUTE:
value: 13
TO_BRICK:
value: 14
TO_SDCARD:
value: 15
TO_USBSTICK:
value: 16
TO_BLUETOOTH:
value: 17
TO_WIFI:
value: 18
TO_TRASH:
value: 19
TO_COPY:
value: 20
TO_FILE:
value: 21
CHAR_ERROR:
value: 22
COPY_ERROR:
value: 23
PROGRAM_ERROR:
value: 24
WARN_MEMORY:
value: 27
L_ICON_NOS:
value: 28
M_ICON_NO: &M_ICON_NO
members:
ICON_STAR:
value: 0
ICON_LOCKSTAR:
value: 1
ICON_LOCK:
value: 2
ICON_PC:
value: 3
desc: Bluetooth type PC
ICON_PHONE:
value: 4
desc: Bluetooth type PHONE
ICON_BRICK:
value: 5
desc: Bluetooth type BRICK
ICON_UNKNOWN:
value: 6
desc: Bluetooth type UNKNOWN
ICON_FROM_FOLDER:
value: 7
ICON_CHECKBOX:
value: 8
ICON_CHECKED:
value: 9
ICON_XED:
value: 10
M_ICON_NOS:
value: 11
A_ICON_NO: &A_ICON_NO
members:
ICON_LEFT:
value: 1
ICON_RIGHT:
value: 2
A_ICON_NOS:
value: 3
BTTYPE: &BTTYPE
desc: Bluetooth Device Types
members:
BTTYPE_PC:
desc: Bluetooth type PC
value: 3
BTTYPE_PHONE:
desc: Bluetooth type PHONE
value: 4
BTTYPE_BRICK:
desc: Bluetooth type BRICK
value: 5
BTTYPE_UNKNOWN:
desc: Bluetooth type UNKNOWN
value: 6
BTTYPES:
value: 7
LEDPATTERN: &LEDPATTERN
desc: LED Pattern
members:
LED_BLACK:
value: 0
LED_GREEN:
value: 1
LED_RED:
value: 2
LED_ORANGE:
value: 3
LED_GREEN_FLASH:
value: 4
LED_RED_FLASH:
value: 5
LED_ORANGE_FLASH:
value: 6
LED_GREEN_PULSE:
value: 7
LED_RED_PULSE:
value: 8
LED_ORANGE_PULSE:
value: 9
LEDPATTERNS:
value: 10
LEDTYPE: &LEDTYPE
members:
LED_ALL:
value: 0
desc: All LEDs
LED_RR:
value: 1
desc: Right red
LED_RG:
value: 2
desc: Right green
LED_LR:
value: 3
desc: Left red
LED_LG:
value: 4
desc: Left green
FILETYPE: &FILETYPE
desc: File Types Avaliable
members:
FILETYPE_UNKNOWN:
value: 0x00
TYPE_FOLDER:
value: 0x01
TYPE_SOUND:
value: 0x02
TYPE_BYTECODE:
value: 0x03
TYPE_GRAPHICS:
value: 0x04
TYPE_DATALOG:
value: 0x05
TYPE_PROGRAM:
value: 0x06
TYPE_TEXT:
value: 0x07
TYPE_SDCARD:
value: 0x10
TYPE_USBSTICK:
value: 0x20
FILETYPES:
value: 0x21
TYPE_RESTART_BROWSER:
value: -1
TYPE_REFRESH_BROWSER:
value: -2
RESULT: &RESULT
desc: Describes result from executing functions
members:
OK:
desc: No errors to report
value: 0
BUSY:
desc: Busy - try again
value: 1
FAIL:
desc: Something failed
value: 2
STOP:
desc: Stopped
value: 4
START:
desc: Start
value: 8
DATA_FORMAT: &DATA_FORMAT
desc: Data formats used in device type formats
members:
DATA_8:
desc: DATA8
value: 0x00
DATA_16:
desc: DATA16
value: 0x01
DATA_32:
desc: DATA32
value: 0x02
DATA_F:
desc: DATAF
value: 0x03
DATA_S:
desc: Zero terminated string
value: 0x04
DATA_A:
desc: Array handle
value: 0x05
DATA_V:
desc: Variable type
value: 0x07
DATA_PCT:
desc: Percent
value: 0x10
DATA_RAW:
desc: Raw
value: 0x12
DATA_SI:
desc: SI unit
value: 0x13
DATA_FORMATS:
value: 0x14
DEL: &DEL
desc: Delimiter codes used to define how data is separated in files
members:
DEL_NONE:
desc: No delimiter at all
value: 0
DEL_TAB:
desc: Use tab as delimiter
value: 1
DEL_SPACE:
desc: Use space as delimiter
value: 2
DEL_RETURN:
desc: Use return as delimiter
value: 3
DEL_COLON:
desc: Use colon as delimiter
value: 4
DEL_COMMA:
desc: Use comma as delimiter
value: 5
DEL_LINEFEED:
desc: Use line feed as delimiter
value: 6
DEL_CRLF:
desc: Use return+line feed as delimiter
value: 7
DELS:
value: 8
HWTYPE: &HWTYPE
desc: Hardware Transport Layer
members:
HW_USB:
value: 1
HW_BT:
value: 2
HW_WIFI:
value: 3
HWTYPES:
value: 4
ENCRYPT: &ENCRYPT
desc: Encryption Types
members:
ENCRYPT_NONE:
value: 0
ENCRYPT_WPA2:
value: 1
ENCRYPTS:
value: 2
support:
official: true
xtended: false
compat: true
LMS_ENCRYPT: &LMS_ENCRYPT
desc: Encryption Types
members:
LMS_ENCRYPT_NONE:
value: 0
remarks: renamed from ENCRYPT_NONE
LMS_ENCRYPT_WPA2:
value: 1
remarks: renamed from ENCRYPT_WPA2
LMS_ENCRYPTS:
value: 2
support:
official: false
xtended: true
compat: false
remarks: renamed from ENCRYPT
COLOR: &COLOR
members:
RED:
value: 0
GREEN:
value: 1
BLUE:
value: 2
BLANK:
value: 3
COLORS:
value: 4
NXTCOLOR: &NXTCOLOR
desc: Constants related to color sensor value using Color sensor as color detector
members:
BLACKCOLOR:
value: 1
BLUECOLOR:
value: 2
GREENCOLOR:
value: 3
YELLOWCOLOR:
value: 4
REDCOLOR:
value: 5
WHITECOLOR:
value: 6
WARNING: &WARNING
desc: Warnings
members:
WARNING_TEMP:
value: 0x01
WARNING_CURRENT:
value: 0x02
WARNING_VOLTAGE:
value: 0x04
WARNING_MEMORY:
value: 0x08
WARNING_DSPSTAT:
value: 0x10
WARNING_RAM:
value: 0x20
WARNING_BATTLOW:
value: 0x40
WARNING_BUSY:
value: 0x80
WARNINGS:
value: 0x3F
OBJSTAT: &OBJSTAT
desc: Values used to describe an object's status
members:
RUNNING:
value: 0x0010
desc: Object code is running
WAITING:
value: 0x0020
desc: Object is waiting for final trigger
STOPPED:
value: 0x0040
desc: Object is stopped or not triggered yet
HALTED:
value: 0x0080
desc: Object is halted because a call is in progress
DEVCMD: &DEVCMD
desc: Device commands used to control (UART sensors) devices
members:
DEVCMD_RESET:
value: 0x11
desc: UART device reset
DEVCMD_FIRE:
value: 0x11
desc: UART device fire (ultrasonic)
support:
official: true
xtended: true
compat: false
remarks: Value is duplicate of DEVCMD_RESET.
DEVCMD_CHANNEL:
value: 0x12
desc: UART device channel (IR seeker)
DEVCMDS:
value: 0x13
CONN: &CONN
desc: Connection types
members:
CONN_UNKNOWN:
desc: Connection is fake (test)
value: 111
CONN_DAISYCHAIN:
desc: Connection is daisy chained
value: 117
CONN_NXT_COLOR:
desc: Connection type is NXT color sensor
value: 118
CONN_NXT_DUMB: