Professional Documents
Culture Documents
CONTENTS
Contents
1 2 3 NBC Programmers Guide Introduction The NBC Language 3.1 Lexical Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . Whitespace . . . . . . . . . . . . . . . . . . . . . . . . . . . Numerical Constants . . . . . . . . . . . . . . . . . . . . . . String Constants . . . . . . . . . . . . . . . . . . . . . . . . Identiers and Keywords . . . . . . . . . . . . . . . . . . . . 1 2 2 3 3 4 4 5 5 6 7 8 10 10 18 18 19 19 20 20 21 21 22 23 24 25 35 37
Program Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 3.2.2 3.2.3 3.2.4 Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . Data Segments . . . . . . . . . . . . . . . . . . . . . . . . .
3.3
The Preprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 #include . . . . . . . . . . . . . . . . . . . . . . . . . . . . . #dene . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ## (Concatenation) . . . . . . . . . . . . . . . . . . . . . . . Conditional Compilation . . . . . . . . . . . . . . . . . . . . #import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . #download . . . . . . . . . . . . . . . . . . . . . . . . . . .
Compiler Tokens . . . . . . . . . . . . . . . . . . . . . . . . . . . . Expression Evaluator . . . . . . . . . . . . . . . . . . . . . . . . . . Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.1 3.6.2 3.6.3 3.6.4 Assignment Statements . . . . . . . . . . . . . . . . . . . . . Math Statements . . . . . . . . . . . . . . . . . . . . . . . . Logic Statements . . . . . . . . . . . . . . . . . . . . . . . . Bit Manipulation Statements . . . . . . . . . . . . . . . . . .
CONTENTS
ii
Comparison Statements . . . . . . . . . . . . . . . . . . . . Control Flow Statements . . . . . . . . . . . . . . . . . . . . syscall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timing Statements . . . . . . . . . . . . . . . . . . . . . . . Array Statements . . . . . . . . . . . . . . . . . . . . . . . .
39 40 41 57 59 61 64 68 68 69 72 72 72 72 73 74 74 75 75 76 76 77 77 78 78 78 79 79 80 80
3.6.10 String Statements . . . . . . . . . . . . . . . . . . . . . . . . 3.6.11 Scheduling Statements . . . . . . . . . . . . . . . . . . . . . 3.6.12 Input Statements . . . . . . . . . . . . . . . . . . . . . . . . 3.6.13 Output Statements . . . . . . . . . . . . . . . . . . . . . . . 3.6.14 Compile-time Statements . . . . . . . . . . . . . . . . . . . . 4 Module Documentation 4.1 Comparison Constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 4.1.2 4.2 Detailed Description . . . . . . . . . . . . . . . . . . . . . . Dene Documentation . . . . . . . . . . . . . . . . . . . . .
4.3
4.4
4.5
4.6
4.7
4.8
4.9
CONTENTS
iii
4.9.1 4.9.2
81 81 81 82 82 83 83 83 83 84 84 84 85 85 85 86 87 87 87 97 97 128 145 145 203 205 205 211 212 212 213
4.10 Comm module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.11 Button module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.12 IOCtrl module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.12.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.13 Loader module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.13.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.14 Sound module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.14.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.15 Ui module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.15.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.16 Low Speed module . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.16.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.17 Display module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.17.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.18 HiTechnic API Functions . . . . . . . . . . . . . . . . . . . . . . . . 4.18.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.18.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.19 MindSensors API Functions . . . . . . . . . . . . . . . . . . . . . . 4.19.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.19.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.20 RIC Macro Wrappers . . . . . . . . . . . . . . . . . . . . . . . . . . 4.20.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.20.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.21 NXT rmware module names . . . . . . . . . . . . . . . . . . . . . 4.21.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.21.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.22 NXT rmware module IDs . . . . . . . . . . . . . . . . . . . . . . .
CONTENTS
iv
4.22.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.22.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.23 Miscellaneous NBC/NXC constants . . . . . . . . . . . . . . . . . . 4.23.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.23.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.24 Third-party NXT devices . . . . . . . . . . . . . . . . . . . . . . . . 4.24.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.25 Standard-C API functions . . . . . . . . . . . . . . . . . . . . . . . . 4.25.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.26 A simple 3D graphics library . . . . . . . . . . . . . . . . . . . . . . 4.26.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.26.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.27 Output module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.27.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.27.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.28 Input module functions . . . . . . . . . . . . . . . . . . . . . . . . . 4.28.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.28.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.29 LowSpeed module functions . . . . . . . . . . . . . . . . . . . . . . 4.29.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.29.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.30 Low level LowSpeed module functions . . . . . . . . . . . . . . . . . 4.30.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.30.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.31 Display module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.31.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.31.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.32 Sound module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.32.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.32.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.33 Command module functions . . . . . . . . . . . . . . . . . . . . . .
213 213 215 215 215 216 216 216 217 217 219 219 225 228 228 245 248 248 260 262 262 272 273 273 277 281 281 297 299 299 305
CONTENTS
4.33.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.33.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.34 Button module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.34.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.34.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.35 Ui module functions . . . . . . . . . . . . . . . . . . . . . . . . . . 4.35.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.35.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.36 Comm module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.36.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.36.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.37 IOCtrl module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.37.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.37.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.38 Loader module functions . . . . . . . . . . . . . . . . . . . . . . . . 4.38.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.38.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.39 cstdlib API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.39.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.39.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.40 cmath API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.40.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.40.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.41 Array operation constants . . . . . . . . . . . . . . . . . . . . . . . . 4.41.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.41.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.42 System Call function constants . . . . . . . . . . . . . . . . . . . . . 4.42.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.42.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.43 Line number constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.43.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .
308 309 324 325 326 329 331 331 338 346 347 380 381 381 381 384 384 393 393 394 394 394 394 395 395 395 396 398 398 405 405
CONTENTS
vi
4.43.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.44 Time constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.44.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.44.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.45 Mailbox constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.45.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.45.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.46 VM state constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.46.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.46.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.47 Fatal errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.47.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.47.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.48 General errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.48.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.48.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.49 Communications specic errors . . . . . . . . . . . . . . . . . . . . 4.49.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.49.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.50 Remote control (direct commands) errors . . . . . . . . . . . . . . . 4.50.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.50.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.51 Program status constants . . . . . . . . . . . . . . . . . . . . . . . . 4.51.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.51.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.52 Command module IOMAP offsets . . . . . . . . . . . . . . . . . . . 4.52.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.52.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.53 IOCtrl module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.53.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.54 PowerOn constants . . . . . . . . . . . . . . . . . . . . . . . . . . .
405 406 407 407 412 412 413 414 414 414 415 415 415 417 417 418 418 418 419 419 419 419 420 420 420 421 421 422 423 423 423
CONTENTS
vii
4.54.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.54.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.55 IOCtrl module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.55.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.55.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.56 Loader module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.56.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.56.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.57 Loader module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.57.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.57.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.58 Loader module error codes . . . . . . . . . . . . . . . . . . . . . . . 4.58.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.58.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.59 Loader module function constants . . . . . . . . . . . . . . . . . . . 4.59.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.59.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.60 Sound module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.60.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.61 SoundFlags constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.61.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.61.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.62 SoundState constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.62.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.62.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.63 SoundMode constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.63.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.63.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.64 Sound module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.64.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.64.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . .
424 424 424 424 424 425 425 425 425 426 426 426 427 427 430 431 431 434 435 435 435 436 436 436 436 437 437 437 438 438 438
CONTENTS
viii
4.65 Sound module miscellaneous constants . . . . . . . . . . . . . . . . . 4.65.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.65.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.66 Tone constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.66.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.66.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.67 Button module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.67.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.68 Button name constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.68.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.68.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.69 ButtonState constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.69.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.69.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.70 Button module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.70.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.70.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.71 Ui module constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.71.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.72 CommandFlags constants . . . . . . . . . . . . . . . . . . . . . . . . 4.72.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.72.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.73 UIState constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.73.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.73.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.74 UIButton constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.74.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.74.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.75 BluetoothState constants . . . . . . . . . . . . . . . . . . . . . . . . 4.75.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.75.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . .
439 439 439 440 441 441 447 447 447 447 448 449 449 449 450 450 450 451 452 452 452 452 453 454 454 456 456 456 457 457 457
CONTENTS
ix
4.76 VM run state constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.76.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.76.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.77 Ui module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . . . 4.77.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.77.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.78 NBC Input port constants . . . . . . . . . . . . . . . . . . . . . . . . 4.78.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.78.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.79 NBC sensor type constants . . . . . . . . . . . . . . . . . . . . . . . 4.79.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.79.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.80 NBC sensor mode constants . . . . . . . . . . . . . . . . . . . . . . 4.80.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.80.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.81 Input eld constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.81.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.81.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.82 Color sensor array indices . . . . . . . . . . . . . . . . . . . . . . . 4.82.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.82.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.83 Color values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.83.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.83.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.84 Color calibration state constants . . . . . . . . . . . . . . . . . . . . 4.84.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.84.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.85 Color calibration constants . . . . . . . . . . . . . . . . . . . . . . . 4.85.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.85.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.86 Input module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . .
458 458 458 459 459 460 461 462 462 462 463 463 465 466 466 467 467 467 468 468 469 469 469 470 470 471 471 471 472 472 472
CONTENTS
4.86.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.86.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.87 Output port constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.87.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.87.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.88 PID constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.88.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.88.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.89 Output port update ag constants . . . . . . . . . . . . . . . . . . . . 4.89.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.89.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.90 Tachometer counter reset ags . . . . . . . . . . . . . . . . . . . . . 4.90.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.90.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.91 Output port mode constants . . . . . . . . . . . . . . . . . . . . . . . 4.91.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.91.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.92 Output port option constants . . . . . . . . . . . . . . . . . . . . . . 4.92.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.92.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.93 Output port run state constants . . . . . . . . . . . . . . . . . . . . . 4.93.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.93.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.94 Output port regulation mode constants . . . . . . . . . . . . . . . . . 4.94.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.94.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.95 Output eld constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.95.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.95.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.96 Output module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.96.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .
473 473 475 475 476 476 477 477 478 478 478 479 480 480 480 481 481 482 482 482 482 483 483 483 484 484 484 486 486 490 491
CONTENTS
xi
4.96.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.97 LowSpeed module constants . . . . . . . . . . . . . . . . . . . . . . 4.97.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.98 LSState constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.98.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.98.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.99 LSChannelState constants . . . . . . . . . . . . . . . . . . . . . . . 4.99.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.99.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.100LSMode constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.100.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.100.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.101LSErrorType constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.101.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.101.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.102Low speed module IOMAP offsets . . . . . . . . . . . . . . . . . . . 4.102.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.102.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.103LSNoRestartOnRead constants . . . . . . . . . . . . . . . . . . . . . 4.103.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.103.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.104Standard I2C constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.104.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.104.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.105Ultrasonic sensor constants . . . . . . . . . . . . . . . . . . . . . . . 4.105.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.105.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.106Temperature sensor constants . . . . . . . . . . . . . . . . . . . . . . 4.106.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.106.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.107Display module constants . . . . . . . . . . . . . . . . . . . . . . . .
491 493 494 494 494 494 495 495 495 496 496 496 497 497 497 497 498 498 500 500 500 501 501 501 502 502 502 504 504 504 506
CONTENTS
xii
4.107.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.107.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.108DisplayExecuteFunction constants . . . . . . . . . . . . . . . . . . . 4.108.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.108.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.109Drawing option constants . . . . . . . . . . . . . . . . . . . . . . . . 4.109.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.109.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.110Font drawing option constants . . . . . . . . . . . . . . . . . . . . . 4.110.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.110.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.111Display ags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.111.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.111.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.112Display contrast constants . . . . . . . . . . . . . . . . . . . . . . . 4.112.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.112.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.113Text line constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.113.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.113.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.114Display module IOMAP offsets . . . . . . . . . . . . . . . . . . . . 4.114.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.114.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.115Comm module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.115.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.116Miscellaneous Comm module constants . . . . . . . . . . . . . . . . 4.116.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.116.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.117Bluetooth State constants . . . . . . . . . . . . . . . . . . . . . . . . 4.117.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.117.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . .
508 508 512 513 513 514 514 515 516 517 517 518 518 518 519 519 519 520 520 520 521 522 522 524 525 525 525 526 527 528 528
CONTENTS
xiii
4.118Bluetooth state status constants . . . . . . . . . . . . . . . . . . . . . 4.118.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.118.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.119Bluetooth hardware status constants . . . . . . . . . . . . . . . . . . 4.119.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.119.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.120Hi-speed port constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.120.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.121Hi-speed port ags constants . . . . . . . . . . . . . . . . . . . . . . 4.121.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.121.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.122Hi-speed port state constants . . . . . . . . . . . . . . . . . . . . . . 4.122.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.122.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.123Hi-speed port SysCommHSControl constants . . . . . . . . . . . . . 4.123.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.123.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.124Hi-speed port baud rate constants . . . . . . . . . . . . . . . . . . . . 4.124.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.124.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.125Hi-speed port data bits constants . . . . . . . . . . . . . . . . . . . . 4.125.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.125.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.126Hi-speed port stop bits constants . . . . . . . . . . . . . . . . . . . . 4.126.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.126.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.127Hi-speed port parity constants . . . . . . . . . . . . . . . . . . . . . 4.127.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.127.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.128Hi-speed port combined UART constants . . . . . . . . . . . . . . . 4.128.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .
528 528 528 529 529 529 530 530 530 531 531 531 531 531 532 532 532 533 533 533 535 535 535 536 536 536 536 537 537 537 538
CONTENTS
xiv
4.128.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.129Device status constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.129.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.129.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.130Comm module interface function constants . . . . . . . . . . . . . . 4.130.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.130.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.131Comm module status code constants . . . . . . . . . . . . . . . . . . 4.131.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.131.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.132Comm module IOMAP offsets . . . . . . . . . . . . . . . . . . . . . 4.132.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.132.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.133RCX constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.133.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.134RCX output constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.134.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.134.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.135RCX output mode constants . . . . . . . . . . . . . . . . . . . . . . 4.135.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.135.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.136RCX output direction constants . . . . . . . . . . . . . . . . . . . . . 4.136.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.136.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.137RCX output power constants . . . . . . . . . . . . . . . . . . . . . . 4.137.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.137.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.138RCX IR remote constants . . . . . . . . . . . . . . . . . . . . . . . . 4.138.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.138.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.139RCX and Scout sound constants . . . . . . . . . . . . . . . . . . . .
538 538 538 539 539 540 540 542 542 542 543 545 545 550 550 551 551 551 552 552 552 552 553 553 553 553 554 554 554 555 556
CONTENTS
xv
4.139.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.139.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.140Scout constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.140.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.141Scout light constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.141.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.141.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.142Scout sound constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.142.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.142.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.143Scout sound set constants . . . . . . . . . . . . . . . . . . . . . . . . 4.143.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.143.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.144Scout mode constants . . . . . . . . . . . . . . . . . . . . . . . . . . 4.144.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.144.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.145Scout motion rule constants . . . . . . . . . . . . . . . . . . . . . . . 4.145.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.145.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.146Scout touch rule constants . . . . . . . . . . . . . . . . . . . . . . . 4.146.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.146.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.147Scout light rule constants . . . . . . . . . . . . . . . . . . . . . . . . 4.147.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.147.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.148Scout transmit rule constants . . . . . . . . . . . . . . . . . . . . . . 4.148.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.148.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.149Scout special effect constants . . . . . . . . . . . . . . . . . . . . . . 4.149.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.149.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . .
557 557 558 558 558 559 559 559 560 560 562 562 563 563 563 564 564 564 564 565 565 566 566 566 567 567 567 568 568 568 568
CONTENTS
xvi
4.150RCX and Scout source constants . . . . . . . . . . . . . . . . . . . . 4.150.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.150.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.151RCX and Scout opcode constants . . . . . . . . . . . . . . . . . . . . 4.151.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.151.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.152HiTechnic/mindsensors Power Function/IR Train constants . . . . . . 4.152.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.153Power Function command constants . . . . . . . . . . . . . . . . . . 4.153.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.153.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.154Power Function channel constants . . . . . . . . . . . . . . . . . . . 4.154.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.154.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.155Power Function mode constants . . . . . . . . . . . . . . . . . . . . 4.155.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.155.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.156PF/IR Train function constants . . . . . . . . . . . . . . . . . . . . . 4.156.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.156.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.157IR Train channel constants . . . . . . . . . . . . . . . . . . . . . . . 4.157.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.157.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.158Power Function output constants . . . . . . . . . . . . . . . . . . . . 4.158.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.158.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.159Power Function pin constants . . . . . . . . . . . . . . . . . . . . . . 4.159.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.159.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.160Power Function single pin function constants . . . . . . . . . . . . . 4.160.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .
569 570 570 574 576 576 584 584 585 585 585 585 586 586 586 587 587 588 588 588 588 589 589 589 590 590 590 590 590 590 591
CONTENTS
xvii
4.160.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.161Power Function CST options constants . . . . . . . . . . . . . . . . . 4.161.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.161.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.162Power Function PWM option constants . . . . . . . . . . . . . . . . 4.162.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.162.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.163HiTechnic device constants . . . . . . . . . . . . . . . . . . . . . . . 4.163.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.164HiTechnic IRSeeker2 constants . . . . . . . . . . . . . . . . . . . . . 4.164.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.164.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.165HiTechnic IRReceiver constants . . . . . . . . . . . . . . . . . . . . 4.165.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.165.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.166HiTechnic Color2 constants . . . . . . . . . . . . . . . . . . . . . . . 4.166.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.166.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.167MindSensors device constants . . . . . . . . . . . . . . . . . . . . . 4.167.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.167.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.168MindSensors DIST-Nx constants . . . . . . . . . . . . . . . . . . . . 4.168.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.168.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.169MindSensors PSP-Nx constants . . . . . . . . . . . . . . . . . . . . 4.169.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.169.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.170MindSensors PSP-Nx button set 1 constants . . . . . . . . . . . . . . 4.170.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.170.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.171MindSensors PSP-Nx button set 2 constants . . . . . . . . . . . . . .
591 591 592 592 593 593 593 595 595 596 596 596 598 598 598 599 600 600 601 601 602 602 602 603 604 605 605 606 606 606 607
4.171.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.171.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.172MindSensors nRLink constants . . . . . . . . . . . . . . . . . . . . . 4.172.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.172.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.173Data type limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.173.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.173.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.174Graphics library begin modes . . . . . . . . . . . . . . . . . . . . . . 4.174.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.174.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.175Graphics library actions . . . . . . . . . . . . . . . . . . . . . . . . . 4.175.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.175.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.176Graphics library settings . . . . . . . . . . . . . . . . . . . . . . . . 4.176.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.176.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 4.177Graphics library cull mode . . . . . . . . . . . . . . . . . . . . . . . 4.177.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . . 4.177.2 Dene Documentation . . . . . . . . . . . . . . . . . . . . . 5 File Documentation 5.1 NBCAPIDocs.h File Reference . . . . . . . . . . . . . . . . . . . . . 5.1.1 5.2 Detailed Description . . . . . . . . . . . . . . . . . . . . . .
607 607 608 608 609 610 611 611 612 613 613 613 614 614 615 615 615 616 616 616 616 616 616 617 651 651
2 Introduction
Introduction
Introduction NBC stands for NeXT Byte Codes. It is a simple language for programming the LEGO MINDSTORMS NXT product. The NXT has a byte-code interpreter (provided by LEGO), which can be used to execute programs. The NBC compiler translates a source program into LEGO NXT byte-codes, which can then be executed on the NXT itself. Although the preprocessor and format of NBC programs are similar to assembly, NBC is not a general-purpose assembly language - there are many restrictions that stem from limitations of the LEGO byte-code interpreter. Logically, NBC is dened as two separate pieces. The NBC language describes the syntax to be used in writing programs. The NBC Application Programming Interface (API) describes the system functions, constants, and macros that can be used by programs. This API is dened in a special le known as a "header le" which is automatically included at the beginning of any NBC program. This document describes both the NBC language and the NBC API. In short, it provides the information needed to write NBC programs. Since there are different interfaces for NBC, this document does not describe how to use any specic NBC implementation (such as the command-line compiler or Bricx Command Center). Refer to the documentation provided with the NBC tool, such as the NBC User Manual, for information specic to that implementation. For up-to-date information and documentation for NBC, visit the NBC website at http://bricxcc.sourceforge.net/nbc/.
The NBC Language This section describes the NBC language itself. This includes the lexical rules used by the compiler, the structure programs, statements, and expressions, and the operation of the preprocessor. Unlike some assembly languages, NBC is a case-sensitive language. That means that the identier "xYz" is not the same identier as "Xyz". Similarly, the subtract statement
3.1
Lexical Rules
begins with the keyword "sub" but "suB", "Sub", or "SUB" are all just valid identiers - not keywords. Lexical Rules Program Structure The Preprocessor Compiler Tokens Expression Evaluator Statements
3.1
Lexical Rules
Lexical Rules The lexical rules describe how NBC breaks a source le into individual tokens. This includes the way comments are written, then handling of whitespace, and valid characters for identiers. Comments Whitespace Numerical Constants String Constants Identiers and Keywords 3.1.1 Comments
Comments Three forms of comments are supported in NBC. The rst form (traditional C comments) begin with / and end with /. These comments are allowed to span multiple lines, but they cannot be nested.
/* this is a comment */ /* this is a two line comment */ /* another comment... /* trying to nest... ending the inner comment...*/ this text is no longer a comment! */
3.1
Lexical Rules
The second form of comments supported in NXBC begins with // and continues to the end of the current line. These are sometimes known as C++ style comments.
// a single line comment
The third form of comments begins with ; and ends with a newline. This form is the traditional assembly language style comments.
; another single line comment
As you might guess, the compiler ignores comments. Their only purpose is to allow the programmer to document the source code. 3.1.2 Whitespace
Whitespace Whitespace consists of all spaces, tabs, and newlines. It is used to separate tokens and to make a program more readable. As long as the tokens are distinguishable, adding or subtracting whitespace has no effect on the meaning of a program. For example, the following lines of code both have the same meaning:
set x,2 set x, 2
Generally, whitespace is ignored outside of string constants and constant numeric expressions. However, unlike in C, NBC statements may not span multiple lines. Aside from pre-processor macros invocations, each statement in an NBC program must begin and end on the same line.
add x, x, 2 // okay add x, // error x, 2 // error set x, (2*2)+43-12 // okay set x, 2 * 2 // error (constant expression contains whitespace)
The exception to this rule is if you end a line with the \ character which makes the NBC parser continue the current statement on the next line just like with preprocessor macros.
add x, \ x, 2 // okay
3.1.3
Numerical Constants
Numerical Constants Numerical constants may be written in either decimal or hexadecimal form. Decimal constants consist of one or more decimal digits. Decimal constants may optionally include a decimal point along with one or more decimal digits following the decimal point. Hexadecimal constants start with 0x or 0X followed by one or more hexadecimal digits.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.1
Lexical Rules
set x, 10 // set x to 10 set x, 0x10 // set x to 16 (10 hex) mov f, 1.5 // set f to 1.5
3.1.4
String Constants
String Constants String constants in NBC are delimited with either single or double quote characters. NBC represents a string as an array of bytes, with the last byte in the array being a zero. The nal zero byte is generally referred to as the null terminator.
TextOut(0, LCD_LINE1, testing)
3.1.5
Identiers and Keywords Identiers are used for variable, task, function, and subroutine names. The rst character of an identier must be an upper or lower case letter or the underscore (_). Remaining characters may be letters, numbers, and underscores. A number of tokens are reserved for use in the NBC language itself. These are called keywords and may not be used as identiers. A complete list of keywords appears below:
3.2
Program Structure
add div xor index arrsubset atten strcat jmp stop release setout gettick follows typedef sbyte sword sdword ulong call strindex shr compelse asl rotl priority oat arrop ceil tanh log10 frac acosd tanhd sinhd
sub mod not replace arrinit unatten strsubset brcmp exit subcall getin thread precedes struct ubyte uword udword void return strreplace sizeof compend asr rotr cmnt wait2 acos exp cos sin atan2 asind cosd atan2d
neg and cmp arrsize mov numtostr strtoarr brtst exitto subret getout endt segment db dw dd long mutex abs strlen compchk lsl start fmtnum sqrt asin oor cosh sinh pow atand coshd addrof
mul or tst arrbuild set strtonum arrtostr syscall acquire setin wait subroutine ends byte word dword slong waitv sign shl compif isconst lsr stopthread compchktype waitv atan tan log trunc muldiv tand sind
3.2
Program Structure
Program Structure An NBC program is composed of code blocks and global variables in data segments. There are two primary types of code blocks: thread and subroutines. Each of these types of code blocks has its own unique features and restrictions, but they share a common structure. A third type of code block is the preprocessor macro function. This code block type is used throughout the NBC API. Macro functions are the only type of code block, which
3.2
Program Structure
use a parameter passing syntax similar to what you might see in a language like C or Pascal. Data segment blocks are used to dene types and to declare variables. An NBC program can have zero or more data segments, which can be placed either outside of a code block or within a code block. Regardless of the location of the data segment, all variables in an NBC program are global. Threads Subroutines Macro Functions Data Segments 3.2.1 Threads
Threads The NXT implicitly supports multi-threading, thus an NBC thread directly corresponds to an NXT thread. Threads are dened using the thread keyword with the following syntax:
thread name // the threads code is placed here endt
The name of the thread may be any legal identier. A program must always have at least one thread. If there is a thread named "main" then that thread will be the thread that is started whenever the program is run. If none of the threads are named "main" then the very rst thread that the compiler encounters in the source code will be the main thread. The maximum number of threads supported by the NXT is 256. The body of a thread consists of a list of statements and optional data segments. Threads may be started by scheduling dependant threads using the precedes or follows statements. You may also start a thread using the start statement. With the standard NXT rmware threads cannot be stopped by another thread. The only way to stop a thread is by stopping all threads using the stop statement or by a thread stopping on its own via the exit and exitto statements. Using the NBC/NBC enhanced rmware you can also stop another thread using the stopthread statement.
thread main precedes waiter, worker // thread body goes here // finalize this thread and schedule the threads in the // specified range to execute exit // all dependants are automatically scheduled endt thread waiter // thread body goes here
3.2
Program Structure
//
exit // exit is optional due to smart compiler finalization endt thread worker precedes waiter // thread body goes here exit // only one dependent - schedule it to execute endt
3.2.2
Subroutines
Subroutines Subroutines allow a single copy of some code to be shared between several different callers. This makes subroutines much more space efcient than macro functions. Subroutines are dened using the subroutine keyword with the following syntax:
subroutine name // body of subroutine return // subroutines must end with a return statement ends
A subroutine is just a special type of thread that is designed to be called explicitly by other threads or subroutines. Its name can be any legal identier. Subroutines are not scheduled to run via the same mechanism that is used with threads. Instead, subroutines and threads execute other subroutines by using the call statement (described in the Statements section).
thread main // body of main thread goes here call mySub // compiler handles subroutine return address exit // finalize execution (details handled by the compiler) endt subroutine mySub // body of subroutine goes here return // compiler handles the subroutine return address ends
3.2
Program Structure
You can pass arguments into and out of subroutines using global variables. If a subroutine is designed to be used by concurrently executing threads then calls to the subroutine must be protected by acquiring a mutex prior to the subroutine call and releasing the mutex after the call. You can also call a thread as a subroutine using a slightly different syntax. This technique is required if you want to call a subroutine which executes two threads simultaneously. The subcall and subret statements must be used instead of call and return. You also must provide a global variable to store the return address as shown in the sample code below.
thread main // thread body goes here acquire ssMutex call SharedSub // automatic return address release ssMutex // calling a thread as a subroutine subcall AnotherSub, anothersub_returnaddress exit endt subroutine SharedSub // subroutine body goes here return // return is required as the last operation ends thread AnotherSub // threads can be subroutines too subret anothersub_returnaddress // manual return address endt
After the subroutine completes executing, it returns back to the calling routine and program execution continues with the next statement following the subroutine call. The maximum number of threads and subroutines supported by the NXT rmware is 256. ends 3.2.2.1 ends
End subroutine or data segment. A subroutine denition ends with the ends keyword.
subroutine doStuff // subroutine body goes here ends
3.2
Program Structure
10
3.2.3
Macro Functions
Macro Functions It is often helpful to group a set of statements together into a single function, which can then be called as needed. NBC supports macro functions with arguments. Values may be returned from a macro function by changing the value of one or more of the arguments within the body of the macro function. Macro functions are dened using the following syntax:
#define name(argument_list) \ // body of the macro function \ // last line in macro function body has no \ at the end
Please note that the newline escape character (\) must be the very last character on the line. If it is followed by any whitespace or comments then the macro body is terminated at that point and the next line is not considered to be part of the macro denition. The argument list may be empty, or it may contain one or more argument denitions. An argument to a macro function has no type. Each argument is simply dened by its name. Multiple arguments are separated by commas. Arguments to a macro function can either be inputs (constants or variables) for the code in the body of the function to process or they can be outputs (variables only) for the code to modify and return. The following sample shows how to dene a macro function to simplify the process of drawing text on the NXT LCD screen:
#define MyMacro(x, y, berase, msg) \ mov dtArgs.Location.X, x \ mov dtArgs.Location.Y, y \ mov dtArgs.Options, berase \ mov dtArgs.Text, msg \ syscall DrawText, dtArgs MyMacro(0, 0, TRUE, testing) MyMacro(10, 20, FALSE, Please Work)
NBC macro functions are always expanded inline by the NBC preprocessor. This means that each call to a macro function results in another copy of the functions code being included in the program. Unless used judiciously, inline macro functions can lead to excessive code size. 3.2.4 Data Segments
Data Segments Data segments contain all type denitions and variable declarations. Data segments are dened using the following syntax:
dseg segment // type definitions and variable declarations go here dseg ends
3.2
Program Structure
11
segment You can have multiple data segments in an NBC program. All variables are global regardless of where they are declared. Once declared, they may be used within all threads, subroutines, and macro functions. Their scope begins at the declaration and ends at the end of the program. Type Denitions Structure Denitions Variable Declarations 3.2.4.1 segment
Start a data segment. A data segment starts with the segment keyword.
dseg segment // data definitions go here dseg ends
3.2.4.2
Type Denitions
Type Denitions Type denitions must be contained within a data segment. They are used to dene new type aliases or new aggregate types (i.e., structures). A type alias is dened using the typedef keyword with the following syntax:
type_alias typedef existing_type
The new alias name may be any valid identier. The existing type must be some type already known by the compiler. It can be a native type or a user-dened type. Once a type alias has been dened it can be used in subsequent variable declarations and aggregate type denitions. The following is an example of a simple type alias denition:
big typedef dword // big is now an alias for the dword type
3.2
Program Structure
12
3.2.4.3
Structure Denitions
Structure Denitions Structure denitions must also be contained within a data segment. They are used to dene a type which aggregates or contains other native or user-dened types. A structure denition is dened using the struct and ends keywords with the following syntax:
TypeName struct x byte y byte TypeName ends
Structure denitions allow you to manage related data in a single combined type. They can be as simple or complex as the needs of your program dictate. The following is an example of a fairly complex structure:
MyPoint struct x byte y byte MyPoint ends ComplexStrut struct value1 big value2 sdword buffer byte[] blen word extrastuff MyPoint[] pt_1 MyPoint pt_2 MyPoint ComplexStruct ends
// using a type alias // array of byte // array of structs // struct contains struct instances
3.2.4.4
Variable Declarations
Variable Declarations All variable declarations must be contained within a data segment. They are used to declare variables for use in a code block such as a thread, subroutine, or macro function. A variable is declared using the following syntax:
var_name type_name optional_initialization
The variable name may be any valid identier. The type name must be a type or type alias already known by the compiler. The optional initialization format depends on the variable type, but for non-aggregate (scalar) types the format is simply a constant integer or constant expression (which may not contain whitespace). See the examples later in this section. The NXT rmware supports several different types of variables which are grouped into two categories: scalar types and aggregate types. Scalar types are a single integer value which may be signed or unsigned and occupy one, two, or four bytes of memory. The keywords for declaring variables of a scalar type are listed in the following table:
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.2
Program Structure
13
Type Name byte, ubyte, db sbyte word, uword, dw sword dword, udword, dd sdword long, ulong slong oat mutex
Information 8 bit unsigned 8 bit signed 16 bit unsigned 16 bit signed 32 bit unsigned 32 bit signed 32 bit unsigned (alias for dword, udword) 32 bit signed (alias for sdword) 32 bit IEEE 754 oating point type Special type used for exclusive subroutine access Table 1. Scalar Types
Aggregate variables are either structures or arrays of some other type (either scalar or aggregate). Once a user-dened struct type has been dened it may be used to declare a variable of that type. Similarly, user-dened struct types can be used in array declarations. Arrays and structs may be nested (i.e., contained in other arrays or structures) as deeply as the needs of your program dictate, but nesting deeper than 2 or 3 levels may lead to slower program execution due to NXT rmware memory constraints. Examples of aggregate variable declarations are as follow:
dseg segment buffer byte[] // starts off empty msg byte[] Testing // msg is an array of byte = // (0x54, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x00) data long[] {0xabcde, 0xfade0} // two values in the array myStruct ComplexStruct // declare an instance of a struct Points MyPoint[] // declare an array of a structs msgs byte[][] // an array of an array of byte dseg ends
Byte arrays may be initialized either by using braces containing a list of numeric values ({val1, val2, ..., valN}) or by using a string constant delimited with single-quote
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.2
Program Structure
14
characters (Testing). Embedded single quote characters must be escaped using the \ character. The \ character can be part of the string by using two forward slashes: \. Arrays of any scalar type other than byte should be initialized using braces. Arrays of struct and nested arrays cannot be initialized. 3.2.4.4.1 byte The byte type
In NBC the byte type is an unsigned 8-bit value. This type can store values from zero to UCHAR_MAX. You can also dene an unsigned 8-bit variable using the ubyte or db keywords.
dseg segment x byte 12 b ubyte 0xE2 test db 0xa0 dseg ends
3.2.4.4.2
ubyte
In NBC the ubyte type is an unsigned 8-bit value. This type can store values from zero to UCHAR_MAX. You can also dene an unsigned 8-bit variable using the byte or db keywords.
dseg segment x byte 12 b ubyte 0xE2 test db 0xa0 dseg ends
3.2.4.4.3
db
The db type
In NBC the db type is an unsigned 8-bit value. This type can store values from zero to UCHAR_MAX. You can also dene an unsigned 8-bit variable using the ubyte or byte keywords.
dseg segment x byte 12 b ubyte 0xE2 test db 0xa0 dseg ends
3.2.4.4.4
sbyte
In NBC the sbyte type is a signed 8-bit value. This type can store values from SCHAR_MIN to SCHAR_MAX. The sbyte type is often used to store the ASCII value of a single character.
dseg segment ch sbyte 12 dseg ends
3.2
Program Structure
15
3.2.4.4.5
word
In NBC the word type is an unsigned 16-bit value. This type can store values from zero to UINT_MAX. You can also dene an unsigned 16-bit variable using the uword or dw keywords.
dseg segment x word 0xfff0 y uword 62450 z dw 48500 dseg ends
3.2.4.4.6
uword
In NBC the uword type is an unsigned 16-bit value. This type can store values from zero to UINT_MAX. You can also dene an unsigned 16-bit variable using the word or dw keywords.
dseg segment x word 0xfff0 y uword 62450 z dw 48500 dseg ends
3.2.4.4.7
dw
The dw type
In NBC the dw type is an unsigned 16-bit value. This type can store values from zero to UINT_MAX. You can also dene an unsigned 16-bit variable using the uword or word keywords.
dseg segment x word 0xfff0 y uword 62450 z dw 48500 dseg ends
3.2.4.4.8
In NBC the sword type is a signed 16-bit value. This type can store values from INT_MIN to INT_MAX.
dseg segment x sword 0xfff y sword -23 dseg ends
3.2.4.4.9
dword
In NBC the dword type is an unsigned 32-bit value. The range of values that can be stored in a ulong variable is from zero to ULONG_MAX.
dseg segment
3.2
Program Structure
16
3.2.4.4.10
udword
In NBC the udword type is an unsigned 32-bit value. The range of values that can be stored in a ulong variable is from zero to ULONG_MAX.
dseg segment a ulong 0xdeadbeef b long 80000 c dword 150000 d udword 200000 e dd 400000 dseg ends
3.2.4.4.11
dd
The dd type
In NBC the dd type is an unsigned 32-bit value. The range of values that can be stored in a ulong variable is from zero to ULONG_MAX.
dseg segment a ulong 0xdeadbeef b long 80000 c dword 150000 d udword 200000 e dd 400000 dseg ends
3.2.4.4.12
sdword
In NBC the sdword type is a signed 32-bit value. This type can store values from LONG_MIN to LONG_MAX. You can also dene a signed 32-bit variable using the slong keywords.
dseg segment x slong 2147000000 y sdword -88235 dseg ends
3.2.4.4.13
In NBC the long type is an unsigned 32-bit value. The range of values that can be stored in a ulong variable is from zero to ULONG_MAX.
dseg segment a ulong 0xdeadbeef b long 80000
3.2
Program Structure
17
3.2.4.4.14
ulong
In NBC the ulong type is an unsigned 32-bit value. The range of values that can be stored in a ulong variable is from zero to ULONG_MAX. You can also dene an unsigned 32-bit variable using the long, dword, udword, or dd keywords.
dseg segment a ulong 0xdeadbeef b long 80000 c dword 150000 d udword 200000 e dd 400000 dseg ends
3.2.4.4.15
slong
In NBC the slong type is a signed 32-bit value. This type can store values from LONG_MIN to LONG_MAX. You can also dene a signed 32-bit variable using the sdword keywords.
dseg segment x slong 2147000000 y sdword -88235 dseg ends
3.2.4.4.16
oat
In NBC the oat type is a 32-bit IEEE 754 single precision oating point representation. This is a binary format that occupies 32 bits (4 bytes) and its signicand has a precision of 24 bits (about 7 decimal digits). Floating point arithmetic will be slower than integer operations but if you need to easily store decimal values the oat type is your best option. The standard NXT rmware provides the sqrt function which benets from the ability to use the oat type. In the enhanced NBC/NXC rmware there are many more native opcodes from the standard C math library which are designed to work with oats.
dseg pi e s2 dseg segment float 3.14159 float 2.71828 float 1.4142 ends
3.2.4.4.17
mutex
In NBC the mutex type is a 32-bit value that is used to synchronize access to resources shared across multiple threads. For this reason there is never a reason to declare a
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.3
The Preprocessor
18
mutex variable inside a task or a subroutine. It is designed for global variables that all tasks or functions can acquire or release in order to obtain exclusive access to a resource that other tasks or functions are also trying to use.
dseg segment motorMutex mutex dseg ends thread main acquire motorMutex // use the motor(s) protected by this mutex. release motorMutex wait MS_500 endt
3.3
The Preprocessor
The Preprocessor NBC also includes a preprocessor that is modeled after the Standard C preprocessor. The C preprocessor processes a source code le before the compiler does. It handles such tasks as including code from other les, conditionally including or excluding blocks of code, stripping comments, dening simple and parameterized macros, and expanding macros wherever they are encountered in the source code. The NBC preprocessor implements the following standard preprocessor directives: #include, #dene, #ifdef, #ifndef, #endif, #if, #elif, #undef, ##, #line, #error, and #pragma. It also supports two non-standard directives: #download and #import. Its implementation is close to a standard C preprocessors, so most preprocessor directives should work as C programmers expect in NBC. Any signicant deviations are explained below. include dene ## (Concatenation) Conditional Compilation import download 3.3.1 include The #include command works as in Standard C, with the caveat that the lename must be enclosed in double quotes. There is no notion of a system include path, so enclosing a lename in angle brackets is forbidden.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
#include
3.3
The Preprocessor
19
NBC programs can begin with #include "NXTDefs.h" but they dont need to. This standard header le includes many important constants and macros, which form the core NBC API. NBC no longer requires that you manually include the NXTDefs.h header le. Unless you specically tell the compiler to ignore the standard system les, this header le is included automatically. 3.3.2 dene The #dene command is used for macro substitution. Redenition of a macro will result in a compiler warning.
#define TurnTime 3000 // 3 seconds
#dene
Macros are normally restricted to one line because the newline character at the end of the line acts as a terminator. However, you can write multiline macros by instructing the preprocessor to ignore the newline character. This is accomplished by escaping the newline character with a backslash (\). The backslash character must be the very last character in the line or it will not extend the macro denition to the next line. The code sample below shows how to write a multi-line preprocessor macro.
#define square(x, result) \ mul result, x, x
The #undef directive may be used to remove a macros denition. 3.3.3 ## (Concatenation)
Concatenation The ## directive works similar to the C preprocessor. It is replaced by nothing, which causes tokens on either side to be concatenated together. Because it acts as a separator initially, it can be used within macro functions to produce identiers via combination with parameter values.
#define ELEMENT_OUT(n) \ NumOut(0, LCD_LINE##n, b##n) dseg b1 b2 dseg segment byte byte 1 ends
3.3
The Preprocessor
20
thread main NumOut(0, LCD_LINE1, b1) NumOut(0, LCD_LINE2, b2) wait SEC_2 endt
3.3.4
Conditional Compilation
Conditional Compilation Conditional compilation works similar to the C preprocessors conditional compilation. The following preprocessor directives may be used: Directive #ifdef symbol #ifndef symbol #else #endif #if condition #elif Meaning If symbol is dened then compile the following code If symbol is not dened then compile the following code Switch from compiling to not compiling and vice versa Return to previous compiling state If the condition evaluates to true then compile the following code Same as #else but used with #if Table 7. Conditional compilation directives See the NXTDefs.h header les for many examples of how to use conditional compilation. 3.3.5 import The #import directive lets you dene a global byte array variable in your NBC program that contains the contents of the imported le. Like #include, this directive is followed by a lename enclosed in double quote characters. Following the lename you may optionally include a format string for constructing the name of the variable you want to dene using this directive.
#import "myfile.txt" data
#import
3.4
Compiler Tokens
21
By default, the format string is s which means that the name of the le without any le extension will be the name of the variable. For instance, if the format string "data" were not specied in the example above, then the name of the byte array variable would be "myle". In this case the name of the byte array variable will be "data". The #import directive is often used in conjunction with the GraphicArrayOut and GraphicArrayOutEx API functions. 3.3.6 #download
download The #download directive works in conjunction with the compilers built-in download capability. It lets you tell the compiler to download a specied auxiliary le in addition to the .rxe le produced from your source code. If the le extension matches a type of source code that the compiler knows how to compile (such as .rs or .nbc) then the compiler will rst compile the source before downloading the resulting binary. The name of the le to download (and optionally compile) is enclosed in double quote characters immediately following this directive. If the compiler is only told to compile the original source code then the #download directive is ignored.
#download "myfile.rs" #download "mypicture.ric"
3.4
Compiler Tokens
Compiler Tokens NBC supports special tokens, which it replaces on compilation. The tokens are similar to preprocessor #dene macros but they are actually handled directly by the compiler rather than the preprocessor. The supported tokens are as follows:
3.5
Expression Evaluator
22
__ResetI__, __ResetJ__
__IncI__, __IncJ__
__DecI__, __DecJ__
Usage This token is replaced with the currently active lename (no path) This token is replaced with the current line number This token is replaced with the compiler version number This token is replaced with the current thread name These tokens are replaced with the current value of I or J. They are both initialized to zero at the start of each thread or subroutine. These tokens are replaced with nothing. As a side effect the value of I or J is reset to zero. These tokens are replaced with nothing. As a side effect the value of I or J is incremented by one. These tokens are replaced with nothing. As a side effect the value of I or J is decremented by one. Table 2. Compiler Tokens
The ## preprocessor directive can help make the use of compiler tokens more readable. __THREADNAME__##_##__I__: would become something like main_1:. Without the ## directive it would much harder to read the mixture of compiler tokens and underscores.
3.5
Expression Evaluator
Expression Evaluator Constant expressions are supported by NBC for many statement arguments as well as variable initialization. Expressions are evaluated by the compiler when the program is compiled, not at run time. The compiler will return an error if it encounters an expression that contains whitespace. "4+4" is a valid constant expression but "4 + 4" is not. The expression evaluator supports the following operators:
3.6
Statements
23
+ /
addition subtraction multiplication division exponent modulo (remainder) bitwise and bitwise or bitwise xor shift left shift right grouping subexpressions constant value Table 3. Constant Expression Operators
Table 4. Constant Expression Functions The following example demonstrates how to use a constant expression:
// expression value will be truncated to an integer set val, 3+(PI*2)-sqrt(30)
3.6
Statements
Statements The body of a code block (thread, subroutine, or macro function) is composed of statements. All statements are terminated with the newline character. Assignment Statements Math Statements
3.6
Statements
24
Logic Statements Bit Manipulation Statements Comparison Statements Control Flow Statements syscall Timing Statements Array Statements String Statements Scheduling Statements Input Statements Output Statements Compile-time Statements 3.6.1 Assignment Statements
Assignment Statements Assignment statements enable you to copy values from one variable to another or to simply set the value of a variable. In NBC there are two ways to assign a new value to a variable. mov set addrof 3.6.1.1 mov
The mov statement The mov statement assigns the value of its second argument to its rst argument. The rst argument must be the name of a variable. It can be of any valid variable type except mutex. The second argument can be a variable or a numeric or string constant. If a constant is used, the compiler creates a variable behind the scenes and initializes it to the specied constant value. Both arguments to the mov statement must be of compatible types. A scalar value can be assigned to another scalar variable, regardless of type, structs can be assigned to struct variables if the structure types are the same, and arrays can be assigned to an array variable provided that the type contained in the arrays are the same. The syntax of the mov statement is shown below.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
25
mov x, y
// set x equal to y
3.6.1.2
set
The set statement The set statement also assigns its rst argument to have the value of its second argument. The rst argument must be the name of a variable. It must be a scalar type. The second argument must be a numeric constant or constant expression. You should never use set with a variable of type oat. For oat types use mov instead. The syntax of the set statement is shown below.
set x, 10 // set x equal to 10
Because all arguments must t into a 2-byte value in the NXT executable, the second argument of the set statement is limited to a 16 bit signed or unsigned value (32768..65535). 3.6.1.3 addrof
The addrof statement The addrof statement gets the address of its input (second) argument and stores it in the output (rst) argument. The third argument is a ag which indicates whether the address should be absolute or relative. Relative addresses can be used like pointers along with the IOMapWrite syscall function. The relative address is an offset from the start of the VM memory pool (CommandOffsetMemoryPool). An absolute address is only useful for cases where module IOMap structures expose a pointer address eld. One example is the pFont address in the Display module IOMap structure (DisplayOffsetPFont). The syntax of the addrof statement is shown below.
// addrof dest, src, brelative? addrof ptrFont, fontDataArray, FALSE
3.6.2
Math Statements
Math Statements Math statements enable you to perform basic math operations on data in your NBC programs. Unlike high level programming languages where mathematical expressions use standard math operators (such as , -, +, /), in NBC, as with other assembly languages, math operations are expressed as statements with the math operation name coming rst, followed by the arguments to the operation. Nearly all the statements in this family have one output argument and two input arguments. The exceptions include sqrt (square root), neg (negate), abs (absolute value), and sign statements, which are unary statements having a single input argument.
3.6
Statements
26
Math statements in NBC differ from traditional assembly math statements because many of the operations can handle arguments of scalar, array, and struct types rather than only scalar types. If, for example, you multiply an array by a scalar then each of the elements in the resulting array will be the corresponding element in the original array multiplied by the scalar value. Only the abs (absolute value) and sign statements require that their arguments are scalar types. When using the standard NXT rmware these two statements are implemented by the compiler since the rmware does not have built-in support for them. If you install the enhanced NBC/NXC rmware and tell the compiler to target it using the EF command line switch then these statements will be handled directly by the rmware itself rather than by the compiler. This family of statements also includes several math operations that are supported only by the enhanced NBC/NXC rmware. These statements cannot be used at all if you tell the compiler to generate code for the standard NXT rmware. The enhanced NBC/NXC rmware math statements are mostly unary functions with a single input argument and a single output argument. They are sin, cos, tan, sind, cosd, tand, asin, acos, atan, asind, acosd, atand, sinh, cosh, tanh, sinhd, coshd, tanhd, ceil, oor, trunc, frac, exp, log, and log10. There are three enhanced rmware math statements which take two input arguments: pow, atan2, and atan2d. And the muldiv statement takes three input arguments. add sub mul div mod neg abs sign sqrt sin cos tan sind cosd tand
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
27
asin acos atan atan2 asind acosd atand atan2d sinh cosh tanh sinhd coshd tanhd ceil oor trunc frac exp log log10 log10 pow muldiv
3.6
Statements
28
3.6.2.1
add
The add Statement The add statement lets you add two input values together and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the add statement is shown below.
add x, x, y // add x and y and store result in x
3.6.2.2
sub
The sub Statement The sub statement lets you subtract two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the sub statement is shown below.
sub x, x, y // subtract y from x and store result in x
3.6.2.3
mul
The mul Statement The mul statement lets you multiply two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the mul statement is shown below.
mul x, x, x // set x equal to x^2
3.6.2.4
div
The div Statement The div statement lets you divide two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the div statement is shown below.
div x, x, 2 // set x equal to x / 2 (integer division)
3.6.2.5
mod
The mod Statement The mod statement lets you calculate the modulus value (or remainder) of two input values and store the result in the rst argument. The rst argument must be a variable
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
29
but the second and third arguments can be variables, numeric constants, or constant expressions. The syntax of the mod statement is shown below.
mod x, x, 4 // set x equal to x % 4 (0..3)
3.6.2.6
neg
The neg Statement The neg statement lets you negate an input value and store the result in the rst argument. The rst argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the neg statement is shown below.
neg x, y // set x equal to -y
3.6.2.7
abs
The abs Statement The abs statement lets you take the absolute value of an input value and store the result in the rst argument. The rst argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the abs statement is shown below.
abs x, y // set x equal to the absolute value of y
3.6.2.8
sign
The sign Statement The sign statement lets you take the sign value (-1, 0, or 1) of an input value and store the result in the rst argument. The rst argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the sign statement is shown below.
sign x, y // set x equal to -1, 0, or 1
3.6.2.9
sqrt
The sqrt Statement The sqrt statement lets you take the square root of an input value and store the result in the rst argument. The rst argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the sqrt statement is shown below.
sqrt x, y // set x equal to the square root of y
3.6
Statements
30
3.6.2.10
sin
The sin Statement The sin statement lets you calculate the sine value of its input (second) argument (radians) and store the result in its output (rst) argument. The syntax of the sin statement is shown below.
sin x, y // store the sine of y in x
3.6.2.11
cos
The cos Statement The cos statement lets you calculate the cosine value of its input (second) argument (radians) and store the result in its output (rst) argument. The syntax of the cos statement is shown below.
cos x, y // store the cosine of y in x
3.6.2.12
tan
The tan Statement The tan statement lets you calculate the tangent value of its input (second) argument (radians) and store the result in its output (rst) argument. The syntax of the tan statement is shown below.
tan x, y // store the tangent of y in x
3.6.2.13
sind
The sind Statement The sind statement lets you calculate the sine value of its input (second) argument (degress) and store the result in its output (rst) argument. The syntax of the sind statement is shown below.
sind x, y // store the sine of y in x
3.6.2.14
cosd
The cosd Statement The cosd statement lets you calculate the cosine value of its input (second) argument (degrees) and store the result in its output (rst) argument. The syntax of the cosd statement is shown below.
cosd x, y // store the cosine of y in x
3.6
Statements
31
3.6.2.15
tand
The tand Statement The tand statement lets you calculate the tangent value of its input (second) argument (degrees) and store the result in its output (rst) argument. The syntax of the tand statement is shown below.
tand x, y // store the tangent of y in x
3.6.2.16
asin
The asin Statement The asin statement lets you calculate the arc sine value of its input (second) argument and store the result (radians) in its output (rst) argument. The syntax of the asin statement is shown below.
asin x, y // store the arc sine of y in x
3.6.2.17
acos
The acos Statement The acos statement lets you calculate the arc cosine value of its input (second) argument and store the result (radians) in its output (rst) argument. The syntax of the acos statement is shown below.
acos x, y // store the arc cosine of y in x
3.6.2.18
atan
The atan Statement The atan statement lets you calculate the arc tangent value of its input (second) argument and store the result (radians) in its output (rst) argument. The syntax of the atan statement is shown below.
atan x, y // store the arc tangent of y in x
3.6.2.19
atan2
The atan2 Statement The atan2 statement lets you calculate the arc tangent value of its two input (second and third) arguments and store the result (radians) in its output (rst) argument. The syntax of the atan2 statement is shown below.
atan2 result, y, x // store the arc tangent of y/x in result
3.6
Statements
32
3.6.2.20
asind
The asind Statement The asind statement lets you calculate the arc sine value of its input (second) argument and store the result (degrees) in its output (rst) argument. The syntax of the asind statement is shown below.
asind x, y // store the arc sine of y in x
3.6.2.21
acosd
The acosd Statement The acosd statement lets you calculate the arc cosine value of its input (second) argument and store the result (degrees) in its output (rst) argument. The syntax of the acosd statement is shown below.
acosd x, y // store the arc cosine of y in x
3.6.2.22
atand
The atand Statement The atand statement lets you calculate the arc tangent value of its input (second) argument and store the result (degrees) in its output (rst) argument. The syntax of the atand statement is shown below.
atand x, y // store the arc tangent of y in x
3.6.2.23
atan2d
The atan2d Statement The atan2d statement lets you calculate the arc tangent value of its two input (second and third) arguments and store the result (degrees) in its output (rst) argument. The syntax of the atan2d statement is shown below.
atan2d result, y, x // store the arc tangent of y/x in result
3.6.2.24
sinh
The sinh Statement The sinh statement lets you calculate the hyperbolic sine value of its input (second) argument and store the result in its output (rst) argument. The syntax of the sinh statement is shown below.
sinh x, y // store the hyperbolic sine of y in x
3.6
Statements
33
3.6.2.25
cosh
The cosh Statement The cosh statement lets you calculate the hyperbolic cosine value of its input (second) argument and store the result in its output (rst) argument. The syntax of the cosh statement is shown below.
cosh x, y // store the hyperbolic cosine of y in x
3.6.2.26
tanh
The tanh Statement The tanh statement lets you calculate the hyperbolic tangent value of its input (second) argument and store the result in its output (rst) argument. The syntax of the tanh statement is shown below.
tanh x, y // store the hyperbolic tangent of y in x
3.6.2.27
sinhd
The sinhd Statement The sinhd statement lets you calculate the hyperbolic sine value of its input (second) argument and store the result in its output (rst) argument. The syntax of the sinhd statement is shown below.
sinhd x, y // store the hyperbolic sine of y in x
3.6.2.28
coshd
The coshd Statement The coshd statement lets you calculate the hyperbolic cosine value of its input (second) argument and store the result in its output (rst) argument. The syntax of the coshd statement is shown below.
coshd x, y // store the hyperbolic cosine of y in x
3.6.2.29
tanhd
The tanhd Statement The tanhd statement lets you calculate the hyperbolic tangent value of its input (second) argument and store the result in its output (rst) argument. The syntax of the tanhd statement is shown below.
tanhd x, y // store the hyperbolic tangent of y in x
3.6
Statements
34
3.6.2.30
ceil
The ceil Statement The ceil statement lets you calculate the smallest integral value that is not less than the input (second) argument and store the result in its output (rst) argument. The syntax of the ceil statement is shown below.
ceil x, y // store the ceil of y in x
3.6.2.31
oor
The oor Statement The oor statement lets you calculate the largest integral value that is not greater than the input (second) argument and store the result in its output (rst) argument. The syntax of the oor statement is shown below.
floor x, y // store the floor of y in x
3.6.2.32
trunc
The trunc Statement The trunc statement lets you calculate the integer part of its input (second) argument and store the result in its output (rst) argument. The syntax of the trunc statement is shown below.
trunc x, y // store the trunc of y in x
3.6.2.33
frac
The frac Statement The frac statement lets you calculate the fractional part of its input (second) argument and store the result in its output (rst) argument. The syntax of the frac statement is shown below.
frac x, y // store the frac of y in x
3.6.2.34
exp
The exp Statement The exp statement lets you calculate the base-e exponential function of x, which is the e number raised to the power x. The syntax of the exp statement is shown below.
exp result, x // store the value of e^x in result
3.6
Statements
35
3.6.2.35
log
The log Statement The log statement lets you calculate the natural logarithm of x. The syntax of the log statement is shown below.
log result, x // store the natural logarithm of x
3.6.2.36
log10
The log10 Statement The log10 statement lets you calculate the base-10 logarithm of x. The syntax of the log10 statement is shown below.
log10 result, x // store the base-10 logarithm of x
3.6.2.37
log10
The log10 Statement The log10 statement lets you calculate the base-10 logarithm of x. The syntax of the log10 statement is shown below.
log10 result, x // store the base-10 logarithm of x
3.6.2.38
pow
The pow Statement The pow statement lets you calculate the value of x raised to the y power and store the result in the output (rst) argument. The syntax of the pow statement is shown below.
pow result, x, y// store the x^y in result
3.6.2.39
muldiv
The muldiv Statement The muldiv statement lets you multiply two 32-bit values and then divide the 64-bit result by a third 32-bit value. The syntax of the muldiv statement is shown below.
muldiv result, a, b, c// store the a*b/c in result
3.6.3
Logic Statements
Logic Statements
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
36
Logic statements let you perform basic logical operations on data in your NBC program. As with the math statements, the logical operation name begins the statement and it is followed by the arguments to the logical operation. All the statements in this family have one output argument and two input arguments except the logical not statement. Each statement supports arguments of any type, scalar, array, or struct. and or xor not 3.6.3.1 and
The and Statement The and statement lets you bitwise and together two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the and statement is shown below.
and x, x, y // x = x & y
3.6.3.2
or
The or Statement The or statement lets you bitwise or together two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the or statement is shown below.
or x, x, y // x = x | y
3.6.3.3
xor
The xor Statement The xor statement lets you bitwise exclusive or together two input values and store the result in the rst argument. The rst argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the xor statement is shown below.
xor x, x, y // x = x ^ y
3.6
Statements
37
3.6.3.4
not
The not Statement The not statement lets you logically not its input value and store the result in the rst argument. The rst argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the not statement is shown below.
not x, x // x = !x (logical not - not bitwise)
3.6.4
Bit Manipulation Statements Bit manipulation statements enable you to perform basic bitwise operations on data in your NBC programs. All statements in this family have one output argument and two input arguments except the complement statement. Using the standard NXT rmware the basic shift right and shift left statements (shr and shl) are implemented by the compiler since the rmware does not support shift operations at this time. If you install the enhanced NBC/NBC rmware and tell the compiler to target it using the -EF command line switch, then these operations will be handled directly by the rmware itself rather than by the compiler. The other bit manipulation statements described in this section are only available when targeting the enhanced rmware. shr shl asr asl lsr lsl rotr rotl cmnt 3.6.4.1 shr
The shr Statement The shr statement lets you shift right an input value by the number of bits specied by the second input argument and store the resulting value in the output argument. The
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
38
output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the shr statement is shown below.
shr x, x, y // x = x >> y
3.6.4.2
shl
The shl Statement The shl statement lets you shift left an input value by the number of bits specied by the second input argument and store the resulting value in the output argument. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the shl statement is shown below.
shl x, x, y // x = x << y
3.6.4.3
asr
The asr Statement The asr statement lets you perform an arithmetic right shift operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the asr statement is shown below.
asr x, x, y // x = x >> y
3.6.4.4
asl
The asl Statement The asl statement lets you perform an arithmetic left shift operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the asl statement is shown below.
asl x, x, y // x = x << y
3.6.4.5
lsr
The lsr Statement The lsr statement lets you perform a logical right shift operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the lsr statement is shown below.
lsr x, x, y
3.6
Statements
39
3.6.4.6
lsl
The lsl Statement The lsl statement lets you perform a logical left shift operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the lsl statement is shown below.
lsl x, x, y
3.6.4.7
rotr
The rotr Statement The rotr statement lets you perform a rotate right operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the rotr statement is shown below.
rotr x, x, y
3.6.4.8
rotl
The rotl Statement The rotl statement lets you perform a rotate left operation. The output (rst) argument must be a variable but the second and third arguments can be a variable, a numeric constant, or a constant expression. The syntax of the rotl statement is shown below.
rotl x, x, y
3.6.4.9
cmnt
The cmnt Statement The cmnt statement lets you perform a bitwise complement operation. The output (rst) argument must be a variable but the second can be a variable, a numeric constant, or a constant expression. The syntax of the cmnt statement is shown below.
cmnt x, y // x = ~y
3.6.5
Comparison Statements
Comparison Statements Comparison statements enable you to compare data in your NBC programs. These statements take a comparison code constant as their rst argument. Valid comparison constants are listed in the Comparison Constants section. You can use scalar, array, and aggregate types for the compare or test argument(s).
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
40
The cmp Statement The cmp statement lets you compare two different input sources. The output (second) argument must be a variable but the remaining arguments can be a variable, a numeric constant, or a constant expression. The syntax of the cmp statement is shown below.
cmp EQ, bXEqualsY, x, y // bXEqualsY = (x == y);
3.6.5.2
tst
The tst Statement The tst statement lets you compare an input source to zero. The output (second) argument must be a variable but the remaining argument can be a variable, a numeric constant, or a constant expression. The syntax of the tst statement is shown below.
tst GT, bXGTZero, x // bXGTZero = (x > 0);
3.6.6
Control Flow Statements Control ow statements enable you to manipulate or control the execution ow of your NBC programs. Some of these statements take a comparison code constant as their rst argument. Valid comparison constants are listed in Comparison Constants section. You can use scalar, array, and aggregate types for the compare or test argument(s). jmp brcmp brtst stop 3.6.6.1 jmp
The jmp Statement The jmp statement lets you unconditionally jump from the current execution point to a new location. Its only argument is a label that species where program execution should resume. The syntax of the jmp statement is shown below.
jmp LoopStart // jump to the LoopStart label
3.6
Statements
41
3.6.6.2
brcmp
The brcmp Statement The brcmp statement lets you conditionally jump from the current execution point to a new location. It is like the cmp statement except that instead of an output argument it has a label argument that species where program execution should resume. The syntax of the brcmp statement is shown below.
brcmp EQ, LoopStart, x, y // jump to LoopStart if x == y
3.6.6.3
brtst
The brtst Statement The brtst statement lets you conditionally jump from the current execution point to a new location. It is like the tst statement except that instead of an output argument it has a label argument that species where program execution should resume. The syntax of the brtst statement is shown below.
brtst GT, lblXGTZero, x // jump to lblXGTZero if x > 0
3.6.6.4
stop
The stop Statement The stop statement lets you stop program execution completely, depending on the value of its boolean input argument. The syntax of the stop statement is shown below.
stop bProgShouldStop // stop program if flag <> 0
3.6.7
syscall
The syscall Statement The syscall statement enables execution of various system functions via a constant function ID and an aggregate type variable for passing arguments to and from the system function. The syntax of the syscall statement is shown below.
// ptArgs is a struct with input and output args syscall SoundPlayTone, ptArgs
Valid syscall statement function IDs are listed in the System Call function constants section. System call structures
3.6
Statements
42
3.6.7.1
System call structures TLocation TSize TFileOpen TFileReadWrite TFileClose TFileResolveHandle TFileRename TFileDelete TSoundPlayFile TSoundPlayTone TSoundGetState TSoundSetState TDrawText TDrawPoint TDrawLine TDrawCircle TDrawRect TDrawGraphic TSetScreenMode TReadButton TCommLSWrite TCommLSRead TCommLSCheckStatus TRandomNumber TGetStartTick
3.6
Statements
43
TMessageWrite TMessageRead TCommBTCheckStatus TCommBTWrite TCommBTRead TKeepAlive TIOMapRead TIOMapWrite TIOMapReadByID TIOMapWriteByID TDisplayExecuteFunction TCommExecuteFunction TLoaderExecuteFunction TFileFind TCommHSControl TCommHSCheckStatus TCommHSReadWrite TCommLSWriteEx TFileSeek TFileResize TDrawGraphicArray TDrawPolygon TDrawEllipse TDrawFont TColorSensorRead TDatalogWrite TDatalogGetTimes TSetSleepTimeout
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
44
TCommBTOnOff TCommBTConnection TReadSemData TWriteSemData TUpdateCalibCacheInfo TComputeCalibValue TListFiles 3.6.7.1.1 TLocation The TLocation structure.
struct sword // The X coordinate. Valid range is from 0 to 99 inclusive. sword // The Y coordinate. Valid range is from 0 to 63 inclusive. ends
TLocation X Y TLocation
For text drawing the Y value must be a multiple of 8. 3.6.7.1.2 TSize The TSize structure.
TSize struct Width sword // The rectangle width. Height sword // The rectangle height. TSize ends
3.6.7.1.3
TFileOpen
// FileOpenRead, FileOpenWrite, FileOpenAppend, FileOpenWriteLinear, // FileOpenWriteNonLinear, FileOpenReadLinear TFileOpen struct Result word // The function call result. FileHandle byte // The returned file handle to use for subsequent file oper ations. Filename byte[] // The name of the file to open or create. Length dword // The desired maximum file capacity or the returned availa ble length in the file. TFileOpen ends
3.6
Statements
45
3.6.7.1.4
TFileReadWrite
// FileRead, FileWrite TFileReadWrite struct Result word FileHandle byte Buffer byte[] ytes to write. Length dword mber of bytes written. TFileReadWrite ends
// The function call result. // The file handle to access. // The buffer to store read bytes or containing b // The number of bytes to read or the returned nu
Possible Result values include Loader module error codes. 3.6.7.1.5 TFileClose The TFileClose structure.
Possible Result values include Loader module error codes. 3.6.7.1.6 TFileResolveHandle The TFileResolveHandle structure.
// // // //
The function call result. The returned resolved file handle. True if the returned handle is a write handle. The name of the file for which to resolve a han
Possible Result values include LDR_HANDLEALREADYCLOSED and LDR_SUCCESS. 3.6.7.1.7 TFileRename The TFileRename structure.
// FileRename TFileRename struct Result word OldFilename byte[] NewFilename byte[] TFileRename ends
// The function call result. // The name of the file to be renamed. // The new name to give to the file.
3.6
Statements
46
3.6.7.1.8
Possible Result values include Loader module error codes. 3.6.7.1.9 TSoundPlayFile The TSoundPlayFile structure.
// SoundPlayFile TSoundPlayFile struct Result Filename byte[] Loop byte Volume 4. TSoundPlayFile ends
sbyte // The function call result, always NO_ERR. // The name of the file to play. // If true, loops at end of file. byte // The sound level. Valid values range from 0 to
3.6.7.1.10
TSoundPlayTone
// SoundPlayTone TSoundPlayTone struct Result Frequency word Duration word Loop byte Volume to 4. TSoundPlayTone ends
sbyte // The function call result, always NO_ERR. // The tone frequency. // The tone duration in milliseconds. // If true, loops forever. byte // The sound level. Valid values range from 0
See the Tone constants group for Frequency values. See the Time constants group for Duration values. 3.6.7.1.11 TSoundGetState The TSoundGetState structure.
// SoundGetState TSoundGetState struct State byte // The returned sound state. Flags byte // The returned sound flags. TSoundGetState ends
See the SoundState constants group for State values. See the SoundFlags constants group for Flags values.
3.6
Statements
47
3.6.7.1.12
TSoundSetState
// SoundSetState TSoundSetState struct Result byte // The function call result, same as State. State byte // The new sound state. Flags byte // The new sound flags. TSoundSetState ends
See the SoundState constants group for State values. See the SoundFlags constants group for Flags values. 3.6.7.1.13 TDrawText The TDrawText structure.
struct sbyte TLocation byte[] dword ends // The function call result. NO_ERR means it s
// The location in X, LCD line number coordinates. // The text to draw on the LCD. // The options to use when writing to the LCD.
See Drawing option constants for valid Options values. 3.6.7.1.14 TDrawPoint The TDrawPoint structure.
struct sbyte TLocation dword ends // The function call result. NO_ERR means it s
// The point location on screen. // The options to use when writing to the LCD.
See Drawing option constants for valid Options values. 3.6.7.1.15 TDrawLine The TDrawLine structure.
TLocation // The location of the starting point. TLocation // The location of the ending point. dword // The options to use when writing to the LCD. ends
3.6
Statements
48
3.6.7.1.16
TDrawCircle
TLocation // The location of the circle center. // The circle radius. // The options to use when writing to the LCD.
See Drawing option constants for valid Options values. 3.6.7.1.17 TDrawRect The TDrawRect structure.
struct sbyte TLocation TSize dword ends // The function call result. NO_ERR means it s
// The top left corner location. // The width and height of the rectangle. // The options to use when writing to the LCD.
See Drawing option constants for valid Options values. 3.6.7.1.18 TDrawGraphic The TDrawGraphic structure.
struct sbyte // The function call result. TLocation // The location on screen. byte[] // The RIC file name. sdword[] // The variables passed as RIC arguments. dword // The options to use when writing to the LCD. ends
See Drawing option constants for valid Options values. Possible values for Result include Loader module error codes, ERR_FILE, and NO_ERR. 3.6.7.1.19 TSetScreenMode The TSetScreenMode structure.
sbyte
// The function call result, always NO_ERR. // The requested screen mode.
3.6
Statements
49
The standard NXT rmware only supports setting the ScreenMode to SCREEN_MODE_RESTORE. If you install the NBC/NXC enhanced standard NXT rmware this system function also supports setting the ScreenMode to SCREEN_MODE_CLEAR. 3.6.7.1.20 TReadButton The TReadButton structure.
// ReadButton TReadButton struct Result sbyte // The function call result, ERR_INVALID_PORT or N O_ERR. Index byte // The requested button index. Pressed byte // The returned button state. Count byte // The returned button pressed count. Reset byte // If true, the count is reset after reading. TReadButton ends
See the Button name constants group for Index values. 3.6.7.1.21 TCommLSWrite The TCommLSWrite structure
// CommLSWrite TCommLSWrite struct Result sbyte // The function call result. Port byte // The port to which the I2C device is connected. Buffer byte[] // The buffer containing data to be written to th e I2C device. ReturnLen byte // The number of bytes that you want to read from the I2C device after writing the data. If no read is planned set this to zero. TCommLSWrite ends
Possible Result values include ERR_COMM_CHAN_INVALID, ERR_COMM_CHAN_NOT_READY, ERR_INVALID_SIZE, and NO_ERR. 3.6.7.1.22 TCommLSRead The TCommLSRead structure
// CommLSRead TCommLSRead struct Result sbyte // The Port byte // The port to Buffer byte[] // The he I2C device. BufferLen byte // The size of not updated during the function TCommLSRead ends
function call result. which the I2C device is connected. buffer used to store the bytes read from t the output buffer on input. call. This field is
Possible Result values include ERR_COMM_BUS_ERR, ERR_COMM_CHAN_INVALID, STAT_COMM_PENDING, ERR_COMM_CHAN_NOT_READY, ERR_INVALID_SIZE, and NO_ERR.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
50
3.6.7.1.23
struct sbyte // The function call result. // The port to which the I2C device is connected. // The number of bytes ready to read from the specified po ends
Possible Result values include ERR_COMM_BUS_ERR, ERR_COMM_CHAN_INVALID, STAT_COMM_PENDING, ERR_COMM_CHAN_NOT_READY, and NO_ERR. 3.6.7.1.24 TRandomNumber The TRandomNumber structure
sword
3.6.7.1.25
dword
3.6.7.1.26
// MessageWrite TMessageWrite struct Result sbyte // The function call result. NO_ERR means it suc ceeded. QueueID byte // The queue identifier. Message byte[] // The message to write. TMessageWrite ends
See the Mailbox constants group for QueueID values 3.6.7.1.27 TMessageRead The TMessageRead structure
// MessageRead TMessageRead struct Result sbyte // The function call result. NO_ERR means it succe eded. QueueID byte // The queue identifier.
3.6
Statements
51
Remove byte // If true, remove the read message from the queue . Message byte[] // The contents of the mailbox/queue. TMessageRead ends
See the Mailbox constants group for QueueID values 3.6.7.1.28 TCommBTCheckStatus The TCommBTCheckStatus structure
struct sbyte ends
3.6.7.1.29
TCommBTWrite
sbyte byte[]
3.6.7.1.30
TCommBTRead
struct
3.6.7.1.31
3.6.7.1.32
3.6
Statements
52
3.6.7.1.33
TIOMapWrite
3.6.7.1.34
TIOMapReadByID
// IOMapReadByID TIOMapReadByID struct Result sbyte ModuleID long Offset word Count word Buffer byte[] TIOMapReadByID ends
3.6.7.1.35
TIOMapWriteByID
// IOMapWriteByID TIOMapWriteByID struct Result sbyte ModuleID long Offset word Buffer byte[] TIOMapWriteByID ends
3.6.7.1.36
// DisplayExecuteFunction TDisplayExecuteFunction struct Status byte Cmd byte On byte X1 byte Y1 byte X2 byte Y2 byte TDisplayExecuteFunction ends
3.6.7.1.37
TCommExecuteFunction
3.6
Statements
53
Cmd byte Param1 byte Param2 byte Param3 byte Name byte[] RetVal word TCommExecuteFunction ends
3.6.7.1.38
// LoaderExecuteFunction TLoaderExecuteFunction struct Result word Cmd byte Filename byte[] Buffer byte[] Length long TLoaderExecuteFunction ends
3.6.7.1.39
TFileFind
// FileFindFirst, FileFindNext TFileFind struct Result word FileHandle byte Filename byte[] Length dword TFileFind ends
3.6.7.1.40
TCommHSControl
// CommHSControl TCommHSControl struct Result sbyte Command byte BaudRate byte Mode word TCommHSControl ends
3.6.7.1.41
3.6
Statements
54
3.6.7.1.42
// CommHSRead, CommHSWrite TCommHSReadWrite struct Status sbyte Buffer byte[] TCommHSReadWrite ends
3.6.7.1.43
TCommLSWriteEx
// CommLSWriteEx TCommLSWriteEx struct Result sbyte Port byte Buffer ReturnLen byte NoRestartOnRead byte TCommLSWriteEx ends
byte[]
3.6.7.1.44
TFileSeek
3.6.7.1.45
TFileResize
struct
3.6.7.1.46
TDrawGraphicArray
// DrawGraphicArray TDrawGraphicArray struct Result sbyte // The function call result. NO_ERR means it s ucceeded. Location TLocation // The location on screen. Data byte[] // A byte array containing the RIC opcodes. Variables sdword[] // The variables passed as RIC arguments. Options dword // The options to use when writing to the LCD. TDrawGraphicArray ends
3.6
Statements
55
3.6.7.1.47
TDrawPolygon
// DrawPolygon TDrawPolygon struct Result sbyte Points TLocation[] Options dword TDrawPolygon ends
3.6.7.1.48
3.6.7.1.49
TDrawFont
struct
3.6.7.1.50
This structure is used when calling the ColorSensorRead system call function. Choose the sensor port (NBC Input port constants) and after calling the function read the sensor values from the ColorValue eld or the raw, normalized, or scaled value arrays.
// ColorSensorRead TColorSensorRead struct Result sbyte // The function call result. NO_ERR means it succeeded . Port byte // The sensor port. ColorValue sword // The color value returned by the sensor. RawArray word[] // Raw color values returned by the sensor. NormalizedArray word[] // Normalized color values returned by the senso r. ScaledArray sword[] // Scaled color values returned by the sensor. Invalid byte // Are the sensor values valid? TColorSensorRead ends
See NBC Input port constants for valid Port values. See Color values for valid ColorValue values. See Color sensor array indices for array index constants used to read values from the RawArray, NormalizedArray, and ScaledArray elds.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
56
3.6.7.1.51
TDatalogWrite
3.6.7.1.52
TDatalogGetTimes
struct
ends
3.6.7.1.53
3.6.7.1.54
TCommBTOnOff
word
3.6.7.1.55
TCommBTConnection
// CommBTConnection TCommBTConnection struct Result word Action byte Name byte[] ConnectionSlot byte TCommBTConnection ends
3.6.7.1.56
3.6
Statements
57
3.6.7.1.57
TWriteSemData
// WriteSemData TWriteSemData struct SemData byte Request byte NewVal byte ClearBits byte TWriteSemData ends
3.6.7.1.58
TUpdateCalibCacheInfo
// UpdateCalibCacheInfo TUpdateCalibCacheInfo struct Result byte Name byte[] MinVal word MaxVal word TUpdateCalibCacheInfo ends
3.6.7.1.59
TComputeCalibValue
// ComputeCalibValue TComputeCalibValue struct Result byte Name byte[] RawVal word TComputeCalibValue ends
3.6.7.1.60
3.6.8
Timing Statements
Timing Statements Timing statements enable you to pause the execution of a thread or obtain information about the system tick counter in your NBC programs. When using the standard NXT rmware NBC implements the wait and waitv statements as thread-specic subroutine calls due to them not being implemented. The enhanced NBC/NXC rmware implements these statements natively. If needed, you can implement simple wait loops using gettick.
3.6
Statements
58
add endTick, currTick, waitms Loop: gettick currTick brcmp LT, Loop, currTick, endTick
The wait Statement The wait statement suspends the current thread for the number of milliseconds specied by its constant argument. The syntax of the wait statement is shown below.
wait 1000 // wait for 1 second
3.6.8.2
waitv
The waitv Statement The waitv statement acts like wait but it takes a variable argument. If you use a constant argument with waitv the compiler will generate a temporary variable for you. The syntax of the waitv statement is shown below.
waitv iDelay // wait for the number of milliseconds in iDelay
3.6.8.3
wait2
The wait2 Statement The wait2 statement suspends the current thread for the number of milliseconds specied by its second argument. If the second argument is NA then the wait time is zero milliseconds, which simply rotates the queue. The current timer value is returned in the rst argument if it is not NA. The syntax of the wait2 statement is shown below.
set ms, 1000 wait2 NA, ms // wait for 1 second
3.6.8.4
gettick
The gettick Statement The gettick statement suspends the current thread for the number of milliseconds specied by its constant argument. The syntax of the gettick statement is shown below.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
59
3.6.9
Array Statements
Array Statements Array statements enable you to populate and manipulate arrays in your NBC programs. index replace arrsize arrinit arrsubset arrbuild arrop 3.6.9.1 index
The index Statement The index statement extracts a single element from the source array and returns the value in the output (rst) argument. The last argument is the index of the desired element. The syntax of the index statement is shown below.
// extract arrayValues[index] and store it in value index value, arrayValues, index
3.6.9.2
replace
The replace Statement The replace statement replaces one or more items in a source array and stores the modied array contents in an output array. The array source argument (second) can be the same variable as the array destination (rst) argument to replace without copying the array. The index of the element(s) to be replaced is specied via the third argument. The new value (last) argument can be an array, in which case multiple items are replaced. The syntax of the replace statement is shown below.
// replace arValues[idx] with x in arNew (arValues is unchanged) replace arNew, arValues, idx, x
3.6
Statements
60
3.6.9.3
arrsize
The arrsize Statement The arrsize statement returns the number of elements in the input array (second) argument in the scalar output (rst) argument. The syntax of the arrsize statement is shown below.
arrsize nSize, arValues // nSize == length of array
3.6.9.4
arrinit
The arrinit Statement The arrinit statement initializes the output array (rst) argument using the value (second) and size (third) arguments provided. The syntax of the arrinit statement is shown below.
// initialize arValues with nSize zeros arrinit arValues, 0, nSize
3.6.9.5
arrsubset
The arrsubset Statement The arrsubset statement copies a subset of the input array (second) argument to the output array (rst) argument. The subset begins at the specied index (third) argument. The number of elements in the subset is specied using the length (fourth) argument. The syntax of the arrsubset statement is shown below.
// copy the first x elements to arSub arrsubset arSub, arValues, NA, x
3.6.9.6
arrbuild
The arrbuild Statement The arrbuild statement constructs an output array from a variable number of input arrays, scalars, or aggregates. The types of all the input arguments must be compatible with the type of the output array (rst) argument. You must provide one or more comma-separated input arguments. The syntax of the arrbuild statement is shown below.
// build data array from 3 sources arrbuild arData, arStart, arBody, arEnd
3.6.9.7
arrop
3.6
Statements
61
The arrop statement lets you perform several different operations on an array containing numeric values. The operations are OPARR_SUM, OPARR_MEAN, OPARR_SUMSQR, OPARR_STD, OPARR_MIN, OPARR_MAX, and OPARR_SORT. In the case of OPARR_SORT the output parameter should be an array of the same type as the input array. In all the other cases it can be any scalar type large enough to hold the resulting value. If the data in the array is of the oat type then the output should also be of the oat type. The fourth and fth arguments indicate the starting element and the number of elements to operate on. To use the entire input array you simply pass the NA constant in as the value for start and length. The syntax of the arrop statement is shown below.
// execute an array operation // arrop op, dest, src, start, len arrop OPARR_SUM, sum, data, NA, NA arrop OPARR_SORT, data2, data, NA, NA
3.6.10
String Statements
String Statements String statements enable you to populate and manipulate null-terminated byte arrays (aka strings) in your NBC programs. atten unatten numtostr fmtnum strtonum strsubset strcat arrtostr strtoarr strindex strreplace strlen
3.6
Statements
62
3.6.10.1
atten
The atten Statement The atten statement converts its input (second) argument into its string output (rst) argument. The syntax of the atten statement is shown below.
flatten strData, args // copy args structure to strData
3.6.10.2
unatten
The unatten Statement The unatten statement converts its input string (third) argument to the output (rst) argument type. If the default value (fourth) argument type does not match the attened data type exactly, including array sizes, then error output (second) argument will be set to TRUE and the output argument will contain a copy of the default argument. The syntax of the unatten statement is shown below.
unflatten args, bErr, strSource, x // convert string to cluster
3.6.10.3
numtostr
The numtostr Statement The numtostr statement converts its scalar input (second) argument to a string output (rst) argument. The syntax of the numtostr statement is shown below.
numtostr strValue, value // convert value to a string
3.6.10.4
fmtnum
The fmtnum Statement The fmtnum statement converts its scalar input (third) argument to a string output (rst) argument. The format of the string output is specied via the format string (second) argument. The syntax of the fmtnum statement is shown below.
fmtnum strValue, fmtStr, value // convert value to a string
3.6.10.5
strtonum
The strtonum Statement The strtonum statement parses its input string (third) argument into a numeric output (rst) argument, advancing an offset output (second) argument past the numeric string. The initial input offset (fourth) argument determines where the string parsing begins. The default (fth) argument is the value that is returned by the statement if an error occurs while parsing the string. The syntax of the strtonum statement is shown below.
3.6
Statements
63
// parse string into num strtonum value, idx, strValue, idx, nZero
3.6.10.6
strsubset
The strsubset Statement The strsubset statement copies a subset of the input string (second) argument to the output string (rst) argument. The subset begins at the specied index (third) argument. The number of characters in the subset is specied using the length (fourth) argument. The syntax of the strsubset statement is shown below.
// copy the first x characters in strSource to strSub strsubset strSub, strSource, NA, x
3.6.10.7
strcat
The strcat Statement The strcat statement constructs an output string from a variable number of input strings. The input arguments must all be null-terminated byte arrays. You must provide one or more comma-separated input arguments. The syntax of the strcat statement is shown below.
// build data string from 3 sources strcat strData, strStart, strBody, strEnd
3.6.10.8
arrtostr
The arrtostr Statement The arrtostr statement copies the input byte array (second) argument into its output string (rst) argument and adds a null-terminator byte at the end. The syntax of the arrtostr statement is shown below.
arrtostr strData, arrData // convert byte array to string
3.6.10.9
strtoarr
The strtoarr Statement The strtoarr statement copies the input string (second) argument into its output byte array (rst) argument excluding the last byte, which should be a null. The syntax of the strtoarr statement is shown below.
strtoarr arrData, strData // convert string to byte array
3.6
Statements
64
3.6.10.10
strindex
The strindex Statement The strindex statement extracts a single element from the source string and returns the value in the output (rst) argument. The last argument is the index of the desired element. The syntax of the strindex statement is shown below.
// extract strVal[idx] and store it in val strindex val, strVal, idx
3.6.10.11
strreplace
The strreplace Statement The strreplace statement replaces one or more characters in a source string and stores the modied string in an output string. The string source argument (second) can be the same variable as the string destination (rst) argument to replace without copying the string. The index of the character(s) to be replaced is specied via the third argument. The new value (fourth) argument can be a string, in which case multiple characters are replaced. The syntax of the strreplace statement is shown below.
// replace strValues[idx] with newStr in strNew strreplace strNew, strValues, idx, newStr
3.6.10.12
strlen
The strlen Statement The strlen statement returns the length of the input string (second) argument in the scalar output (rst) argument. The syntax of the strlen statement is shown below.
strlen nSize, strMsg // nSize == length of strMsg
3.6.11
Scheduling Statements
Scheduling Statements Scheduling statements enable you to control the execution of multiple threads and the calling of subroutines in your NBC programs. exit exitto start stopthread priority
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
65
precedes follows acquire release subcall subret call return 3.6.11.1 exit
The exit Statement The exit statement nalizes the current thread and schedules zero or more dependant threads by specifying start and end dependency list indices. The thread indices are zero-based and inclusive. The two arguments are optional, in which case the compiler automatically adds indices for all the dependencies. The syntax of the exit statement is shown below.
exit 0, 2 // schedule this threads 3 dependants exit // schedule all this threads dependants
3.6.11.2
exitto
The exitto Statement The exitto statement exits the current thread and schedules the specied thread to begin executing. The syntax of the exitto statement is shown below.
exitto worker // exit now and schedule worker thread
3.6.11.3
start
The start Statement The start statement causes the thread specied in the statement to start running immediately. Using the standard NXT rmware this statement is implemented by the compiler using a set of compiler-generated subroutines. The enhanced NBC/NXC rmware implements this statement natively. The syntax of the start statement is shown below.
start worker // start the worker thread
3.6
Statements
66
3.6.11.4
stopthread
The stopthread Statement The stopthread statement causes the thread specied in the statement to stop running immediately. This statement cannot be used with the standard NXT rmware. It is supported by the enhanced NBC/NXC rmware. The syntax of the stopthread statement is shown below.
stopthread worker // stop the worker thread
3.6.11.5
priority
The priority Statement The priority statement modies the priority of the thread specied in the statement. This statement cannot be used with the standard NXT rmware. It is supported by the enhanced NBC/NXC rmware. The syntax of the priority statement is shown below.
priority worker, 50 // change the priority of the worker thread
3.6.11.6
precedes
The precedes Statement The precedes statement causes the compiler to mark the threads listed in the statement as dependants of the current thread. A subset of these threads will begin executing once the current thread exits, depending on the form of the exit statement used at the end of the current thread. The syntax of the precedes statement is shown below.
precedes worker, music, walking // configure dependant threads
3.6.11.7
follows
The follows Statement The follows statement causes the compiler to mark the current thread as a dependant of the threads listed in the statement. The current thread will be scheduled to execute if all of the threads that precede it have exited and scheduled it for execution. The syntax of the follows statement is shown below.
follows main // configure thread dependencies
3.6.11.8
acquire
The acquire Statement The acquire statement acquires the named mutex. If the mutex is already acquired the current thread waits until it becomes available. The syntax of the acquire statement is shown below.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
3.6
Statements
67
acquire muFoo
3.6.11.9
release
The release Statement The release statement releases the named mutex allowing other threads to acquire it. The syntax of the release statement is shown below.
release muFoo // release mutex for subroutine
3.6.11.10
subcall
The subcall Statement The subcall statement calls into the named thread/subroutine and waits for a return (which might not come from the same thread). The second argument is a variable used to store the return address. The syntax of the subcall statement is shown below.
subcall drawText, retDrawText // call drawText subroutine
3.6.11.11
subret
The subret Statement The subret statement returns from a thread to the return address value contained in its input argument. The syntax of the subret statement is shown below.
subret retDrawText // return to calling routine
3.6.11.12
call
The call Statement The call statement executes the named subroutine and waits for a return. The argument should specify a thread that was declared using the subroutine keyword. The syntax of the call statement is shown below.
call MyFavoriteSubroutine // call routine
3.6.11.13
return
The return Statement The return statement returns from a subroutine. The compiler automatically handles the return address for call and return when they are used with subroutines rather than threads. The syntax of the return statement is shown below.
return // return to calling routine
3.6
Statements
68
3.6.12
Input Statements
Input Statements Input statements enable you to congure the four input ports and read analog sensor values in your NBC programs. Both statements in this category use input eld identiers to control which attribute of the input port you are manipulating. setin getin 3.6.12.1 setin
The setin Statement The setin statement sets an input eld of a sensor on a port to the value specied in its rst argument. The port is specied via the second argument. The input eld identier is the third argument. Valid input eld identiers are listed in the Input eld constants section. Valid port constants are listed in the NBC Input port constants section. The syntax of the setin statement is shown below.
setin IN_TYPE_SWITCH, IN_1, Type // set sensor to switch type setin IN_MODE_BOOLEAN, IN_1, InputMode // set to boolean mode
3.6.12.2
getin
The getin Statement The getin statement reads a value from an input eld of a sensor on a port and writes the value to its rst argument. The port is specied via the second argument. The input eld identier is the third argument. Valid input eld identiers are listed in the Input eld constants section. Valid port constants are listed in the NBC Input port constants section. The syntax of the getin statement is shown below.
getin rVal, thePort, RawValue // read raw sensor value getin sVal, thePort, ScaledValue // read scaled sensor value getin nVal, thePort, NormalizedValue // read normalized value
3.6.13
Output Statements
Output Statements Output statements enable you to congure and control the three NXT outputs in your NBC programs. Both statements in this category use output eld identiers to control which attribute of the output you are manipulating. setout getout
3.6
Statements
69
3.6.13.1
setout
The setout Statement The setout statement sets one or more output elds of a motor on one or more ports to the value specied by the coupled input arguments. The rst argument is either a scalar value specifying a single port or a byte array specifying multiple ports. After the port argument you then provide one or more pairs of output eld identiers and values. You can set multiple elds via a single statement. Valid output eld identiers are listed in the Output eld constants section. Valid output port constants are listed in the Output port constants section. The syntax of the setout statement is shown below.
set theMode, OUT_MODE_MOTORON // set mode to motor on set rsVal, OUT_RUNSTATE_RUNNING // motor running set thePort, OUT_A // set port to #1 set pwr, -75 // negative power means reverse motor direction // set output values setout thePort, OutputMode, theMode, RunState, rsVal, Power, pwr
3.6.13.2
getout
The getout Statement The getout statement reads a value from an output eld of a sensor on a port and writes the value to its rst output argument. The port is specied via the second argument. The output eld identier is the third argument. Valid output eld identiers are listed in the Output eld constants section. Valid output port constants are listed in the Output port constants section. The syntax of the getout statement is shown below.
getout rmVal, thePort, RegMode // read motor regulation mode getout tlVal, thePort, TachoLimit // read tachometer limit value getout rcVal, thePort, RotationCount // read the rotation count
3.6.14
Compile-time Statements
Compile-time Statements Compile-time statements and functions enable you to perform simple compiler operations at the time you compile your NBC programs. sizeof valueof isconst compchk compif compelse
3.6
Statements
70
The sizeof function The sizeof(arg) compiler function returns the size of the variable you pass into it. The syntax of the sizeof function is shown below.
dseg segment arg byte argsize byte dseg ends // ... set argsize, sizeof(arg) // argsize == 1
3.6.14.2
valueof
The valueof function The valueof(arg) compiler function returns the value of the constant expression you pass into it. The syntax of the valueof function is shown below.
set argval, valueof(4+3*2) // argval == 10
3.6.14.3
isconst
The isconst function The isconst(arg) compiler function returns TRUE if the argument you pass into it is a constant and FALSE if it is not a constant. The syntax of the isconst function is shown below.
set argval, isconst(4+3*2) // argval == TRUE
3.6.14.4
compchk
The compchk Statement The compchk compiler statement takes a comparison constant as its rst argument. The second and third arguments must be constants or constant expressions that can be evaluated by the compiler during program compilation. It reports a compiler error if the comparison expression does not evaluate to TRUE. Valid comparison constants are listed in the Comparison Constants section. The syntax of the compchk statement is shown below.
compchk EQ, sizeof(arg3), 2
3.6
Statements
71
3.6.14.5
compif
The compif Statement The compif statement works together with the compelse and compend compiler statements to create a compile-time if-else statement that enables you to control whether or not sections of code should be included in the compiler output. The compif statement takes a comparison constant as its rst argument. The second and third arguments must be constants or constant expressions that can be evaluated by the compiler during program compilation. If the comparison expression is true then code immediate following the statement will be included in the executable. The compiler if statement ends when the compiler nds the next compend statement. To optionally provide an else clause use the compelse statement between the compif and compend statements. Valid comparison constants are listed in the Comparison Constants section. The syntax of the compif statement is demonstrated in the example below.
compif EQ, sizeof(arg3), 2 // compile this if sizeof(arg3) == 2 compelse // compile this if sizeof(arg3) != 2 compend
3.6.14.6
compelse
The compelse Statement The compelse statement works together with the compif and compend compiler statements to create a compile-time if-else statement that enables you to control whether or not sections of code should be included in the compiler output. If the comparison expression in the compif statement is false then code immediately following the compelse statement will be included in the executable. The compelse block ends when the compiler nds the next compend statement. The syntax of the compelse statement is shown in the example below.
compif EQ, sizeof(arg3), 2 // compile this if sizeof(arg3) == 2 compelse // compile this if sizeof(arg3) != 2 compend
3.6.14.7
compend
The compend Statement The compend statement works together with the compif and compelse compiler statements to create a compile-time if-else statement that enables you to control whether or not sections of code should be included in the compiler output. The compif and compelse blocks end when the compiler nds the next compend statement. The syntax of the compend statement is shown in the example below.
compif EQ, sizeof(arg3), 2 // compile this if sizeof(arg3) == 2 compelse
4 Module Documentation
72
3.6.14.8
compchktype
The compchktype Statement The compchktype compiler statement takes a variable as its rst argument. The second argument must be type name that can be evaluated by the compiler during program compilation. It reports a compiler error if the type of the variable does not match the second argument. The syntax of the compchktype statement is shown below.
compchktype _args, TDrawText syscall DrawText, _args
4
4.1
Module Documentation
Comparison Constants
Logical comparison operators for use in brtst, tst, tstset, brcmp, cmp, and cmpset. Denes 4.1.1 #dene LT 0x00 #dene GT 0x01 #dene LTEQ 0x02 #dene GTEQ 0x03 #dene EQ 0x04 #dene NEQ 0x05 Detailed Description
Logical comparison operators for use in brtst, tst, tstset, brcmp, cmp, and cmpset. 4.1.2 4.1.2.1 Dene Documentation #dene EQ 0x04 The rst value is equal to the second. 4.1.2.2 #dene GT 0x01 The rst value is greater than the second.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.2
73
4.1.2.3
#dene GTEQ 0x03 The rst value is greater than or equal to the second.
4.1.2.4
4.1.2.5
#dene LTEQ 0x02 The rst value is less than or equal to the second.
4.1.2.6
#dene NEQ 0x05 The rst value is not equal to the second.
4.2
Input module
Constants and functions related to the Input module.
Display module
Constants and functions related to the Display module.
Sound module
Constants and functions related to the Sound module.
Command module
Constants and functions related to the Command module.
Button module
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.3
Input module
74
Ui module
Constants and functions related to the Ui module.
Comm module
Constants and functions related to the Comm module.
IOCtrl module
Constants and functions related to the IOCtrl module.
Loader module
Constants and functions related to the Loader module.
4.2.1
Detailed Description
4.3
Input module
Constants and functions related to the Input module. Modules Input module functions
Functions for accessing and modifying input module features.
4.4
75
4.3.1
Detailed Description
Constants and functions related to the Input module. The NXT input module encompasses all sensor inputs except for digital I2C (LowSpeed) sensors. There are four sensors, which internally are numbered 0, 1, 2, and 3. This is potentially confusing since they are externally labeled on the NXT as sensors 1, 2, 3, and 4. To help mitigate this confusion, the NBC port name constants IN_1, IN_2, IN_3, and IN_4 may be used when a sensor port is required. See NBC Input port constants.
4.4
Constants that are part of the NXT rmwares Input module. Modules NBC Input port constants
Input port constants are used when calling sensor control API functions.
Color values
Constants for use with the ColorValue returned by the color sensor in full color mode.
4.4
76
Denes 4.4.1 #dene INPUT_DIGI0 1 #dene INPUT_DIGI1 2 #dene INPUT_CUSTOMINACTIVE 0x00 #dene INPUT_CUSTOM9V 0x01 #dene INPUT_CUSTOMACTIVE 0x02 #dene INPUT_INVALID_DATA 0x01 Detailed Description
Constants that are part of the NXT rmwares Input module. 4.4.2 4.4.2.1 Dene Documentation #dene INPUT_CUSTOM9V 0x01 Custom sensor 9V 4.4.2.2 #dene INPUT_CUSTOMACTIVE 0x02 Custom sensor active 4.4.2.3 #dene INPUT_CUSTOMINACTIVE 0x00 Custom sensor inactive 4.4.2.4 #dene INPUT_DIGI0 1 Digital pin 0 4.4.2.5 #dene INPUT_DIGI1 2 Digital pin 1 4.4.2.6 #dene INPUT_INVALID_DATA 0x01 Invalid data ag
4.5
77
4.5
Constants that are used for dening sensor types and modes. Modules NBC sensor type constants
Use sensor type constants to congure an input port for a specic type of sensor.
4.5.1
Detailed Description
Constants that are used for dening sensor types and modes. The sensor ports on the NXT are capable of interfacing to a variety of different sensors. It is up to the program to tell the NXT what kind of sensor is attached to each port. Calling SetSensorType congures a sensors type. There are 16 sensor types, each corresponding to a specic type of LEGO RCX or NXT sensor. Two of these types are for NXT I2C digital sensors, either 9V powered or unpowered, and a third is used to congure port IN_4 as a high-speed RS-485 serial port. A seventeenth type (IN_TYPE_CUSTOM) is for use with custom analog sensors. And an eighteenth type (IN_TYPE_NO_SENSOR) is used to indicate that no sensor has been congured, effectively turning off the specied port. In general, a program should congure the type to match the actual sensor. If a sensor port is congured as the wrong type, the NXT may not be able to read it accurately. Use the NBC sensor type constants. The NXT allows a sensor to be congured in different modes. The sensor mode determines how a sensors raw value is processed. Some modes only make sense for certain types of sensors, for example IN_MODE_ANGLESTEP is useful only with rotation sensors. Call SetSensorMode to set the sensor mode. The possible modes are shown below. Use the NBC sensor mode constants. The NXT provides a boolean conversion for all sensors - not just touch sensors. This boolean conversion is normally based on preset thresholds for the raw value. A "low" value (less than 460) is a boolean value of 1. A high value (greater than 562) is a boolean value of 0. This conversion can be modied: a slope value between 0 and 31 may be added to a sensors mode when calling SetSensorMode. If the sensors value changes more than the slope value during a certain time (3ms), then the sensors boolean state will change. This allows the boolean state to reect rapid changes in the raw value. A rapid increase will result in a boolean value of 0, a rapid decrease is a boolean value of 1.
4.6
Output module
78
Even when a sensor is congured for some other mode (i.e. PCTFULLSCALE), the boolean conversion will still be carried out.
IN_MODE_-
4.6
Output module
Constants and functions related to the Output module. Modules Output module functions
Functions for accessing and modifying output module features.
4.6.1
Detailed Description
Constants and functions related to the Output module. The NXT output module encompasses all the motor outputs. Nearly all of the NBC API functions dealing with outputs take either a single output or a set of outputs as their rst argument. Depending on the function call, the output or set of outputs may be a constant or a variable containing an appropriate output port value. The constants OUT_A, OUT_B, and OUT_C are used to identify the three outputs. Unlike NQC, adding individual outputs together does not combine multiple outputs. Instead, the NBC API provides predened combinations of outputs: OUT_AB, OUT_AC, OUT_BC, and OUT_ABC. Manually combining outputs involves creating an array and adding two or more of the three individual output constants to the array. Power levels can range 0 (lowest) to 100 (highest). Negative power levels reverse the direction of rotation (i.e., forward at a power level of -100 actually means reverse at a power level of 100). The outputs each have several elds that dene the current state of the output port. These elds are dened in the Output eld constants section.
4.7
Constants that are part of the NXT rmwares Output module. Modules Output port constants
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.8
Command module
79
Output port constants are used when calling motor control API functions.
PID constants
PID constants are for adjusting the Proportional, Integral, and Derivative motor controller parameters.
4.7.1
Detailed Description
4.8
Command module
4.9
80
4.8.1
Detailed Description
Constants and functions related to the Command module. The NXT command module encompasses support for the execution of user programs via the NXT virtual machine. It also implements the direct command protocol support that enables the NXT to respond to USB or Bluetooth requests from other devices such as a PC or another NXT brick.
4.9
Constants that are part of the NXT rmwares Command module. Modules Array operation constants
Constants for use with the NXC ArrayOp function and the NBC arrop statement.
Time constants
Constants for use with the Wait() function.
VM state constants
Constants dening possible VM states.
Fatal errors
Constants dening various fatal error conditions.
General errors
Constants dening general error conditions.
4.10
Comm module
81
Denes #dene STAT_MSG_EMPTY_MAILBOX 64 #dene STAT_COMM_PENDING 32 #dene NO_ERR 0 4.9.1 Detailed Description
Constants that are part of the NXT rmwares Command module. 4.9.2 4.9.2.1 Dene Documentation #dene NO_ERR 0 Successful execution of the specied command 4.9.2.2 #dene STAT_COMM_PENDING 32 Pending setup operation in progress 4.9.2.3 #dene STAT_MSG_EMPTY_MAILBOX 64 Specied mailbox contains no new messages
4.10
Comm module
4.11
Button module
82
4.10.1
Detailed Description
Constants and functions related to the Comm module. The NXT comm module encompasses support for all forms of Bluetooth, USB, and HiSpeed communication. You can use the Bluetooth communication methods to send information to other devices connected to the NXT brick. The NXT rmware also implements a message queuing or mailbox system which you can access using these methods. Communication via Bluetooth uses a master/slave connection system. One device must be designated as the master device before you run a program using Bluetooth. If the NXT is the master device then you can congure up to three slave devices using connection 1, 2, and 3 on the NXT brick. If your NXT is a slave device then connection 0 on the brick must be reserved for the master device. Programs running on the master NXT brick can send packets of data to any connected slave devices using the BluetoothWrite method. Slave devices write response packets to the message queuing system where they wait for the master device to poll for the response. Using the direct command protocol, a master device can send messages to slave NXT bricks in the form of text strings addressed to a particular mailbox. Each mailbox on the slave NXT brick is a circular message queue holding up to ve messages. Each message can be up to 58 bytes long. To send messages from a master NXT brick to a slave brick, use BluetoothWrite on the master brick to send a MessageWrite direct command packet to the slave. Then, you can use ReceiveMessage on the slave brick to read the message. The slave NXT brick must be running a program when an incoming message packet is received. Otherwise, the slave NXT brick ignores the message and the message is dropped.
4.11
Button module
4.12
IOCtrl module
83
4.11.1
Detailed Description
Constants and functions related to the Button module. The NXT button module encompasses support for the 4 buttons on the NXT brick.
4.12
IOCtrl module
Constants and functions related to the IOCtrl module. Modules IOCtrl module functions
Functions for accessing and modifying IOCtrl module features.
4.12.1
Detailed Description
Constants and functions related to the IOCtrl module. The NXT ioctrl module encompasses low-level communication between the two processors that control the NXT. The NBC API exposes two functions that are part of this module.
4.13
Loader module
Constants and functions related to the Loader module. Modules Loader module functions
4.14
Sound module
84
4.13.1
Detailed Description
Constants and functions related to the Loader module. The NXT loader module encompasses support for the NXT le system. The NXT supports creating les, opening existing les, reading, writing, renaming, and deleting les. Files in the NXT le system must adhere to the 15.3 naming convention for a maximum lename length of 19 characters. While multiple les can be opened simultaneously, a maximum of 4 les can be open for writing at any given time. When accessing les on the NXT, errors can occur. The NBC API denes several constants that dene possible result codes. They are listed in the Loader module error codes section.
4.14
Sound module
Constants and functions related to the Sound module. Modules Sound module functions
Functions for accessing and modifying sound module features.
4.14.1
Detailed Description
Constants and functions related to the Sound module. The NXT sound module encompasses all sound output features. The NXT provides support for playing basic tones as well as two different types of les. Sound les (.rso) are like .wav les. They contain thousands of sound samples that digitally represent an analog waveform. With sounds les the NXT can speak or play music or make just about any sound imaginable. Melody les are like MIDI les. They contain multiple tones with each tone being dened by a frequency and duration pair. When played on the NXT a melody le
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.15
Ui module
85
sounds like a pure sine-wave tone generator playing back a series of notes. While not as fancy as sound les, melody les are usually much smaller than sound les. When a sound or a le is played on the NXT, execution of the program does not wait for the previous playback to complete. To play multiple tones or les sequentially it is necessary to wait for the previous tone or le playback to complete rst. This can be done via the wait statement or by using the sound state value within a while loop. The NBC API denes frequency and duration constants which may be used in calls to PlayTone or PlayToneEx. Frequency constants start with TONE_A3 (the A pitch in octave 3) and go to TONE_B7 (the B pitch in octave 7). Duration constants start with MS_1 (1 millisecond) and go up to MIN_1 (60000 milliseconds) with several constants in between. See NBCCommon.h for the complete list.
4.15
Ui module
Ui module constants
Constants that are part of the NXT rmwares Ui module.
4.15.1
Detailed Description
Constants and functions related to the Ui module. The NXT UI module encompasses support for various aspects of the user interface for the NXT brick.
4.16
Constants and functions related to the Low Speed module. Modules LowSpeed module functions
Functions for accessing and modifying low speed module features.
4.16
86
4.16.1
Detailed Description
Constants and functions related to the Low Speed module. The NXT low speed module encompasses support for digital I2C sensor communication. Use the lowspeed (aka I2C) communication methods to access devices that use the I2C protocol on the NXT bricks four input ports. You must set the input ports Type property to IN_TYPE_LOWSPEED or IN_TYPE_LOWSPEED_9V on a given port before using an I2C device on that port. Use IN_TYPE_LOWSPEED_9V if your device requires 9V power from the NXT brick. Remember that you also need to set the input ports InvalidData property to true after setting a new Type, and then wait in a loop for the NXT rmware to set InvalidData back to false. This process ensures that the rmware has time to properly initialize the port, including the 9V power lines, if applicable. Some digital devices might need additional time to initialize after power up. The SetSensorLowspeed API function sets the specied port to IN_TYPE_LOWSPEED_9V and calls ResetSensor to perform the InvalidData reset loop described above. When communicating with I2C devices, the NXT rmware uses a master/slave setup in which the NXT brick is always the master device. This means that the rmware is responsible for controlling the write and read operations. The NXT rmware maintains write and read buffers for each port, and the three main Lowspeed (I2C) methods described below enable you to access these buffers. A call to LowspeedWrite starts an asynchronous transaction between the NXT brick and a digital I2C device. The program continues to run while the rmware manages sending bytes from the write buffer and reading the response bytes from the device. Because the NXT is the master device, you must also specify the number of bytes to expect from the device in response to each write operation. You can exchange up to 16 bytes in each direction per transaction. After you start a write transaction with LowspeedWrite, use LowspeedStatus in a loop to check the status of the port. If LowspeedStatus returns a status code of 0 and a count of bytes available in the read buffer, the system is ready for you to use LowspeedRead to copy the data from the read buffer into the buffer you provide. Note that any of these calls might return various status codes at any time. A status code of 0 means the port is idle and the last transaction (if any) did not result in any errors. Negative status codes and the positive status code 32 indicate errors. There are a few possible errors per call. Valid low speed return values include NO_ERR as well as the error codes listed in the Communications specic errors section.
4.17
Display module
87
4.17
Display module
Constants and functions related to the Display module. Modules Display module functions
Functions for accessing and modifying display module features.
4.17.1
Detailed Description
Constants and functions related to the Display module. The NXT display module encompasses support for drawing to the NXT LCD. The NXT supports drawing points, lines, rectangles, and circles on the LCD. It supports drawing graphic icon les on the screen as well as text and numbers. With the enhanced NBC/NXC rmware you can also draw ellipses and polygons as well as text and numbers using custom RIC-based font les. Also, all of the drawing operations have several drawing options for how the shapes are drawn to the LCD. The LCD screen has its origin (0, 0) at the bottom left-hand corner of the screen with the positive Y-axis extending upward and the positive X-axis extending toward the right. The NBC API provides constants for use in the NumOut and TextOut functions which make it possible to specify LCD line numbers between 1 and 8 with line 1 being at the top of the screen and line 8 being at the bottom of the screen. These constants (LCD_LINE1, LCD_LINE2, LCD_LINE3, LCD_LINE4, LCD_LINE5, LCD_LINE6, LCD_LINE7, LCD_LINE8) should be used as the Y coordinate in NumOut and TextOut calls. Values of Y other than these constants will be adjusted so that text and numbers are on one of 8 xed line positions.
4.18
Functions for accessing and modifying HiTechnic devices. Modules HiTechnic device constants
Constants that are for use with HiTechnic devices.
4.18
88
_t3,
_t4) __-
#dene HTPowerFunctionCommand(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result)
HTPowerFunctionCommand function.
#dene HTIRTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, FALSE, _result)
HTIRTrain function.
#dene HTPFComboDirect(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result)
HTPFComboDirect function.
#dene HTPFComboPWM(_port, _channel, _outa, _outb, _result) __HTPFComboPWM(_port, _channel, _outa, _outb, _result)
HTPFComboPWM function.
#dene HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) __HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result)
HTPFRawOutput function.
_result)
__-
4.18
89
HTPFRepeat function.
#dene HTPFSingleOutputCST(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, TRUE, _result)
HTPFSingleOutputCST function.
#dene HTPFSingleOutputPWM(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, FALSE, _result)
HTPFSingleOutputPWM function.
#dene HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) __HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result)
HTPFSinglePin function.
#dene HTPFTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, TRUE, _result)
HTPFTrain function.
_result) __HTRCXPollMemory(_-
__HTRCXOpNoArgs(RCX_-
4.18
90
4.18
91
__HTRCXSetGlobalDirection(_-
__HTRCXSetGlobalDirection(_-
4.18
92
HTRCXPing function.
_dir)
__-
4.18
93
_mode)
__-
_pwrval)
__-
4.18
94
__HTRCXOpNoArgs(RCX_-
__HTRCXOpNoArgs(RCX_-
__HTRCXOpNoArgs(RCX_-
_value)
__-
_value)
__-
4.18
95
_value)
__-
_value)
__-
_value)
__-
_value)
__-
_value)
__-
_value)
__-
_y,
_z,
_result)
__-
#dene ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result) __ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result)
Read HiTechnic Color values.
#dene ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result) __ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result)
Read HiTechnic Color raw values.
4.18
96
#dene ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result)
Read HiTechnic Color normalized values.
#dene ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result)
Read HiTechnic IRSeeker values.
#dene ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result) __ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result)
Read HiTechnic IRSeeker2 DC values.
#dene ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result)
Read HiTechnic IRSeeker2 AC values.
_mode,
_result)
__-
#dene ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result) __ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result)
Read HiTechnic Color2 active values.
#dene ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result)
Read HiTechnic Color2 normalized active values.
#dene ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result) __ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result)
Read HiTechnic Color2 raw values.
4.18
97
_result)
__-
_result) __-
4.18.1
Detailed Description
Functions for accessing and modifying HiTechnic devices. 4.18.2 4.18.2.1 Dene Documentation #dene HTIRTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, FALSE, _result)
HTIRTrain function. Control an IR Train receiver set to the specied channel using the HiTechnic iRLink device. Valid func values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channel values are TRAIN_CHANNEL_1 through TRAIN_CHANNEL_3 and TRAIN_CHANNEL_ALL. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The IR Train channel. See IR Train channel constants. _func The IR Train function. See PF/IR Train function constants _result The function call result. NO_ERR or Communications specic errors.
4.18.2.2
#dene HTPFComboDirect(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result)
HTPFComboDirect function. Execute a pair of Power Function motor commands on the specied channel using the HiTechnic iRLink device. Commands for outa and outb are PF_CMD_STOP, PF_CMD_REV, PF_CMD_FWD, and PF_CMD_BRAKE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
98
Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function command for output A. See Power Function command constants. _outb The Power Function command for output B. See Power Function command constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.3
#dene HTPFComboPWM(_port, _channel, _outa, _outb, _result) __HTPFComboPWM(_port, _channel, _outa, _outb, _result)
HTPFComboPWM function. Control the speed of both outputs on a Power Function receiver set to the specied channel using the HiTechnic iRLink device. Valid output values are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function PWM command for output A. See Power Function PWM option constants. _outb The Power Function PWM command for output B. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.4
#dene HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) __HTPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result)
HTPFRawOutput function. Control a Power Function receiver set to the specied channel using the HiTechnic iRLink device. Build the raw data stream using the 3 nibbles (4 bit values). The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
99
Parameters: _port The sensor port. See NBC Input port constants. _nibble0 The rst raw data nibble. _nibble1 The second raw data nibble. _nibble2 The third raw data nibble. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.5
HTPFRepeat function. Repeat sending the last Power Function command using the HiTechnic IRLink device. Specify the number of times to repeat the command and the number of milliseconds of delay between each repetition. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _count The number of times to repeat the command. _delay The number of milliseconds to delay between each repetition. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.6
#dene HTPFSingleOutputCST(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, TRUE, _result)
HTPFSingleOutputCST function. Control a single output on a Power Function receiver set to the specied channel using the HiTechnic iRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_CST_CLEAR1_CLEAR2, PF_CST_SET1_CLEAR2, PF_CST_CLEAR1_SET2, PF_CST_SET1_SET2, PF_CST_INCREMENT_PWM, PF_CST_DECREMENT_PWM, PF_CST_FULL_FWD, PF_CST_FULL_REV, and PF_CST_TOGGLE_DIR. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
100
_channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function CST function. See Power Function CST options constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.7
#dene HTPFSingleOutputPWM(_port, _channel, _out, _func, _result) __HTPFSingleOutput(_port, _channel, _out, _func, FALSE, _result)
HTPFSingleOutputPWM function. Control the speed of a single output on a Power Function receiver set to the specied channel using the HiTechnic iRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function PWM function. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.8
#dene HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) __HTPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result)
HTPFSinglePin function. Control a single pin on a Power Function receiver set to the specied channel using the HiTechnic iRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Select the desired pin using PF_PIN_C1 or PF_PIN_C2. Valid functions are PF_FUNC_NOCHANGE, PF_FUNC_CLEAR, PF_FUNC_SET, and PF_FUNC_TOGGLE. Valid channels are PF_CHANNEL_1 through PF_Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
101
CHANNEL_4. Specify whether the mode by passing true (continuous) or false (timeout) as the nal parameter. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _pin The Power Function pin. See Power Function pin constants. _func The Power Function single pin function. See Power Function single pin function constants. _cont Control whether the mode is continuous or timeout. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.9
#dene HTPFTrain(_port, _channel, _func, _result) __HTIRTrain(_port, _channel, _func, TRUE, _result)
HTPFTrain function. Control both outputs on a Power Function receiver set to the specied channel using the HiTechnic iRLink device as if it were an IR Train receiver. Valid function values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _func The Power Function train function. See PF/IR Train function constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.10
#dene HTPowerFunctionCommand(_port, _channel, _outa, _outb, _result) __HTPFComboDirect(_port, _channel, _outa, _outb, _result)
HTPowerFunctionCommand function. Execute a pair of Power Function motor commands on the specied channel using the HiTechnic iRLink device. Commands for outa and outb are PF_CMD_STOP, PF_CMD_REV, PF_CMD_FWD, and PF_CMD_BRAKE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
102
Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function command for output A. See Power Function command constants. _outb The Power Function command for output B. See Power Function command constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.11
HTRCXAddToDatalog function. Send the AddToDatalog command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.18.2.12
HTRCXBatteryLevel function. Send the BatteryLevel command to an RCX to read the current battery level. Parameters: _result The RCX battery level.
4.18.2.13
4.18
103
4.18.2.14
HTRCXClearCounter function. Send the ClearCounter command to an RCX. Parameters: _counter The counter to clear.
4.18.2.15
HTRCXClearMsg function. Send the ClearMsg command to an RCX. 4.18.2.16 #dene HTRCXClearSensor(_port) __HTRCXClearSensor(_port)
HTRCXClearSensor function. Send the ClearSensor command to an RCX. Parameters: _port The RCX port number.
4.18.2.17
HTRCXClearSound function. Send the ClearSound command to an RCX. 4.18.2.18 #dene HTRCXClearTimer(_timer) __HTRCXClearTimer(_timer)
HTRCXClearTimer function. Send the ClearTimer command to an RCX. Parameters: _timer The timer to clear.
4.18
104
4.18.2.19
HTRCXCreateDatalog function. Send the CreateDatalog command to an RCX. Parameters: _size The new datalog size.
4.18.2.20
HTRCXDecCounter function. Send the DecCounter command to an RCX. Parameters: _counter The counter to decrement.
4.18.2.21
HTRCXDeleteSub function. Send the DeleteSub command to an RCX. Parameters: _s The subroutine number to delete.
4.18.2.22
HTRCXDeleteSubs function. Send the DeleteSubs command to an RCX. 4.18.2.23 #dene HTRCXDeleteTask(_t) __HTRCXDeleteTask(_t)
HTRCXDeleteTask function. Send the DeleteTask command to an RCX. Parameters: _t The task number to delete.
4.18
105
4.18.2.24
HTRCXDeleteTasks function. Send the DeleteTasks command to an RCX. 4.18.2.25 #dene HTRCXDisableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_OFF)
HTRCXDisableOutput function. Send the DisableOutput command to an RCX. Parameters: _outputs The RCX output(s) to disable. See RCX output constants.
4.18.2.26
HTRCXEnableOutput function. Send the EnableOutput command to an RCX. Parameters: _outputs The RCX output(s) to enable. See RCX output constants.
4.18.2.27
HTRCXEvent function. Send the Event command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.18.2.28
4.18
106
Parameters: _outputs The RCX output(s) to oat. See RCX output constants.
4.18.2.29
HTRCXFwd function. Send commands to an RCX to set the specied outputs to the forward direction. Parameters: _outputs The RCX output(s) to set forward. See RCX output constants.
4.18.2.30
HTRCXIncCounter function. Send the IncCounter command to an RCX. Parameters: _counter The counter to increment.
4.18.2.31
HTRCXInvertOutput function. Send the InvertOutput command to an RCX. Parameters: _outputs The RCX output(s) to invert. See RCX output constants.
4.18.2.32
4.18
107
4.18.2.33
HTRCXObvertOutput function. Send the ObvertOutput command to an RCX. Parameters: _outputs The RCX output(s) to obvert. See RCX output constants.
4.18.2.34
HTRCXOff function. Send commands to an RCX to turn off the specied outputs. Parameters: _outputs The RCX output(s) to turn off. See RCX output constants.
4.18.2.35
HTRCXOn function. Send commands to an RCX to turn on the specied outputs. Parameters: _outputs The RCX output(s) to turn on. See RCX output constants.
4.18.2.36
HTRCXOnFor function. Send commands to an RCX to turn on the specied outputs in the forward direction for the specied duration. Parameters: _outputs The RCX output(s) to turn on. See RCX output constants. _ms The number of milliseconds to leave the outputs on
4.18
108
4.18.2.37
HTRCXOnFwd function. Send commands to an RCX to turn on the specied outputs in the forward direction. Parameters: _outputs The RCX output(s) to turn on in the forward direction. See RCX output constants.
4.18.2.38
HTRCXOnRev function. Send commands to an RCX to turn on the specied outputs in the reverse direction. Parameters: _outputs The RCX output(s) to turn on in the reverse direction. See RCX output constants.
4.18.2.39
HTRCXPBTurnOff function. Send the PBTurnOff command to an RCX. 4.18.2.40 #dene HTRCXPing() __HTRCXOpNoArgs(RCX_PingOp)
HTRCXPing function. Send the Ping command to an RCX. 4.18.2.41 #dene HTRCXPlaySound(_snd) __HTRCXPlaySound(_snd)
HTRCXPlaySound function. Send the PlaySound command to an RCX. Parameters: _snd The sound number to play.
4.18
109
4.18.2.42
HTRCXPlayTone function. Send the PlayTone command to an RCX. Parameters: _freq The frequency of the tone to play. _duration The duration of the tone to play.
4.18.2.43
HTRCXPlayToneVar function. Send the PlayToneVar command to an RCX. Parameters: _varnum The variable containing the tone frequency to play. _duration The duration of the tone to play.
4.18.2.44
HTRCXPoll function Send the Poll command to an RCX to read a signed 2-byte value at the specied source and value combination. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value. _result The value read from the specied port and value.
4.18.2.45
4.18
110
Parameters: _address The RCX memory address. _result The value read from the specied address.
4.18.2.46
HTRCXRemote function. Send the Remote command to an RCX. Parameters: _cmd The RCX IR remote command to send. See RCX IR remote constants.
4.18.2.47
HTRCXRev function. Send commands to an RCX to set the specied outputs to the reverse direction. Parameters: _outputs The RCX output(s) to reverse direction. See RCX output constants.
4.18.2.48
HTRCXSelectDisplay function. Send the SelectDisplay command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.18.2.49
4.18
111
4.18.2.50
HTRCXSendSerial function. Send the SendSerial command to an RCX. Parameters: _rst The rst byte address. _count The number of bytes to send.
4.18.2.51
HTRCXSetDirection function. Send the SetDirection command to an RCX to congure the direction of the specied outputs. Parameters: _outputs The RCX output(s) to set direction. See RCX output constants. _dir The RCX output direction. See RCX output direction constants.
4.18.2.52
HTRCXSetEvent function. Send the SetEvent command to an RCX. Parameters: _evt The event number to set. _src The RCX source. See RCX and Scout source constants. _type The event type.
4.18
112
4.18.2.53
HTRCXSetGlobalDirection function. Send the SetGlobalDirection command to an RCX. Parameters: _outputs The RCX output(s) to set global direction. See RCX output constants. _dir The RCX output direction. See RCX output direction constants.
4.18.2.54
HTRCXSetGlobalOutput function. Send the SetGlobalOutput command to an RCX. Parameters: _outputs The RCX output(s) to set global mode. See RCX output constants. _mode The RCX output mode. See RCX output mode constants.
4.18.2.55
HTRCXSetIRLinkPort function. Set the global port in advance of using the HTRCX and HTScout API functions for sending RCX and Scout messages over the HiTechnic iRLink device. The port must be congured as a Lowspeed port before using any of the HiTechnic RCX and Scout iRLink functions. Parameters: _port The sensor port. See NBC Input port constants.
4.18.2.56
4.18
113
Parameters: _outputs The RCX output(s) to set max power. See RCX output constants. _pwrsrc The RCX source. See RCX and Scout source constants. _pwrval The RCX value.
4.18.2.57
HTRCXSetMessage function. Send the SetMessage command to an RCX. Parameters: _msg The numeric message to send.
4.18.2.58
HTRCXSetOutput function. Send the SetOutput command to an RCX to congure the mode of the specied outputs Parameters: _outputs The RCX output(s) to set mode. See RCX output constants. _mode The RCX output mode. See RCX output mode constants.
4.18.2.59
HTRCXSetPower function. Send the SetPower command to an RCX to congure the power level of the specied outputs. Parameters: _outputs The RCX output(s) to set power. See RCX output constants. _pwrsrc The RCX source. See RCX and Scout source constants. _pwrval The RCX value.
4.18
114
4.18.2.60
HTRCXSetPriority function. Send the SetPriority command to an RCX. Parameters: _p The new task priority.
4.18.2.61
HTRCXSetSensorMode function. Send the SetSensorMode command to an RCX. Parameters: _port The RCX sensor port. _mode The RCX sensor mode.
4.18.2.62
HTRCXSetSensorType function. Send the SetSensorType command to an RCX. Parameters: _port The RCX sensor port. _type The RCX sensor type.
4.18.2.63
HTRCXSetSleepTime function. Send the SetSleepTime command to an RCX. Parameters: _t The new sleep time value.
4.18
115
4.18.2.64
HTRCXSetTxPower function. Send the SetTxPower command to an RCX. Parameters: _pwr The IR transmit power level.
4.18.2.65
HTRCXSetWatch function. Send the SetWatch command to an RCX. Parameters: _hours The new watch time hours value. _minutes The new watch time minutes value.
4.18.2.66
HTRCXStartTask function. Send the StartTask command to an RCX. Parameters: _t The task number to start.
4.18.2.67
HTRCXStopAllTasks function. Send the StopAllTasks command to an RCX. 4.18.2.68 #dene HTRCXStopTask(_t) __HTRCXStopTask(_t)
4.18
116
4.18.2.69
HTRCXToggle function. Send commands to an RCX to toggle the direction of the specied outputs. Parameters: _outputs The RCX output(s) to toggle. See RCX output constants.
4.18.2.70
HTRCXUnmuteSound function. Send the UnmuteSound command to an RCX. 4.18.2.71 #dene HTScoutCalibrateSensor() __HTRCXOpNoArgs(RCX_LSCalibrateOp)
HTScoutCalibrateSensor function. Send the CalibrateSensor command to a Scout. 4.18.2.72 #dene HTScoutMuteSound() __HTScoutMuteSound()
HTScoutMuteSound function. Send the MuteSound command to a Scout. 4.18.2.73 #dene HTScoutSelectSounds(_grp) __HTScoutSelectSounds(_grp)
HTScoutSelectSounds function. Send the SelectSounds command to a Scout. Parameters: _grp The Scout sound group to select.
4.18
117
4.18.2.74
HTScoutSendVLL function. Send the SendVLL command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.75
_src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.76
HTScoutSetLight function. Send the SetLight command to a Scout. Parameters: _x Set the light on or off using this value. See Scout light constants.
4.18.2.77
HTScoutSetScoutMode function. Send the SetScoutMode command to a Scout. Parameters: _mode Set the scout mode. See Scout mode constants.
4.18
118
4.18.2.78
HTScoutSetSensorClickTime function. Send the SetSensorClickTime command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.79
HTScoutSetSensorHysteresis function. Send the SetSensorHysteresis command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.80
HTScoutSetSensorLowerLimit function. Send the SetSensorLowerLimit command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.81
4.18
119
Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.18.2.82
HTScoutUnmuteSound function. Send the UnmuteSound command to a Scout. 4.18.2.83 #dene ReadSensorHTAccel(_port, _x, _y, _z, _result) __ReadSensorHTAccel(_port, _x, _y, _z, _result)
Read HiTechnic acceleration values. Read X, Y, and Z axis acceleration values from the HiTechnic Accelerometer sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _x The output x-axis acceleration. _y The output y-axis acceleration. _z The output z-axis acceleration. _result The function call result.
4.18.2.84
#dene ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result) __ReadSensorHTColor(_port, _ColorNum, _Red, _Green, _Blue, _result)
Read HiTechnic Color values. Read color number, red, green, and blue values from the HiTechnic Color sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
4.18
120
_ColorNum The output color number. _Red The red color value. _Green The green color value. _Blue The blue color value. _result The function call result.
4.18.2.85
#dene ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result) __ReadSensorHTColor2Active(_port, _ColorNum, _Red, _Green, _Blue, _White, _result)
Read HiTechnic Color2 active values. Read color number, red, green, and blue values from the HiTechnic Color2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _ColorNum The output color number. _Red The red color value. _Green The green color value. _Blue The blue color value. _White The white color value. _result The function call result.
4.18.2.86
Read HiTechnic color sensor color number. Read the color number from the HiTechnic Color sensor on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _value The color number.
4.18
121
4.18.2.87
Read HiTechnic compass. Read the compass heading value of the HiTechnic Compass sensor on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _value The compass heading.
4.18.2.88
Read HiTechnic EOPD sensor. Read the HiTechnic EOPD sensor on the specied port. Parameters: _port The sensor port. See NBC Input port constants. _val The EOPD sensor reading.
4.18.2.89
Read HiTechnic Gyro sensor. Read the HiTechnic Gyro sensor on the specied port. The offset value should be calculated by averaging several readings with an offset of zero while the sensor is perfectly still. Parameters: _p The sensor port. See NBC Input port constants. _offset The zero offset. _val The Gyro sensor reading.
4.18
122
4.18.2.90
Read HiTechnic IRReceiver Power Function bytes. Read Power Function bytes from the HiTechnic IRReceiver sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _pfdata Eight bytes of power function remote IR data. _result The function call result.
4.18.2.91
Read HiTechnic IRReceiver Power Function value. Read a Power Function byte from the HiTechnic IRReceiver sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _reg The power function data offset. See HiTechnic IRReceiver constants. _pfchar A single byte of power function remote IR data. _result The function call result.
4.18.2.92
#dene ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result)
Read HiTechnic IRSeeker values. Read direction, and ve signal strength values from the HiTechnic IRSeeker sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function.
4.18
123
Parameters: _port The sensor port. See NBC Input port constants. _dir The direction. _s1 The signal strength from sensor 1. _s3 The signal strength from sensor 3. _s5 The signal strength from sensor 5. _s7 The signal strength from sensor 7. _s9 The signal strength from sensor 9. _result The function call result.
4.18.2.93
#dene ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result) __ReadSensorHTIRSeeker2AC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _result)
Read HiTechnic IRSeeker2 AC values. Read direction, and ve signal strength values from the HiTechnic IRSeeker2 sensor in AC mode. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _dir The direction. _s1 The signal strength from sensor 1. _s3 The signal strength from sensor 3. _s5 The signal strength from sensor 5. _s7 The signal strength from sensor 7. _s9 The signal strength from sensor 9. _result The function call result.
4.18.2.94
Read HiTechnic IRSeeker2 register. Read a register value from the HiTechnic IR Seeker2 on the specied port. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.18
124
Parameters: _port The sensor port. See NBC Input port constants. _addr The register address. See HiTechnic IRSeeker2 constants. _value The IRSeeker2 register value.
4.18.2.95
#dene ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result) __ReadSensorHTIRSeeker2DC(_port, _dir, _s1, _s3, _s5, _s7, _s9, _avg, _result)
Read HiTechnic IRSeeker2 DC values. Read direction, ve signal strength, and average strength values from the HiTechnic IRSeeker2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _dir The direction. _s1 The signal strength from sensor 1. _s3 The signal strength from sensor 3. _s5 The signal strength from sensor 5. _s7 The signal strength from sensor 7. _s9 The signal strength from sensor 9. _avg The average signal strength. _result The function call result.
4.18.2.96
Read HiTechnic IRSeeker direction. Read the direction value of the HiTechnic IR Seeker on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _value The IRSeeker direction.
4.18
125
4.18.2.97
#dene ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor(_port, _ColorIdx, _Red, _Green, _Blue, _result)
Read HiTechnic Color normalized values. Read the color index and the normalized red, green, and blue values from the HiTechnic Color sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _ColorIdx The output color index. _Red The normalized red color value. _Green The normalized green color value. _Blue The normalized blue color value. _result The function call result.
4.18.2.98
#dene ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result) __ReadSensorHTNormalizedColor2Active(_port, _ColorIdx, _Red, _Green, _Blue, _result)
Read HiTechnic Color2 normalized active values. Read the color index and the normalized red, green, and blue values from the HiTechnic Color2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _ColorIdx The output color index. _Red The normalized red color value. _Green The normalized green color value. _Blue The normalized blue color value. _result The function call result.
4.18
126
4.18.2.99
#dene ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result) __ReadSensorHTRawColor(_port, _Red, _Green, _Blue, _result)
Read HiTechnic Color raw values. Read the raw red, green, and blue values from the HiTechnic Color sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _Red The raw red color value. _Green The raw green color value. _Blue The raw blue color value. _result The function call result.
4.18.2.100
#dene ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result) __ReadSensorHTRawColor2(_port, _Red, _Green, _Blue, _White, _result)
Read HiTechnic Color2 raw values. Read the raw red, green, and blue values from the HiTechnic Color2 sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _Red The raw red color value. _Green The raw green color value. _Blue The raw blue color value. _White The raw white color value. _result The function call result.
4.18
127
4.18.2.101
#dene ReadSensorHTTouchMultiplexer(_p, _t1, _t2, _t3, _t4) __ReadSensorHTTouchMultiplexer(_p, _t1, _t2, _t3, _t4)
Read HiTechnic touch multiplexer. Read touch sensor values from the HiTechnic touch multiplexer device. Parameters: _p The sensor port. See NBC Input port constants. _t1 The value of touch sensor 1. _t2 The value of touch sensor 2. _t3 The value of touch sensor 3. _t4 The value of touch sensor 4.
4.18.2.102
Set HiTechnic Color2 mode. Set the mode of the HiTechnic Color2 sensor on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _mode The Color2 mode. See HiTechnic Color2 constants. _result The function call result. NO_ERR or Communications specic errors.
4.18.2.103
Set HiTechnic IRSeeker2 mode. Set the mode of the HiTechnic IRSeeker2 sensor on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _mode The IRSeeker2 mode. See HiTechnic IRSeeker2 constants. _result The function call result. NO_ERR or Communications specic errors.
4.19
128
4.18.2.104
Set sensor as HiTechnic EOPD. Congure the sensor on the specied port as a HiTechnic EOPD sensor. Parameters: _port The sensor port. See NBC Input port constants. _bStd Congure in standard or long-range mode.
4.18.2.105
Set sensor as HiTechnic Gyro. Congure the sensor on the specied port as a HiTechnic Gyro sensor. Parameters: _port The sensor port. See NBC Input port constants.
4.19
Functions for accessing and modifying MindSensors devices. Modules MindSensors device constants
Constants that are for use with MindSensors devices.
_value)
__-
_addr,
_value)
__-
4.19
129
#dene port)
SetSensorMSDRODActive(_port)
__SetSensorMSDRODActive(_-
_value)
__-
#dene ReadSensorMSAccel(_port, _x, _y, _z, ReadSensorMSAccelEx(_port, 0x02, _x, _y, _z, _result)
Read mindsensors acceleration values.
_result)
__-
#dene ReadSensorMSAccelEx(_port, _addr, _x, _y, _z, _result) __ReadSensorMSAccelEx(_port, _addr, _x, _y, _z, _result)
Read mindsensors acceleration values.
#dene ReadSensorMSPlayStation(_port, _b1, _b2, _xleft, _yleft, _xright, _yright, _result) __ReadSensorMSPlayStationEx(_port, 0x02, _b1, _b2, _xleft, _yleft, _xright, _yright, _result)
Read mindsensors playstation controller values.
#dene ReadSensorMSPlayStationEx(_port, _addr, _b1, _b2, _xleft, _yleft, _xright, _yright, _result) __ReadSensorMSPlayStationEx(_port, _addr, _b1, _b2, _xleft, _yleft, _xright, _yright, _result)
Read mindsensors playstation controller values.
4.19
130
#dene ReadSensorMSRTClock(_port, _sec, _min, _hrs, _dow, _date, _month, _year, _result) __ReadSensorMSRTClock(_port, _sec, _min, _hrs, _dow, _date, _month, _year, _result)
Read mindsensors RTClock values.
#dene ReadSensorMSTilt(_port, _x, _y, ReadSensorMSTiltEx(_port, 0x02, _x, _y, _z, _result)
Read mindsensors tilt values.
_z,
_result)
__-
#dene ReadSensorMSTiltEx(_port, _addr, _x, _y, ReadSensorMSTiltEx(_port, _addr, _x, _y, _z, _result)
Read mindsensors tilt values.
_z,
_result) __-
#dene MSReadValue(_port, _reg, _bytes, _out, _result) __MSReadValue(_port, 0x02, _reg, _bytes, _out, _result)
Read a mindsensors device value.
#dene MSReadValueEx(_port, _addr, _reg, _bytes, _out, _result) __MSReadValue(_port, _addr, _reg, _bytes, _out, _result)
Read a mindsensors device value.
4.19
131
4.19
132
#dene ReadDISTNxDistanceEx(_port, _addr, _out, _result) MSReadValue(_port, _addr, DIST_REG_DIST, 2, _out, _result)
Read DISTNx distance value.
__-
#dene ReadDISTNxMaxDistanceEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_DIST_MAX, 2, _out, _result)
Read DISTNx maximum distance value.
#dene ReadDISTNxMinDistanceEx(_port, _addr, _out, _result) MSReadValue(_port, _addr, DIST_REG_DIST_MIN, 2, _out, _result)
Read DISTNx minimum distance value.
__-
#dene ReadDISTNxModuleTypeEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_MODULE_TYPE, 1, _out, _result)
Read DISTNx module type value.
#dene ReadDISTNxNumPointsEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_NUM_POINTS, 1, _out, _result)
Read DISTNx num points value.
#dene ReadDISTNxVoltageEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_VOLT, 2, _out, _result)
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
133
__I2CSendCmd(_port,
0x02,
4.19
134
__I2CSendCmd(_port,
0x02,
__I2CSendCmd(_port,
0x02,
__I2CSendCmd(_port,
0x02,
4.19
135
_result)
__-
_result)
__-
_bytes,
_result)
__-
_bytes,
_result)
__-
#dene MSIRTrain(_port, _channel, _func, _result) __MSIRTrain(_port, 0x02, _channel, _func, FALSE, _result)
MSIRTrain function.
#dene MSIRTrainEx(_port, _addr, _channel, _func, _result) __MSIRTrain(_port, _addr, _channel, _func, FALSE, _result)
MSIRTrainEx function.
#dene MSPFComboDirect(_port, _channel, _outa, _outb, _result) __MSPFComboDirect(_port, 0x02, _channel, _outa, _outb, _result)
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
136
MSPFComboDirect function.
#dene MSPFComboDirectEx(_port, _addr, _channel, _outa, _outb, _result) __MSPFComboDirect(_port, _addr, _channel, _outa, _outb, _result)
MSPFComboDirectEx function.
#dene MSPFComboPWM(_port, _channel, _outa, _outb, _result) __MSPFComboPWM(_port, 0x02, _channel, _outa, _outb, _result)
MSPFComboPWM function.
#dene MSPFComboPWMEx(_port, _addr, _channel, _outa, _outb, _result) __MSPFComboPWM(_port, _addr, _channel, _outa, _outb, _result)
MSPFComboPWMEx function.
#dene MSPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) __MSPFRawOutput(_port, 0x02, _nibble0, _nibble1, _nibble2, _result)
MSPFRawOutput function.
#dene MSPFRawOutputEx(_port, _addr, _nibble0, _nibble1, _nibble2, _result) __MSPFRawOutput(_port, _addr, _nibble0, _nibble1, _nibble2, _result)
MSPFRawOutputEx function.
#dene MSPFRepeat(_port, _count, _delay, _result) MSPFRepeatLastCommand(_port, 0x02, _count, _delay, _result)
MSPFRepeat function.
__-
#dene MSPFRepeatEx(_port, _addr, _count, _delay, _result) MSPFRepeatLastCommand(_port, _addr, _count, _delay, _result)
MSPFRepeatEx function.
__-
#dene MSPFSingleOutputCST(_port, _channel, _out, _func, _result) __MSPFSingleOutput(_port, 0x02, _channel, _out, _func, TRUE, _result)
MSPFSingleOutputCST function.
#dene MSPFSingleOutputCSTEx(_port, _addr, _channel, _out, _func, _result) __MSPFSingleOutput(_port, _addr, _channel, _out, _func, TRUE, _result)
MSPFSingleOutputCSTEx function.
#dene MSPFSingleOutputPWM(_port, _channel, _out, _func, _result) __MSPFSingleOutput(_port, 0x02, _channel, _out, _func, FALSE, _result)
MSPFSingleOutputPWM function.
4.19
137
#dene MSPFSingleOutputPWMEx(_port, _addr, _channel, _out, _func, _result) __MSPFSingleOutput(_port, _addr, _channel, _out, _func, FALSE, _result)
MSPFSingleOutputPWMEx function.
#dene MSPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) __MSPFSinglePin(_port, 0x02, _channel, _out, _pin, _func, _cont, _result)
MSPFSinglePin function.
#dene MSPFSinglePinEx(_port, _addr, _channel, _out, _pin, _func, _cont, _result) __MSPFSinglePin(_port, _addr, _channel, _out, _pin, _func, _cont, _result)
MSPFSinglePinEx function.
#dene MSPFTrain(_port, _channel, _func, _result) __MSIRTrain(_port, 0x02, _channel, _func, TRUE, _result)
MSPFTrain function.
#dene MSPFTrainEx(_port, _addr, _channel, _func, _result) __MSIRTrain(_port, _addr, _channel, _func, TRUE, _result)
MSPFTrainEx function.
4.19
138
MSRCXAbsVar function.
_hi,
_hyst)
__-
__MSRCXOpNoArgs(RCX_-
4.19
139
MSRCXDeleteSub function.
__MSRCXSetGlobalOutput(_-
__MSRCXSetGlobalDirection(_-
4.19
140
MSRCXMulVar function.
__MSRCXSetGlobalDirection(_-
_src,
_value) __MSRCXVarOp(RCX_-
4.19
141
_dir)
__-
_mode)
__-
4.19
142
MSRCXSetGlobalOutput function.
_pwrval)
__-
_precision)
__-
4.19
143
__MSRCXOpNoArgs(RCX_-
__MSRCXOpNoArgs(RCX_-
__MSRCXOpNoArgs(RCX_-
4.19
144
_src,
_value)
__-
_value)
__-
_l,
_tm,
_fx)
__-
_value)
__-
_value)
__-
_value)
__-
_value)
__-
_src,
_value)
__-
4.19
145
MSScoutSetTimerLimit function.
4.19.1
Detailed Description
Functions for accessing and modifying MindSensors devices. 4.19.2 4.19.2.1 Dene Documentation #dene DISTNxGP2D12(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2D12, _result)
Congure DISTNx as GP2D12. Congure the mindsensors DISTNx sensor as GP2D12. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.2
Congure DISTNx as GP2D120. Congure the mindsensors DISTNx sensor as GP2D120. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.3
4.19
146
Congure DISTNx as GP2D120. Congure the mindsensors DISTNx sensor as GP2D120. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.4
Congure DISTNx as GP2D12. Congure the mindsensors DISTNx sensor as GP2D12. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.5
Congure DISTNx as GP2YA02. Congure the mindsensors DISTNx sensor as GP2YA02. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19
147
4.19.2.6
Congure DISTNx as GP2YA02. Congure the mindsensors DISTNx sensor as GP2YA02. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.7
Congure DISTNx as GP2YA21. Congure the mindsensors DISTNx sensor as GP2YA21. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.8
Congure DISTNx as GP2YA21. Congure the mindsensors DISTNx sensor as GP2YA21. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19
148
4.19.2.9
Turn off mindsensors ADPA mode. Turn ADPA mode off for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.10
Turn off mindsensors ADPA mode. Turn ADPA mode off for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.11
Turn on mindsensors ADPA mode. Turn ADPA mode on for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19
149
4.19.2.12
Turn on mindsensors ADPA mode. Turn ADPA mode on for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.13
Turn off power to device. Turn power off for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.14
Turn off power to device. Turn power off for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19
150
4.19.2.15
Turn on power to device. Turn the power on for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.16
Turn on power to device. Turn the power on for the mindsensors device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.17
#dene MSIRTrain(_port, _channel, _func, _result) __MSIRTrain(_port, 0x02, _channel, _func, FALSE, _result)
MSIRTrain function. Control an IR Train receiver set to the specied channel using the mindsensors NRLink device. Valid func values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channel values are TRAIN_CHANNEL_1 through TRAIN_CHANNEL_3 and TRAIN_CHANNEL_ALL. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The IR Train channel. See IR Train channel constants. _func The IR Train function. See PF/IR Train function constants _result The function call result. NO_ERR or Communications specic errors.
4.19
151
4.19.2.18
#dene MSIRTrainEx(_port, _addr, _channel, _func, _result) __MSIRTrain(_port, _addr, _channel, _func, FALSE, _result)
MSIRTrainEx function. Control an IR Train receiver set to the specied channel using the mindsensors NRLink device. Valid function values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channels are TRAIN_CHANNEL_1 through TRAIN_CHANNEL_3 and TRAIN_CHANNEL_ALL. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The IR Train channel. See IR Train channel constants. _func The IR Train function. See PF/IR Train function constants _result The function call result. NO_ERR or Communications specic errors.
4.19.2.19
#dene MSPFComboDirect(_port, _channel, _outa, _outb, _result) __MSPFComboDirect(_port, 0x02, _channel, _outa, _outb, _result)
MSPFComboDirect function. Execute a pair of Power Function motor commands on the specied channel using the mindsensors NRLink device. Commands for outa and outb are PF_CMD_STOP, PF_CMD_REV, PF_CMD_FWD, and PF_CMD_BRAKE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function command for output A. See Power Function command constants. _outb The Power Function command for output B. See Power Function command constants. _result The function call result. NO_ERR or Communications specic errors.
4.19
152
4.19.2.20
#dene MSPFComboDirectEx(_port, _addr, _channel, _outa, _outb, _result) __MSPFComboDirect(_port, _addr, _channel, _outa, _outb, _result)
MSPFComboDirectEx function. Execute a pair of Power Function motor commands on the specied channel using the mindsensors NRLink device. Commands for outa and outb are PF_CMD_STOP, PF_CMD_REV, PF_CMD_FWD, and PF_CMD_BRAKE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function command for output A. See Power Function command constants. _outb The Power Function command for output B. See Power Function command constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.21
#dene MSPFComboPWM(_port, _channel, _outa, _outb, _result) __MSPFComboPWM(_port, 0x02, _channel, _outa, _outb, _result)
MSPFComboPWM function. Control the speed of both outputs on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Valid output values are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function PWM command for output A. See Power Function PWM option constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
153
_outb The Power Function PWM command for output B. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.22
#dene MSPFComboPWMEx(_port, _addr, _channel, _outa, _outb, _result) __MSPFComboPWM(_port, _addr, _channel, _outa, _outb, _result)
MSPFComboPWMEx function. Control the speed of both outputs on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Valid output values are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _outa The Power Function PWM command for output A. See Power Function PWM option constants. _outb The Power Function PWM command for output B. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.23
#dene MSPFRawOutput(_port, _nibble0, _nibble1, _nibble2, _result) __MSPFRawOutput(_port, 0x02, _nibble0, _nibble1, _nibble2, _result)
MSPFRawOutput function. Control a Power Function receiver set to the specied channel using the mindsensors NRLink device. Build the raw data stream using the 3 nibbles (4 bit values). The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
154
_nibble0 The rst raw data nibble. _nibble1 The second raw data nibble. _nibble2 The third raw data nibble. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.24
#dene MSPFRawOutputEx(_port, _addr, _nibble0, _nibble1, _nibble2, _result) __MSPFRawOutput(_port, _addr, _nibble0, _nibble1, _nibble2, _result)
MSPFRawOutputEx function. Control a Power Function receiver set to the specied channel using the mindsensors NRLink device. Build the raw data stream using the 3 nibbles (4 bit values). The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _nibble0 The rst raw data nibble. _nibble1 The second raw data nibble. _nibble2 The third raw data nibble. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.25
#dene MSPFRepeat(_port, _count, _delay, _result) __MSPFRepeatLastCommand(_port, 0x02, _count, _delay, _result)
MSPFRepeat function. Repeat sending the last Power Function command using the mindsensors NRLink device. Specify the number of times to repeat the command and the number of milliseconds of delay between each repetition. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _count The number of times to repeat the command. _delay The number of milliseconds to delay between each repetition. _result The function call result. NO_ERR or Communications specic errors.
4.19
155
4.19.2.26
#dene MSPFRepeatEx(_port, _addr, _count, _delay, _result) __MSPFRepeatLastCommand(_port, _addr, _count, _delay, _result)
MSPFRepeatEx function. Repeat sending the last Power Function command using the mindsensors NRLink device. Specify the number of times to repeat the command and the number of milliseconds of delay between each repetition. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _count The number of times to repeat the command. _delay The number of milliseconds to delay between each repetition. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.27
#dene MSPFSingleOutputCST(_port, _channel, _out, _func, _result) __MSPFSingleOutput(_port, 0x02, _channel, _out, _func, TRUE, _result)
MSPFSingleOutputCST function. Control a single output on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_CST_CLEAR1_CLEAR2, PF_CST_SET1_CLEAR2, PF_CST_CLEAR1_SET2, PF_CST_SET1_SET2, PF_CST_INCREMENT_PWM, PF_CST_DECREMENT_PWM, PF_CST_FULL_FWD, PF_CST_FULL_REV, and PF_CST_TOGGLE_DIR. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function CST function. See Power Function CST options constants. _result The function call result. NO_ERR or Communications specic errors.
4.19
156
4.19.2.28
#dene MSPFSingleOutputCSTEx(_port, _addr, _channel, _out, _func, _result) __MSPFSingleOutput(_port, _addr, _channel, _out, _func, TRUE, _result)
MSPFSingleOutputCSTEx function. Control a single output on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_CST_CLEAR1_CLEAR2, PF_CST_SET1_CLEAR2, PF_CST_CLEAR1_SET2, PF_CST_SET1_SET2, PF_CST_INCREMENT_PWM, PF_CST_DECREMENT_PWM, PF_CST_FULL_FWD, PF_CST_FULL_REV, and PF_CST_TOGGLE_DIR. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function CST function. See Power Function CST options constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.29
#dene MSPFSingleOutputPWM(_port, _channel, _out, _func, _result) __MSPFSingleOutput(_port, 0x02, _channel, _out, _func, FALSE, _result)
MSPFSingleOutputPWM function. Control the speed of a single output on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
4.19
157
_channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function PWM function. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.30
#dene MSPFSingleOutputPWMEx(_port, _addr, _channel, _out, _func, _result) __MSPFSingleOutput(_port, _addr, _channel, _out, _func, FALSE, _result)
MSPFSingleOutputPWMEx function. Control the speed of a single output on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Valid functions are PF_PWM_FLOAT, PF_PWM_FWD1, PF_PWM_FWD2, PF_PWM_FWD3, PF_PWM_FWD4, PF_PWM_FWD5, PF_PWM_FWD6, PF_PWM_FWD7, PF_PWM_BRAKE, PF_PWM_REV7, PF_PWM_REV6, PF_PWM_REV5, PF_PWM_REV4, PF_PWM_REV3, PF_PWM_REV2, and PF_PWM_REV1. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _func The Power Function PWM function. See Power Function PWM option constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.31
#dene MSPFSinglePin(_port, _channel, _out, _pin, _func, _cont, _result) __MSPFSinglePin(_port, 0x02, _channel, _out, _pin, _func, _cont, _result)
MSPFSinglePin function. Control a single pin on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Select the desired pin using PF_PIN_C1 or PF_PIN_C2. Valid functions are PF_FUNC_NOCHANGE, PF_FUNC_CLEAR, PF_FUNC_Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
158
SET, and PF_FUNC_TOGGLE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. Specify whether the mode by passing true (continuous) or false (timeout) as the nal parameter. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _pin The Power Function pin. See Power Function pin constants. _func The Power Function single pin function. See Power Function single pin function constants. _cont Control whether the mode is continuous or timeout. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.32
#dene MSPFSinglePinEx(_port, _addr, _channel, _out, _pin, _func, _cont, _result) __MSPFSinglePin(_port, _addr, _channel, _out, _pin, _func, _cont, _result)
MSPFSinglePinEx function. Control a single pin on a Power Function receiver set to the specied channel using the mindsensors NRLink device. Select the desired output using PF_OUT_A or PF_OUT_B. Select the desired pin using PF_PIN_C1 or PF_PIN_C2. Valid functions are PF_FUNC_NOCHANGE, PF_FUNC_CLEAR, PF_FUNC_SET, and PF_FUNC_TOGGLE. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. Specify whether the mode by passing true (continuous) or false (timeout) as the nal parameter. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _out The Power Function output. See Power Function output constants. _pin The Power Function pin. See Power Function pin constants. _func The Power Function single pin function. See Power Function single pin function constants. _cont Control whether the mode is continuous or timeout. _result The function call result. NO_ERR or Communications specic errors.
4.19
159
4.19.2.33
#dene MSPFTrain(_port, _channel, _func, _result) __MSIRTrain(_port, 0x02, _channel, _func, TRUE, _result)
MSPFTrain function. Control both outputs on a Power Function receiver set to the specied channel using the mindsensors NRLink device as if it were an IR Train receiver. Valid function values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _channel The Power Function channel. See Power Function channel constants. _func The Power Function train function. See PF/IR Train function constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.34
#dene MSPFTrainEx(_port, _addr, _channel, _func, _result) __MSIRTrain(_port, _addr, _channel, _func, TRUE, _result)
MSPFTrainEx function. Control both outputs on a Power Function receiver set to the specied channel using the mindsensors NRLink device as if it were an IR Train receiver. Valid function values are TRAIN_FUNC_STOP, TRAIN_FUNC_INCR_SPEED, TRAIN_FUNC_DECR_SPEED, and TRAIN_FUNC_TOGGLE_LIGHT. Valid channels are PF_CHANNEL_1 through PF_CHANNEL_4. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _channel The Power Function channel. See Power Function channel constants. _func The Power Function train function. See PF/IR Train function constants. _result The function call result. NO_ERR or Communications specic errors.
4.19.2.35
4.19
160
MSRCXAbsVar function. Send the AbsVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.36
MSRCXAddToDatalog function. Send the AddToDatalog command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.37
MSRCXAndVar function. Send the AndVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.38
MSRCXBatteryLevel function. Send the BatteryLevel command to an RCX to read the current battery level. Parameters: _result The RCX battery level.
4.19
161
4.19.2.39
MSRCXBoot function. Send the Boot command to an RCX. 4.19.2.40 #dene MSRCXCalibrateEvent(_evt, _low, _hi, _hyst) __MSRCXCalibrateEvent(_evt, _low, _hi, _hyst)
MSRCXCalibrateEvent function. Send the CalibrateEvent command to an RCX. Parameters: _evt The event number. _low The low threshold. _hi The high threshold. _hyst The hysterisis value.
4.19.2.41
MSRCXClearAllEvents function. Send the ClearAllEvents command to an RCX. 4.19.2.42 #dene MSRCXClearCounter(_counter) __MSRCXClearCounter(_counter)
MSRCXClearCounter function. Send the ClearCounter command to an RCX. Parameters: _counter The counter to clear.
4.19.2.43
4.19
162
4.19.2.44
MSRCXClearSensor function. Send the ClearSensor command to an RCX. Parameters: _port The RCX port number.
4.19.2.45
MSRCXClearSound function. Send the ClearSound command to an RCX. 4.19.2.46 #dene MSRCXClearTimer(_timer) __MSRCXClearTimer(_timer)
MSRCXClearTimer function. Send the ClearTimer command to an RCX. Parameters: _timer The timer to clear.
4.19.2.47
MSRCXCreateDatalog function. Send the CreateDatalog command to an RCX. Parameters: _size The new datalog size.
4.19.2.48
MSRCXDecCounter function. Send the DecCounter command to an RCX. Parameters: _counter The counter to decrement.
4.19
163
4.19.2.49
MSRCXDeleteSub function. Send the DeleteSub command to an RCX. Parameters: _s The subroutine number to delete.
4.19.2.50
MSRCXDeleteSubs function. Send the DeleteSubs command to an RCX. 4.19.2.51 #dene MSRCXDeleteTask(_t) __MSRCXDeleteTask(_t)
MSRCXDeleteTask function. Send the DeleteTask command to an RCX. Parameters: _t The task number to delete.
4.19.2.52
MSRCXDeleteTasks function. Send the DeleteTasks command to an RCX. 4.19.2.53 #dene MSRCXDisableOutput(_outputs) __MSRCXSetGlobalOutput(_outputs, RCX_OUT_OFF)
MSRCXDisableOutput function. Send the DisableOutput command to an RCX. Parameters: _outputs The RCX output(s) to disable. See RCX output constants.
4.19
164
4.19.2.54
MSRCXDivVar function. Send the DivVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.55
MSRCXEnableOutput function. Send the EnableOutput command to an RCX. Parameters: _outputs The RCX output(s) to enable. See RCX output constants.
4.19.2.56
MSRCXEvent function. Send the Event command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.57
MSRCXFloat function. Send commands to an RCX to oat the specied outputs. Parameters: _outputs The RCX output(s) to oat. See RCX output constants.
4.19
165
4.19.2.58
MSRCXFwd function. Send commands to an RCX to set the specied outputs to the forward direction. Parameters: _outputs The RCX output(s) to set forward. See RCX output constants.
4.19.2.59
MSRCXIncCounter function. Send the IncCounter command to an RCX. Parameters: _counter The counter to increment.
4.19.2.60
MSRCXInvertOutput function. Send the InvertOutput command to an RCX. Parameters: _outputs The RCX output(s) to invert. See RCX output constants.
4.19.2.61
MSRCXMulVar function. Send the MulVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19
166
4.19.2.62
MSRCXMuteSound function. Send the MuteSound command to an RCX. 4.19.2.63 #dene MSRCXObvertOutput(_outputs) __MSRCXSetGlobalDirection(_outputs, RCX_OUT_FWD)
MSRCXObvertOutput function. Send the ObvertOutput command to an RCX. Parameters: _outputs The RCX output(s) to obvert. See RCX output constants.
4.19.2.64
MSRCXOff function. Send commands to an RCX to turn off the specied outputs. Parameters: _outputs The RCX output(s) to turn off. See RCX output constants.
4.19.2.65
MSRCXOn function. Send commands to an RCX to turn on the specied outputs. Parameters: _outputs The RCX output(s) to turn on. See RCX output constants.
4.19.2.66
4.19
167
MSRCXOnFor function. Send commands to an RCX to turn on the specied outputs in the forward direction for the specied duration. Parameters: _outputs The RCX output(s) to turn on. See RCX output constants. _ms The number of milliseconds to leave the outputs on
4.19.2.67
MSRCXOnFwd function. Send commands to an RCX to turn on the specied outputs in the forward direction. Parameters: _outputs The RCX output(s) to turn on in the forward direction. See RCX output constants.
4.19.2.68
MSRCXOnRev function. Send commands to an RCX to turn on the specied outputs in the reverse direction. Parameters: _outputs The RCX output(s) to turn on in the reverse direction. See RCX output constants.
4.19.2.69
MSRCXOrVar function. Send the OrVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19
168
4.19.2.70
MSRCXPBTurnOff function. Send the PBTurnOff command to an RCX. 4.19.2.71 #dene MSRCXPing() __MSRCXOpNoArgs(RCX_PingOp)
MSRCXPing function. Send the Ping command to an RCX. 4.19.2.72 #dene MSRCXPlaySound(_snd) __MSRCXPlaySound(_snd)
MSRCXPlaySound function. Send the PlaySound command to an RCX. Parameters: _snd The sound number to play.
4.19.2.73
MSRCXPlayTone function. Send the PlayTone command to an RCX. Parameters: _freq The frequency of the tone to play. _duration The duration of the tone to play.
4.19.2.74
MSRCXPlayToneVar function. Send the PlayToneVar command to an RCX. Parameters: _varnum The variable containing the tone frequency to play. _duration The duration of the tone to play.
4.19
169
4.19.2.75
MSRCXPoll function. Send the Poll command to an RCX to read a signed 2-byte value at the specied source and value combination. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value. _result The value read from the specied port and value.
4.19.2.76
MSRCXPollMemory function. Send the PollMemory command to an RCX. Parameters: _address The RCX memory address. _result The value read from the specied address.
4.19.2.77
MSRCXRemote function. Send the Remote command to an RCX. Parameters: _cmd The RCX IR remote command to send. See RCX IR remote constants.
4.19.2.78
4.19
170
4.19.2.79
MSRCXRev function. Send commands to an RCX to set the specied outputs to the reverse direction. Parameters: _outputs The RCX output(s) to reverse direction. See RCX output constants.
4.19.2.80
MSRCXSelectDisplay function. Send the SelectDisplay command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.81
MSRCXSelectProgram function. Send the SelectProgram command to an RCX. Parameters: _prog The program number to select.
4.19.2.82
MSRCXSendSerial function. Send the SendSerial command to an RCX. Parameters: _rst The rst byte address. _count The number of bytes to send.
4.19
171
4.19.2.83
MSRCXSet function. Send the Set command to an RCX. Parameters: _dstsrc The RCX destination source. See RCX and Scout source constants. _dstval The RCX destination value. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.84
MSRCXSetDirection function. Send the SetDirection command to an RCX to congure the direction of the specied outputs. Parameters: _outputs The RCX output(s) to set direction. See RCX output constants. _dir The RCX output direction. See RCX output direction constants.
4.19.2.85
MSRCXSetEvent function. Send the SetEvent command to an RCX. Parameters: _evt The event number to set. _src The RCX source. See RCX and Scout source constants. _type The event type.
4.19
172
4.19.2.86
MSRCXSetGlobalDirection function. Send the SetGlobalDirection command to an RCX. Parameters: _outputs The RCX output(s) to set global direction. See RCX output constants. _dir The RCX output direction. See RCX output direction constants.
4.19.2.87
MSRCXSetGlobalOutput function. Send the SetGlobalOutput command to an RCX. Parameters: _outputs The RCX output(s) to set global mode. See RCX output constants. _mode The RCX output mode. See RCX output mode constants.
4.19.2.88
MSRCXSetMaxPower function. Send the SetMaxPower command to an RCX. Parameters: _outputs The RCX output(s) to set max power. See RCX output constants. _pwrsrc The RCX source. See RCX and Scout source constants. _pwrval The RCX value.
4.19.2.89
4.19
173
4.19.2.90
MSRCXSetIRLinkPort function. Set the global port in advance of using the MSRCX and MSScout API functions for sending RCX and Scout messages over the mindsensors NRLink device. The port must be congured as a Lowspeed port before using any of the mindsensors RCX and Scout NRLink functions. Parameters: _port The sensor port. See NBC Input port constants.
4.19.2.91
MSRCXSetIRLinkPortEx function. Set the global port in advance of using the MSRCX and MSScout API functions for sending RCX and Scout messages over the mindsensors NRLink device. The port must be congured as a Lowspeed port before using any of the mindsensors RCX and Scout NRLink functions. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value.
4.19.2.92
MSRCXSetOutput function. Send the SetOutput command to an RCX to congure the mode of the specied outputs Parameters: _outputs The RCX output(s) to set mode. See RCX output constants. _mode The RCX output mode. See RCX output mode constants.
4.19
174
4.19.2.93
MSRCXSetPower function. Send the SetPower command to an RCX to congure the power level of the specied outputs. Parameters: _outputs The RCX output(s) to set power. See RCX output constants. _pwrsrc The RCX source. See RCX and Scout source constants. _pwrval The RCX value.
4.19.2.94
MSRCXSetPriority function. Send the SetPriority command to an RCX. Parameters: _p The new task priority.
4.19.2.95
MSRCXSetSensorMode function. Send the SetSensorMode command to an RCX. Parameters: _port The RCX sensor port. _mode The RCX sensor mode.
4.19.2.96
4.19
175
Parameters: _port The RCX sensor port. _type The RCX sensor type.
4.19.2.97
MSRCXSetSleepTime function. Send the SetSleepTime command to an RCX. Parameters: _t The new sleep time value.
4.19.2.98
MSRCXSetTxPower function. Send the SetTxPower command to an RCX. Parameters: _pwr The IR transmit power level.
4.19.2.99
MSRCXSetUserDisplay function. Send the SetUserDisplay command to an RCX. Parameters: _src The RCX source. See RCX and Scout source constants. _value The RCX value. _precision The number of digits of precision.
4.19.2.100
4.19
176
Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.101
MSRCXSetWatch function. Send the SetWatch command to an RCX. Parameters: _hours The new watch time hours value. _minutes The new watch time minutes value.
4.19.2.102
MSRCXSgnVar function. Send the SgnVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.103
MSRCXStartTask function. Send the StartTask command to an RCX. Parameters: _t The task number to start.
4.19
177
4.19.2.104
MSRCXStopAllTasks function. Send the StopAllTasks command to an RCX. 4.19.2.105 #dene MSRCXStopTask(_t) __MSRCXStopTask(_t)
MSRCXStopTask function. Send the StopTask command to an RCX. Parameters: _t The task number to stop.
4.19.2.106
MSRCXSubVar function. Send the SubVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19.2.107
MSRCXSumVar function. Send the SumVar command to an RCX. Parameters: _varnum The variable number to change. _src The RCX source. See RCX and Scout source constants. _value The RCX value.
4.19
178
4.19.2.108
MSRCXToggle function. Send commands to an RCX to toggle the direction of the specied outputs. Parameters: _outputs The RCX output(s) to toggle. See RCX output constants.
4.19.2.109
MSRCXUnlock function. Send the Unlock command to an RCX. 4.19.2.110 #dene MSRCXUnmuteSound() __MSRCXOpNoArgs(RCX_UnmuteSoundOp)
MSRCXUnmuteSound function. Send the UnmuteSound command to an RCX. 4.19.2.111 #dene MSReadValue(_port, _reg, _bytes, _out, _result) __MSReadValue(_port, 0x02, _reg, _bytes, _out, _result)
Read a mindsensors device value. Read a one or two byte value from a mindsensors sensor. The value must be stored with the least signcant byte (LSB) rst. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _reg The device register to read. _bytes The number of bytes to read. Only 1 or 2 byte values are supported. _out The value read from the device. _result The function call result.
4.19
179
4.19.2.112
#dene MSReadValueEx(_port, _addr, _reg, _bytes, _out, _result) __MSReadValue(_port, _addr, _reg, _bytes, _out, _result)
Read a mindsensors device value. Read a one or two byte value from a mindsensors sensor. The value must be stored with the least signcant byte (LSB) rst. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _reg The device register to read. _bytes The number of bytes to read. Only 1 or 2 byte values are supported. _out The value read from the device. _result The function call result.
4.19.2.113
MSScoutCalibrateSensor function. Send the CalibrateSensor command to a Scout. 4.19.2.114 #dene MSScoutMuteSound() __MSScoutMuteSound()
MSScoutMuteSound function. Send the MuteSound command to a Scout. 4.19.2.115 #dene MSScoutSelectSounds(_grp) __MSScoutSelectSounds(_grp)
MSScoutSelectSounds function. Send the SelectSounds command to a Scout. Parameters: _grp The Scout sound group to select.
4.19
180
4.19.2.116
MSScoutSendVLL function. Send the SendVLL command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.117
MSScoutSetCounterLimit function. Send the SetCounterLimit command to a Scout. Parameters: _ctr The counter for which to set the limit. _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.118
_src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.119
MSScoutSetLight function. Send the SetLight command to a Scout. Parameters: _x Set the light on or off using this value. See Scout light constants.
4.19
181
4.19.2.120
MSScoutSetScoutMode function. Send the SetScoutMode command to a Scout. Parameters: _mode Set the scout mode. See Scout mode constants.
4.19.2.121
#dene MSScoutSetScoutRules(_m, _t, _l, _tm, _fx) __MSScoutSetScoutRules(_m, _t, _l, _tm, _fx)
MSScoutSetScoutRules function. Send the SetScoutRules command to a Scout. Parameters: _m Scout motion rule. See Scout motion rule constants. _t Scout touch rule. See Scout touch rule constants. _l Scout light rule. See Scout light rule constants. _tm Scout transmit rule. See Scout transmit rule constants. _fx Scout special effects rule. See Scout special effect constants.
4.19.2.122
MSScoutSetSensorClickTime function. Send the SetSensorClickTime command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.123
4.19
182
Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.124
MSScoutSetSensorLowerLimit function. Send the SetSensorLowerLimit command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.125
MSScoutSetSensorUpperLimit function. Send the SetSensorUpperLimit command to a Scout. Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19.2.126
MSScoutSetTimerLimit function. Send the SetTimerLimit command to a Scout. Parameters: _tmr The timer for which to set a limit. _src The Scout source. See RCX and Scout source constants. _value The Scout value.
4.19
183
4.19.2.127
MSScoutUnmuteSound function. Send the UnmuteSound command to a Scout. 4.19.2.128 #dene NRLink2400(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_2400, _result)
Congure NRLink in 2400 baud mode. Congure the mindsensors NRLink device in 2400 baud mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.129
Congure NRLink in 2400 baud mode. Congure the mindsensors NRLink device in 2400 baud mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.130
Congure NRLink in 4800 baud mode. Congure the mindsensors NRLink device in 4800 baud mode. The port must be congured as a Lowspeed port before using this function.
4.19
184
Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.131
Congure NRLink in 4800 baud mode. Congure the mindsensors NRLink device in 4800 baud mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.132
Flush NRLink buffers. Flush the mindsensors NRLink device buffers. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.133
Flush NRLink buffers. Flush the mindsensors NRLink device buffers. The port must be congured as a Lowspeed port before using this function.
4.19
185
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.134
Congure NRLink in IR long mode. Congure the mindsensors NRLink device in IR long mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.135
Congure NRLink in IR long mode. Congure the mindsensors NRLink device in IR long mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.136
Congure NRLink in IR short mode. Congure the mindsensors NRLink device in IR short mode. The port must be congured as a Lowspeed port before using this function.
4.19
186
Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.137
Congure NRLink in IR short mode. Congure the mindsensors NRLink device in IR short mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.138
Congure NRLink in power function mode. Congure the mindsensors NRLink device in power function mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.139
Congure NRLink in power function mode. Congure the mindsensors NRLink device in power function mode. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
187
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.140
Congure NRLink in RCX mode. Congure the mindsensors NRLink device in RCX mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.141
Congure NRLink in RCX mode. Congure the mindsensors NRLink device in RCX mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.142
Congure NRLink in IR train mode. Congure the mindsensors NRLink device in IR train mode. The port must be congured as a Lowspeed port before using this function.
4.19
188
Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.143
Congure NRLink in IR train mode. Congure the mindsensors NRLink device in IR train mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.144
Congure NRLink in raw IR transmit mode. Congure the mindsensors NRLink device in raw IR transmit mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.145
Congure NRLink in raw IR transmit mode. Congure the mindsensors NRLink device in raw IR transmit mode. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
189
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.146
Congure PSPNx in analog mode. Congure the mindsensors PSPNx device in analog mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.147
Congure PSPNx in analog mode. Congure the mindsensors PSPNx device in analog mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.148
Congure PSPNx in digital mode. Congure the mindsensors PSPNx device in digital mode. The port must be congured as a Lowspeed port before using this function.
4.19
190
Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.
4.19.2.149
Congure PSPNx in digital mode. Congure the mindsensors PSPNx device in digital mode. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.
4.19.2.150
Read DISTNx distance value. Read the mindsensors DISTNx distance value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _out The distance value. _result The function call result.
4.19.2.151
#dene ReadDISTNxDistanceEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_DIST, 2, _out, _result)
Read DISTNx distance value. Read the mindsensors DISTNx sensors distance value. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
191
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The distance value. _result The function call result.
4.19.2.152
Read DISTNx maximum distance value. Read the mindsensors DISTNx sensors maximum distance value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _out The maximum distance value. _result The function call result.
4.19.2.153
#dene ReadDISTNxMaxDistanceEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_DIST_MAX, 2, _out, _result)
Read DISTNx maximum distance value. Read the mindsensors DISTNx sensors maximum distance value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The maximum distance value. _result The function call result.
4.19
192
4.19.2.154
Read DISTNx minimum distance value. Read the mindsensors DISTNx sensors minimum distance value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _out The minimum distance value. _result The function call result.
4.19.2.155
#dene ReadDISTNxMinDistanceEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_DIST_MIN, 2, _out, _result)
Read DISTNx minimum distance value. Read the mindsensors DISTNx sensors minimum distance value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The minimum distance value. _result The function call result.
4.19.2.156
Read DISTNx module type value. Read the mindsensors DISTNx sensors module type value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
193
_out The module type value. _result The function call result.
4.19.2.157
#dene ReadDISTNxModuleTypeEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_MODULE_TYPE, 1, _out, _result)
Read DISTNx module type value. Read the mindsensors DISTNx sensors module type value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The module type value. _result The function call result.
4.19.2.158
Read DISTNx num points value. Read the mindsensors DISTNx sensors num points value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _out The num points value. _result The function call result.
4.19.2.159
#dene ReadDISTNxNumPointsEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_NUM_POINTS, 1, _out, _result)
Read DISTNx num points value. Read the mindsensors DISTNx sensors num points value. The port must be congured as a Lowspeed port before using this function.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
194
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The num points value. _result The function call result.
4.19.2.160
Read DISTNx voltage value. Read the mindsensors DISTNx sensors voltage value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _out The voltage value. _result The function call result.
4.19.2.161
#dene ReadDISTNxVoltageEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_VOLT, 2, _out, _result)
Read DISTNx voltage value. Read the mindsensors DISTNx sensors voltage value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _out The voltage value. _result The function call result.
4.19
195
4.19.2.162
Read data from NRLink. Read data from the mindsensors NRLink device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _bytes A byte array that will contain the data read from the device on output. _result The function call result.
4.19.2.163
Read data from NRLink. Read data from the mindsensors NRLink device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _bytes A byte array that will contain the data read from the device on output. _result The function call result.
4.19.2.164
Read NRLink status. Read the status of the mindsensors NRLink device. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _value The mindsensors NRLink status. _result The function call result.
4.19
196
4.19.2.165
Read NRLink status. Read the status of the mindsensors NRLink device. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _value The mindsensors NRLink status. _result The function call result.
4.19.2.166
#dene ReadSensorMSAccel(_port, _x, _y, _z, _result) __ReadSensorMSAccelEx(_port, 0x02, _x, _y, _z, _result)
Read mindsensors acceleration values. Read X, Y, and Z axis acceleration values from the mindsensors Accelerometer sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _x The output x-axis acceleration. _y The output y-axis acceleration. _z The output z-axis acceleration. _result The function call result.
4.19.2.167
#dene ReadSensorMSAccelEx(_port, _addr, _x, _y, _z, _result) __ReadSensorMSAccelEx(_port, _addr, _x, _y, _z, _result)
Read mindsensors acceleration values. Read X, Y, and Z axis acceleration values from the mindsensors Accelerometer sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function.
4.19
197
Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _x The output x-axis acceleration. _y The output y-axis acceleration. _z The output z-axis acceleration. _result The function call result.
4.19.2.168
Read mindsensors compass value. Return the Mindsensors Compass sensor value. Parameters: _port The sensor port. See NBC Input port constants. _value The mindsensors compass value
4.19.2.169
Read mindsensors compass value. Return the Mindsensors Compass sensor value. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _value The mindsensors compass value
4.19.2.170
Read mindsensors DROD value. Return the Mindsensors DROD sensor value. Parameters: _port The sensor port. See NBC Input port constants. _value The mindsensors DROD value
4.19
198
4.19.2.171
#dene ReadSensorMSPlayStation(_port, _b1, _b2, _xleft, _yleft, _xright, _yright, _result) __ReadSensorMSPlayStationEx(_port, 0x02, _b1, _b2, _xleft, _yleft, _xright, _yright, _result)
Read mindsensors playstation controller values. Read playstation controller values from the mindsensors playstation sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _b1 The button set 1 values. See MindSensors PSP-Nx button set 1 constants. _b2 The button set 2 values. See MindSensors PSP-Nx button set 2 constants. _xleft The left joystick x value. _yleft The left joystick y value. _xright The right joystick x value. _yright The right joystick y value. _result The function call result.
4.19.2.172
#dene ReadSensorMSPlayStationEx(_port, _addr, _b1, _b2, _xleft, _yleft, _xright, _yright, _result) __ReadSensorMSPlayStationEx(_port, _addr, _b1, _b2, _xleft, _yleft, _xright, _yright, _result)
Read mindsensors playstation controller values. Read playstation controller values from the mindsensors playstation sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _b1 The button set 1 values. See MindSensors PSP-Nx button set 1 constants. _b2 The button set 2 values. See MindSensors PSP-Nx button set 2 constants. _xleft The left joystick x value. _yleft The left joystick y value.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
199
_xright The right joystick x value. _yright The right joystick y value. _result The function call result.
4.19.2.173
Read mindsensors processed pressure value. Return the Mindsensors pressure sensor processed value. Parameters: _port The sensor port. See NBC Input port constants. _value The mindsensors processed pressure value
4.19.2.174
Read mindsensors raw pressure value. Return the Mindsensors pressure sensor raw value. Parameters: _port The sensor port. See NBC Input port constants. _value The mindsensors raw pressure value
4.19.2.175
#dene ReadSensorMSRTClock(_port, _sec, _min, _hrs, _dow, _date, _month, _year, _result) __ReadSensorMSRTClock(_port, _sec, _min, _hrs, _dow, _date, _month, _year, _result)
Read mindsensors RTClock values. Read real-time clock values from the Mindsensors RTClock sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
200
_sec The seconds. _min The minutes. _hrs The hours. _dow The day of week number. _date The day. _month The month. _year The year. _result The function call result.
4.19.2.176
#dene ReadSensorMSTilt(_port, _x, _y, _z, _result) __ReadSensorMSTiltEx(_port, 0x02, _x, _y, _z, _result)
Read mindsensors tilt values. Read X, Y, and Z axis tilt values from the mindsensors tilt sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _x The output x-axis tilt. _y The output y-axis tilt. _z The output z-axis tilt. _result The function call result.
4.19.2.177
#dene ReadSensorMSTiltEx(_port, _addr, _x, _y, _z, _result) __ReadSensorMSTiltEx(_port, _addr, _x, _y, _z, _result)
Read mindsensors tilt values. Read X, Y, and Z axis tilt values from the mindsensors tilt sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
201
_x The output x-axis tilt. _y The output y-axis tilt. _z The output z-axis tilt. _result The function call result.
4.19.2.178
Run NRLink macro. Run the specied mindsensors NRLink device macro. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _macro The address of the macro to execute. _result The function call result.
4.19.2.179
Run NRLink macro. Run the specied mindsensors NRLink device macro. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _macro The address of the macro to execute. _result The function call result.
4.19.2.180
Congure a mindsensors DROD active sensor. Congure the specied port for an active mindsensors DROD sensor.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.19
202
Parameters: _port The port to congure. See NBC Input port constants.
4.19.2.181
Congure a mindsensors DROD inactive sensor. Congure the specied port for an inactive mindsensors DROD sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.19.2.182
Congure a mindsensors pressure sensor. Congure the specied port for a mindsensors pressure sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.19.2.183
Write data to NRLink. Write data to the mindsensors NRLink device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _bytes A byte array containing the data to write. _result The function call result.
4.20
203
4.19.2.184
Write data to NRLink. Write data to the mindsensors NRLink device on the specied port. The port must be congured as a Lowspeed port before using this function. Parameters: _port The sensor port. See NBC Input port constants. _addr The sensor I2C address. See sensor documentation for this value. _bytes A byte array containing the data to write. _result The function call result.
4.20
Macro wrappers for use in dening RIC byte arrays. Denes #dene RICImgPoint(_X, _Y) (_X)&0xFF, (_X)>>8, (_Y)&0xFF, (_Y)>>8
Output an RIC ImgPoint structure.
#dene RICOpDescription(_Options, _Width, _Height) 8, 0, 0, 0, (_Options)&0xFF, (_Options)>>8, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Description opcode.
#dene RICOpCopyBits(_CopyOptions, _DataAddr, _SrcRect, _DstPoint) 18, 0, 3, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_DataAddr)&0xFF, (_DataAddr)>>8, _SrcRect, _DstPoint
Output an RIC CopyBits opcode.
#dene RICOpPixel(_CopyOptions, _Point, _Value) 10, 0, 4, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC Pixel opcode.
4.20
204
#dene RICOpRect(_CopyOptions, _Point, _Width, _Height) 12, 0, 6, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Rect opcode.
#dene RICOpCircle(_CopyOptions, _Point, _Radius) 10, 0, 7, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Radius)&0xFF, (_Radius)>>8
Output an RIC Circle opcode.
#dene RICOpNumBox(_CopyOptions, _Point, _Value) 10, 0, 8, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC NumBox opcode.
#dene RICOpSprite(_DataAddr, _Rows, _BytesPerRow, _SpriteData) Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)&0xFF, Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)>>8, 1, 0, DataAddr)&0xFF, (_DataAddr)>>8, (_Rows)&0xFF, (_Rows)>>8, BytesPerRow)&0xFF, (_BytesPerRow)>>8, _SpriteData
Output an RIC Sprite opcode.
((_((_(_(_-
#dene RICOpVarMap(_DataAddr, _MapCount, _MapFunction) ((_MapCount4)+6)&0xFF, ((_MapCount4)+6)>>8, 2, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_MapCount)&0xFF, (_MapCount)>>8, _MapFunction
Output an RIC VarMap opcode.
(_Domain)&0xFF,
(_-
4.20
205
_arg)
((_arg)|0x1000|(((_-
#dene RICOpPolygon(_CopyOptions, _Count, _ThePoints) ((_Count4)+6)&0xFF, ((_Count4)+6)>>8, 10, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_Count)&0xFF, (_Count)>>8, _ThePoints
Output an RIC Polygon opcode.
#dene RICOpEllipse(_CopyOptions, _Point, _RadiusX, _RadiusY) 12, 0, 9, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_RadiusX)&0xFF, (_RadiusX)>>8, (_RadiusY)&0xFF, (_RadiusY)>>8
Output an RIC Ellipse opcode.
4.20.1
Detailed Description
Macro wrappers for use in dening RIC byte arrays. 4.20.2 4.20.2.1 Dene Documentation #dene RICArg(_arg) ((_arg)|0x1000)
Output an RIC parameterized argument. Parameters: _arg The argument that you want to parameterize.
4.20.2.2
4.20
206
4.20.2.3
Output an RIC ImgRect structure. Parameters: _Pt An ImgPoint. See RICImgPoint. _W The rectangle width. _H The rectangle height.
4.20.2.4
Output an RIC parameterized and mapped argument. Parameters: _mapidx The varmap data address. _arg The parameterized argument you want to pass through a varmap.
4.20.2.5
Output an RIC map element. Parameters: _Domain The map element domain. _Range The map element range.
4.20
207
4.20.2.6
Output an RIC VarMap function. Parameters: _MapElement An entry in the varmap function. At least 2 elements are required. See RICMapElement.
4.20.2.7
#dene RICOpCircle(_CopyOptions, _Point, _Radius) 10, 0, 7, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Radius)&0xFF, (_Radius)>>8
Output an RIC Circle opcode. Parameters: _CopyOptions Circle copy options. See Drawing option constants. _Point The circles center point. See RICImgPoint. _Radius The circles radius.
4.20.2.8
#dene RICOpCopyBits(_CopyOptions, _DataAddr, _SrcRect, _DstPoint) 18, 0, 3, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_DataAddr)&0xFF, (_DataAddr)>>8, _SrcRect, _DstPoint
Output an RIC CopyBits opcode. Parameters: _CopyOptions CopyBits copy options. See Drawing option constants. _DataAddr The address of the sprite from which to copy data. _SrcRect The rectangular portion of the sprite to copy. See RICImgRect. _DstPoint The LCD coordinate to which to copy the data. See RICImgPoint.
4.20
208
4.20.2.9
#dene RICOpDescription(_Options, _Width, _Height) 8, 0, 0, 0, (_Options)&0xFF, (_Options)>>8, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Description opcode. Parameters: _Options RIC options. _Width The total RIC width. _Height The total RIC height.
4.20.2.10
#dene RICOpEllipse(_CopyOptions, _Point, _RadiusX, _RadiusY) 12, 0, 9, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_RadiusX)&0xFF, (_RadiusX)>>8, (_RadiusY)&0xFF, (_RadiusY)>>8
Output an RIC Ellipse opcode. Parameters: _CopyOptions Ellipse copy options. See Drawing option constants. _Point The center of the ellipse. See RICImgPoint. _RadiusX The x-axis radius of the ellipse. _RadiusY The y-axis radius of the ellipse.
4.20.2.11
Output an RIC Line opcode. Parameters: _CopyOptions Line copy options. See Drawing option constants. _Point1 The starting point of the line. See RICImgPoint. _Point2 The ending point of the line. See RICImgPoint.
4.20
209
4.20.2.12
#dene RICOpNumBox(_CopyOptions, _Point, _Value) 10, 0, 8, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC NumBox opcode. Parameters: _CopyOptions NumBox copy options. See Drawing option constants. _Point The numbox bottom left corner. See RICImgPoint. _Value The number to draw.
4.20.2.13
#dene RICOpPixel(_CopyOptions, _Point, _Value) 10, 0, 4, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC Pixel opcode. Parameters: _CopyOptions Pixel copy options. See Drawing option constants. _Point The pixel coordinate. See RICImgPoint. _Value The pixel value (unused).
4.20.2.14
#dene RICOpPolygon(_CopyOptions, _Count, _ThePoints) ((_Count4)+6)&0xFF, ((_Count4)+6)>>8, 10, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_Count)&0xFF, (_Count)>>8, _ThePoints
Output an RIC Polygon opcode. Parameters: _CopyOptions Polygon copy options. See Drawing option constants. _Count The number of points in the polygon. _ThePoints The list of polygon points. See RICPolygonPoints.
4.20
210
4.20.2.15
#dene RICOpRect(_CopyOptions, _Point, _Width, _Height) 12, 0, 6, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Rect opcode. Parameters: _CopyOptions Rect copy options. See Drawing option constants. _Point The rectangles top left corner. See RICImgPoint. _Width The rectangles width. _Height The rectangles height.
4.20.2.16
#dene RICOpSprite(_DataAddr, _Rows, _BytesPerRow, _SpriteData) ((_Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)&0xFF, ((_Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)>>8, 1, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_Rows)&0xFF, (_Rows)>>8, (_BytesPerRow)&0xFF, (_BytesPerRow)>>8, _SpriteData
Output an RIC Sprite opcode. Parameters: _DataAddr The address of the sprite. _Rows The number of rows of data. _BytesPerRow The number of bytes per row. _SpriteData The actual sprite data. See RICSpriteData.
4.20.2.17
#dene RICOpVarMap(_DataAddr, _MapCount, _MapFunction) ((_MapCount4)+6)&0xFF, ((_MapCount4)+6)>>8, 2, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_MapCount)&0xFF, (_MapCount)>>8, _MapFunction
Output an RIC VarMap opcode. Parameters: _DataAddr The address of the varmap.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.21
211
_MapCount The number of points in the function. _MapFunction The denition of the varmap function. See RICMapFunction.
4.20.2.18
Output RIC polygon points. Parameters: _pPoint1 The rst polygon point. See RICImgPoint. _pPoint2 The second polygon point (at least 3 points are required). See RICImgPoint.
4.20.2.19
4.21
Constant string names for all the NXT rmware modules. Denes #dene CommandModuleName "Command.mod" #dene IOCtrlModuleName "IOCtrl.mod" #dene LoaderModuleName "Loader.mod" #dene SoundModuleName "Sound.mod" #dene ButtonModuleName "Button.mod" #dene UIModuleName "Ui.mod" #dene InputModuleName "Input.mod" #dene OutputModuleName "Output.mod" #dene LowSpeedModuleName "Low Speed.mod" #dene DisplayModuleName "Display.mod" #dene CommModuleName "Comm.mod"
4.21
212
4.21.1
Detailed Description
Constant string names for all the NXT rmware modules. 4.21.2 4.21.2.1 Dene Documentation #dene ButtonModuleName "Button.mod" The button module name 4.21.2.2 #dene CommandModuleName "Command.mod" The command module name 4.21.2.3 #dene CommModuleName "Comm.mod" The Comm module name 4.21.2.4 #dene DisplayModuleName "Display.mod" The display module name 4.21.2.5 #dene InputModuleName "Input.mod" The input module name. 4.21.2.6 #dene IOCtrlModuleName "IOCtrl.mod" The IOCtrl module name 4.21.2.7 #dene LoaderModuleName "Loader.mod" The Loader module name 4.21.2.8 #dene LowSpeedModuleName "Low Speed.mod" The low speed module name
4.22
213
4.21.2.9
4.21.2.10
4.21.2.11
4.22
Constant numeric IDs for all the NXT rmware modules. Denes 4.22.1 #dene CommandModuleID 0x00010001 #dene IOCtrlModuleID 0x00060001 #dene LoaderModuleID 0x00090001 #dene SoundModuleID 0x00080001 #dene ButtonModuleID 0x00040001 #dene UIModuleID 0x000C0001 #dene InputModuleID 0x00030001 #dene OutputModuleID 0x00020001 #dene LowSpeedModuleID 0x000B0001 #dene DisplayModuleID 0x000A0001 #dene CommModuleID 0x00050001 Detailed Description
Constant numeric IDs for all the NXT rmware modules. 4.22.2 4.22.2.1 Dene Documentation #dene ButtonModuleID 0x00040001 The button module ID
4.22
214
4.22.2.2
4.22.2.3
4.22.2.4
4.22.2.5
4.22.2.6
4.22.2.7
4.22.2.8
4.22.2.9
4.22.2.10
4.22.2.11
4.23
215
4.23
Miscellaneous constants for use in NBC and NXC. Modules Data type limits
Constants that dene various data type limits.
Denes 4.23.1 #dene TRUE 1 #dene FALSE 0 #dene NA 0xFFFF #dene PI 3.141593 #dene RADIANS_PER_DEGREE PI/180 #dene DEGREES_PER_RADIAN 180/PI Detailed Description
Miscellaneous constants for use in NBC and NXC. 4.23.2 4.23.2.1 Dene Documentation #dene DEGREES_PER_RADIAN 180/PI Used for converting from radians to degrees 4.23.2.2 #dene FALSE 0 A false value 4.23.2.3 #dene NA 0xFFFF The specied argument does not apply (aka unwired) 4.23.2.4 #dene PI 3.141593 A constant for PI
4.24
216
4.23.2.5
4.23.2.6
4.24
Documentation for NXT devices made by companies other than LEGO such as HiTechnic, mindsensors.com, and CodaTex. Modules RCX constants
Constants that are for use with devices that communicate with the RCX or Scout programmable bricks via IR such as the HiTechnic IRLink or the MindSensors nRLink.
4.24.1
Detailed Description
Documentation for NXT devices made by companies other than LEGO such as HiTechnic, mindsensors.com, and CodaTex.
4.25
4.26
217
cmath API
Standard C cmath API functions.
4.25.1
Detailed Description
4.26
Documentation for a simple 3D graphics library. Modules Graphics library begin modes
Constants that are used to specify the polygon surface begin mode.
4.26
218
4.26
219
_glResult)
__glCos32768(_glAngle,
_-
#dene glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId) __glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId)
Create a 3D box.
#dene glPyramid(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId) __glPyramid(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId)
Create a 3D pyramid.
4.26.1
Detailed Description
Documentation for a simple 3D graphics library. The library code was written by Arno van der Vegt. 4.26.2 4.26.2.1 Dene Documentation #dene glAddToAngleX(_glValue) __glAddToAngleX(_glValue)
Add to the X axis angle. Add the specied value to the existing X axis angle. Parameters: _glValue The value to add to the X axis angle.
4.26.2.2
Add to the Y axis angle. Add the specied value to the existing Y axis angle.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.26
220
4.26.2.3
Add to the Z axis angle. Add the specied value to the existing Z axis angle. Parameters: _glValue The value to add to the Z axis angle.
4.26.2.4
Add a vertex to an object. Add a vertex to an object currently being dened. This function should only be used between glBegin and glEnd which are themselves nested within a glBeginObject and glEndObject pair. Parameters: _glX The X axis coordinate. _glY The Y axis coordinate. _glZ The Z axis coordinate.
4.26.2.5
Begin a new polygon for the current object. Start dening a polygon surface for the current graphics object using the specied begin mode. Parameters: _glBeginMode The desired mode. See Graphics library begin modes.
4.26
221
4.26.2.6
Begin dening an object. Start the process of dening a graphics library object using low level functions such as glBegin, glAddVertex, and glEnd. Parameters: _glObjId The object index of the new object being created.
4.26.2.7
Begin a new render. Start the process of rendering the existing graphic objects. 4.26.2.8 #dene glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId) __glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId)
Create a 3D box. Dene a 3D box using the specied begin mode for all faces. The center of the box is at the origin of the XYZ axis with width, height, and depth specied via the glSizeX, glSizeY, and glSizeZ parameters. Parameters: _glMode The begin mode for each surface. See Graphics library begin modes. _glSizeX The X axis size (width). _glSizeY The Y axis size (height). _glSizeZ The Z axis size (depth). _glObjId The object ID of the new object.
4.26.2.9
Call a graphic object. Tell the graphics library that you want it to include the specied object in the render. Parameters: _glObjectId The desired object id.
4.26
222
4.26.2.10
Table-based cosine scaled by 32768. Return the cosine of the specied angle in degrees. The result is scaled by 32768. Parameters: _glAngle The angle in degrees. _glResult The cosine value scaled by 32768.
4.26.2.11
Create a 3D cube. Dene a 3D cube using the specied begin mode for all faces. The center of the box is at the origin of the XYZ axis with equal width, height, and depth specied via the glSize parameter. Parameters: _glMode The begin mode for each surface. See Graphics library begin modes. _glSize The cubes width, height, and depth. _glObjId The object ID of the new object.
4.26.2.12
Finish a polygon for the current object. Stop dening a polgyon surface for the current graphics object. 4.26.2.13 #dene glEndObject() __glEndObject()
Stop dening an object. Finish the process of dening a graphics library object. Call this function after you have completed the object denition.
4.26
223
4.26.2.14
Finish the current render. Rotate the vertex list, clear the screen, and draw the rendered objects to the LCD. 4.26.2.15 #dene glInit() __glInit()
Initialize graphics library. Setup all the necessary data for the graphics library to function. Call this function before any other graphics library routine. 4.26.2.16 #dene glObjectAction(_glObjectId, _glAction, _glValue) __glObjectAction(_glObjectId, _glAction, _glValue)
Perform an object action. Execute the specied action on the specied object. Parameters: _glObjectId The object id. _glAction The action to perform on the object. See Graphics library actions. _glValue The setting value.
4.26.2.17
#dene glPyramid(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId) __glPyramid(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId)
Create a 3D pyramid. Dene a 3D pyramid using the specied begin mode for all faces. The center of the pyramid is at the origin of the XYZ axis with width, height, and depth specied via the glSizeX, glSizeY, and glSizeZ parameters. Parameters: _glMode The begin mode for each surface. See Graphics library begin modes. _glSizeX The X axis size (width). _glSizeY The Y axis size (height). _glSizeZ The Z axis size (depth). _glObjId The object ID of the new object.
4.26
224
4.26.2.18
Set graphics library options. Adjust graphic library settings for circle size and cull mode. Parameters: _glType The setting type. See Graphics library settings. _glValue The setting value. For culling modes see Graphics library cull mode.
4.26.2.19
Set the X axis angle. Set the X axis angle to the specied value. Parameters: _glValue The new X axis angle.
4.26.2.20
Set the Y axis angle. Set the Y axis angle to the specied value. Parameters: _glValue The new Y axis angle.
4.26.2.21
Set the Z axis angle. Set the Z axis angle to the specied value. Parameters: _glValue The new Z axis angle.
4.27
225
4.26.2.22
Table-based sine scaled by 32768. Return the sine of the specied angle in degrees. The result is scaled by 32768. Parameters: _glAngle The angle in degrees. _glResult The sine value scaled by 32768.
4.27
Functions for accessing and modifying output module features. Denes #dene ResetTachoCount(_p) __resetTachoCount(_p)
Reset tachometer counter.
#dene OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d) __OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d)
Run motors forward and reset counters.
#dene OnRevExPID(_ports, _pwr, _reset, _p, _i, _d) __OnRevExPID(_ports, _pwr, _reset, _p, _i, _d)
4.27
226
_pwr)
OnFwdEx(_ports,
_pwr,
RESET_-
_pwr)
OnRevEx(_ports,
_pwr,
RESET_-
#dene OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d)
Run motors forward regulated and reset counters with PID factors.
#dene OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d)
Run motors backward regulated and reset counters with PID factors.
4.27
227
#dene OnFwdRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnFwdRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors forward regulated with PID factors.
#dene OnRevRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnRevRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors reverse regulated with PID factors.
#dene OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d)
Run motors forward synchronised and reset counters with PID factors.
#dene OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d)
Run motors backward synchronised and reset counters with PID factors.
#dene OnFwdSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnFwdSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors forward synchronised with PID factors.
4.27
228
#dene OnRevSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnRevSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors backward synchronised with PID factors.
#dene RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d)
Rotate motor.
#dene RotateMotorPID(_ports, _pwr, _angle, _p, _i, _d) RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, _p, _i, _d)
Rotate motor with PID factors.
__-
#dene RotateMotorEx(_ports, _pwr, _angle, _turnpct, _bSync, _bStop) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, PID_1, PID_0, PID_3)
Rotate motor.
#dene RotateMotor(_ports, _pwr, _angle) __RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, PID_1, PID_0, PID_3)
Rotate motor.
4.27.1
Detailed Description
Functions for accessing and modifying output module features. 4.27.2 4.27.2.1 Dene Documentation #dene Coast(_ports) CoastEx(_ports, RESET_BLOCKANDTACHO)
Coast motors. Turn off the specied outputs, making them coast to a stop.
4.27
229
Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function.
4.27.2.2
Coast motors and reset counters. Turn off the specied outputs, making them coast to a stop. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.3
Float motors. Make outputs oat. Float is an alias for Coast. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function.
4.27.2.4
Get motor PWN frequency. Get the current motor pulse width modulation frequency. Parameters: _n The motor pwn frequency
4.27
230
4.27.2.5
Turn motors off. Turn the specied outputs off (with braking). Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function.
4.27.2.6
Turn motors off and reset counters. Turn the specied outputs off (with braking). Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.7
Run motors forward. Set outputs to forward direction and turn them on. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction.
4.27
231
4.27.2.8
Run motors forward and reset counters. Set outputs to forward direction and turn them on. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.9
#dene OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d) __OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d)
Run motors forward and reset counters. Set outputs to forward direction and turn them on. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27
232
4.27.2.10
Run motors forward regulated. Run the specied outputs forward using the specied regulation mode. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants.
4.27.2.11
Run motors forward regulated and reset counters. Run the specied outputs forward using the specied regulation mode. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.12
#dene OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d)
Run motors forward regulated and reset counters with PID factors. Run the specied outputs forward using the specied regulation mode. Specify proportional, integral, and derivative factors.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.27
233
Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.13
#dene OnFwdRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnFwdRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors forward regulated with PID factors. Run the specied outputs forward using the specied regulation mode. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27
234
4.27.2.14
Run motors forward synchronised. Run the specied outputs forward with regulated synchronization using the specied turn ratio. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction.
4.27.2.15
Run motors forward synchronised and reset counters. Run the specied outputs forward with regulated synchronization using the specied turn ratio. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.16
#dene OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d)
4.27
235
Run motors forward synchronised and reset counters with PID factors. Run the specied outputs forward with regulated synchronization using the specied turn ratio. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.17
#dene OnFwdSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnFwdSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors forward synchronised with PID factors. Run the specied outputs forward with regulated synchronization using the specied turn ratio. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.27
236
_i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.18
Run motors backward. Set outputs to reverse direction and turn them on. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction.
4.27.2.19
Run motors backward and reset counters. Set outputs to reverse direction and turn them on. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.20
#dene OnRevExPID(_ports, _pwr, _reset, _p, _i, _d) __OnRevExPID(_ports, _pwr, _reset, _p, _i, _d)
4.27
237
Run motors backward and reset counters. Set outputs to reverse direction and turn them on. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.21
Run motors forward regulated. Run the specied outputs in reverse using the specied regulation mode. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants.
4.27.2.22
Run motors backward regulated and reset counters. Run the specied outputs in reverse using the specied regulation mode.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.27
238
Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.23
#dene OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d)
Run motors backward regulated and reset counters with PID factors. Run the specied outputs in reverse using the specied regulation mode. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.24
#dene OnRevRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnRevRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d)
4.27
239
Run motors reverse regulated with PID factors. Run the specied outputs in reverse using the specied regulation mode. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _regmode Regulation mode, see Output port regulation mode constants. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.25
Run motors backward synchronised. Run the specied outputs in reverse with regulated synchronization using the specied turn ratio. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction.
4.27.2.26
Run motors backward synchronised and reset counters. Run the specied outputs in reverse with regulated synchronization using the specied turn ratio.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.27
240
Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags.
4.27.2.27
#dene OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d)
Run motors backward synchronised and reset counters with PID factors. Run the specied outputs in reverse with regulated synchronization using the specied turn ratio. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _reset Position counters reset control. It must be a constant, see Tachometer counter reset ags. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.28
#dene OnRevSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnRevSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d)
4.27
241
Run motors backward synchronised with PID factors. Run the specied outputs in reverse with regulated synchronization using the specied turn ratio. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.29
Reset all tachometer counters. Reset all three position counters and reset the current tachometer limit goal for the specied outputs. Parameters: _p Desired output ports. Can be a constant or a variable, see Output port constants. For multiple outputs at the same time you need to add single output port values into a byte array and pass the array instead of a single numeric value.
4.27.2.30
Reset block-relative counter. Reset the block-relative position counter for the specied outputs. Parameters: _p Desired output ports. Can be a constant or a variable, see Output port constants. For multiple outputs at the same time you need to add single output port values into a byte array and pass the array instead of a single numeric value.
4.27
242
4.27.2.31
Reset program-relative counter. Reset the program-relative position counter for the specied outputs. Parameters: _p Desired output ports. Can be a constant or a variable, see Output port constants. For multiple outputs at the same time you need to add single output port values into a byte array and pass the array instead of a single numeric value.
4.27.2.32
Reset tachometer counter. Reset the tachometer count and tachometer limit goal for the specied outputs. Parameters: _p Desired output ports. Can be a constant or a variable, see Output port constants. For multiple outputs at the same time you need to add single output port values into a byte array and pass the array instead of a single numeric value.
4.27.2.33
#dene RotateMotor(_ports, _pwr, _angle) __RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, PID_1, PID_0, PID_3)
Rotate motor. Run the specied outputs forward for the specied number of degrees. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _angle Angle limit, in degree. Can be negative to reverse direction.
4.27
243
4.27.2.34
#dene RotateMotorEx(_ports, _pwr, _angle, _turnpct, _bSync, _bStop) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, PID_1, PID_0, PID_3)
Rotate motor. Run the specied outputs forward for the specied number of degrees. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _angle Angle limit, in degree. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _bSync Synchronise two motors. Should be set to true if a non-zero turn percent is specied or no turning will occur. _bStop Specify whether the motor(s) should brake at the end of the rotation.
4.27.2.35
#dene RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d)
Rotate motor. Run the specied outputs forward for the specied number of degrees. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _angle Angle limit, in degree. Can be negative to reverse direction. _turnpct Turn ratio, -100 to 100. The direction of your vehicle will depend on its construction. _bSync Synchronise two motors. Should be set to true if a non-zero turn percent is specied or no turning will occur.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.27
244
_bStop Specify whether the motor(s) should brake at the end of the rotation. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.36
#dene RotateMotorPID(_ports, _pwr, _angle, _p, _i, _d) __RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, _p, _i, _d)
Rotate motor with PID factors. Run the specied outputs forward for the specied number of degrees. Specify proportional, integral, and derivative factors. Parameters: _ports Desired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function. _pwr Output power, 0 to 100. Can be negative to reverse direction. _angle Angle limit, in degree. Can be negative to reverse direction. _p Proportional factor used by the rmwares PID motor control algorithm. See PID constants. _i Integral factor used by the rmwares PID motor control algorithm. See PID constants. _d Derivative factor used by the rmwares PID motor control algorithm. See PID constants.
4.27.2.37
Set motor PWN frequency. Set the motor PWN frequency. Parameters: _n The motor pwn frequency
4.28
245
4.28
Functions for accessing and modifying input module features. Denes #dene SetSensorType(_port, _t) setin _t, _port, Type
Set sensor type.
4.28
246
_result)
__-
#dene ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result) __ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result)
Read LEGO color sensor extra.
_n)
__-
4.28
247
4.28
248
_n)
__-
4.28.1
Detailed Description
Functions for accessing and modifying input module features. 4.28.2 4.28.2.1 Dene Documentation #dene ClearSensor(_port) setin 0, _port, ScaledValue
Clear a sensor value. Clear the value of a sensor - only affects sensors that are congured to measure a cumulative quantity such as rotation or a pulse count. Parameters: _port The port to clear. See NBC Input port constants.
4.28.2.2
Read a LEGO color sensor AD raw value. This function lets you directly access a specic LEGO color sensor AD raw value. Both the port and the color index must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _nc The color index. See Color sensor array indices. Must be a constant. _n The AD raw value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28
249
4.28.2.3
Read a LEGO color sensor boolean value. This function lets you directly access a specic LEGO color sensor boolean value. Both the port and the color index must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _nc The color index. See Color sensor array indices. Must be a constant. _n The boolean value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.4
Read a LEGO color sensor calibration point value. This function lets you directly access a specic LEGO color calibration point value. The port, point, and color index must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _np The calibration point. See Color calibration constants. Must be a constant. _nc The color index. See Color sensor array indices. Must be a constant. _n The calibration point value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.5
Read LEGO color sensor calibration state. This function lets you directly access the LEGO color calibration state. The port must be a constant.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.28
250
Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The calibration state. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.6
Read a LEGO color sensor calibration limit value. This function lets you directly access a specic LEGO color calibration limit value. The port and the point must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _np The calibration point. See Color calibration constants. Must be a constant. _n The calibration limit value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.7
Read a LEGO color sensor raw value. This function lets you directly access a specic LEGO color sensor raw value. Both the port and the color index must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _nc The color index. See Color sensor array indices. Must be a constant. _n The raw value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28
251
4.28.2.8
Read a LEGO color sensor scaled value. This function lets you directly access a specic LEGO color sensor scaled value. Both the port and the color index must be constants. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _nc The color index. See Color sensor array indices. Must be a constant. _n The scaled value. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.9
Get the custom sensor active status. Return the custom sensor active status value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. _n The custom sensor active status.
4.28.2.10
Get the custom sensor percent full scale. Return the custom sensor percent full scale value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. _n The custom sensor percent full scale.
4.28
252
4.28.2.11
Get the custom sensor zero offset. Return the custom sensor zero offset value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. _n The custom sensor zero offset.
4.28.2.12
Read sensor digital pins direction. Return the digital pins direction value of a sensor on the specied port. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The sensors digital pins direction.
4.28.2.13
Read sensor digital pins output level. Return the digital pins output level value of a sensor on the specied port. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The sensors digital pins output level.
4.28.2.14
Read sensor digital pins status. Return the digital pins status value of a sensor on the specied port.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.28
253
Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The sensors digital pins status.
4.28.2.15
Read sensor boolean value. Return the boolean value of a sensor on the specied port. Boolean conversion is either done based on preset cutoffs, or a slope parameter specied by calling SetSensorMode. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The sensors boolean value.
4.28.2.16
Read sensor scaled value. Return the processed sensor reading for a sensor on the specied port. Parameters: _port The sensor port. See NBC Input port constants. A variable whose value is the desired sensor port may also be used. _value The sensors scaled value.
4.28.2.17
#dene ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result) __ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result)
Read LEGO color sensor extra. This function lets you read the LEGO color sensor. It returns the color value, and three arrays containing raw, normalized, and scaled color values for red, green, blue, and none indices. Parameters: _port The sensor port. See NBC Input port constants.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.28
254
_colorval The color value. See Color values. _rawVals An array containing four raw color values. See Color sensor array indices. _normVals An array containing four normalized color values. See Color sensor array indices. _scaledVals An array containing four scaled color values. See Color sensor array indices. _result The function call result. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.18
Read LEGO color sensor raw values. This function lets you read the LEGO color sensor. It returns an array containing raw color values for red, green, blue, and none indices. Parameters: _port The sensor port. See NBC Input port constants. _rawVals An array containing four raw color values. See Color sensor array indices. _result The function call result. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.19
Reset the sensor port. Sets the invalid data ag on the specied port and waits for it to become valid again. After changing the type or the mode of a sensor port you must call this function to give the rmware time to recongure the sensor port. Parameters: _port The port to reset. See NBC Input port constants.
4.28
255
4.28.2.20
Set active status. Sets the active status value of a custom sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new active status value.
4.28.2.21
Set percent full scale. Sets the percent full scale value of a custom sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new percent full scale value.
4.28.2.22
Set custom zero offset. Sets the zero offset value of a custom sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new zero offset value.
4.28.2.23
Set digital pins direction. Sets the digital pins direction value of a sensor.
4.28
256
Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new digital pins direction value.
4.28.2.24
Set digital pins output level. Sets the digital pins output level value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new digital pins output level value.
4.28.2.25
Set digital pins status. Sets the digital pins status value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new digital pins status value.
4.28.2.26
Set sensor boolean value. Sets the boolean value of a sensor. Parameters: _p The sensor port. See NBC Input port constants. Must be a constant. _n The new boolean value.
4.28
257
4.28.2.27
Congure an NXT 2.0 blue light sensor. Congure the sensor on the specied port as an NXT 2.0 color sensor in blue light mode. Requires an NXT 2.0 compatible rmware. Parameters: _port The port to congure. See NBC Input port constants. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.28
Congure an NXT 2.0 full color sensor. Congure the sensor on the specied port as an NXT 2.0 color sensor in full color mode. Requires an NXT 2.0 compatible rmware. Parameters: _port The port to congure. See NBC Input port constants. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.29
Congure an NXT 2.0 green light sensor. Congure the sensor on the specied port as an NXT 2.0 color sensor in green light mode. Requires an NXT 2.0 compatible rmware. Parameters: _port The port to congure. See NBC Input port constants. Warning: This function requires an NXT 2.0 compatible rmware.
4.28
258
4.28.2.30
Congure an NXT 2.0 no light sensor. Congure the sensor on the specied port as an NXT 2.0 color sensor in no light mode. Requires an NXT 2.0 compatible rmware. Parameters: _port The port to congure. See NBC Input port constants. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.31
Congure an NXT 2.0 red light sensor. Congure the sensor on the specied port as an NXT 2.0 color sensor in red light mode. Requires an NXT 2.0 compatible rmware. Parameters: _port The port to congure. See NBC Input port constants. Warning: This function requires an NXT 2.0 compatible rmware.
4.28.2.32
Congure a light sensor. Congure the sensor on the specied port as an NXT light sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.28.2.33
Congure an I2C sensor. Congure the sensor on the specied port as a 9V powered I2C digital sensor.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.28
259
Parameters: _port The port to congure. See NBC Input port constants.
4.28.2.34
Set sensor mode. Set a sensors mode, which should be one of the predened sensor mode constants. A slope parameter for boolean conversion, if desired, may be added to the mode. After changing the type or the mode of a sensor port you must call ResetSensor to give the rmware time to recongure the sensor port. See also: SetSensorType() Parameters: _port The port to congure. See NBC Input port constants. _m The desired sensor mode. See NBC sensor mode constants.
4.28.2.35
Congure a sound sensor. Congure the sensor on the specied port as a sound sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.28.2.36
Congure a touch sensor. Congure the sensor on the specied port as a touch sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.29
260
4.28.2.37
Set sensor type. Set a sensors type, which must be one of the predened sensor type constants. After changing the type or the mode of a sensor port you must call ResetSensor to give the rmware time to recongure the sensor port. See also: SetSensorMode() Parameters: _port The port to congure. See NBC Input port constants. _t The desired sensor type. See NBC sensor type constants.
4.28.2.38
Congure an ultrasonic sensor. Congure the sensor on the specied port as an ultrasonic sensor. Parameters: _port The port to congure. See NBC Input port constants.
4.29
Functions for accessing and modifying low speed module features. Modules Low level LowSpeed module functions
Low level functions for accessing low speed module features.
4.29
261
#dene ReadI2CRegister(_port, _reg, _out, _result) __MSReadValue(_port, 0x02, _reg, 1, _out, _result)
Read I2C register.
#dene WriteI2CRegister(_port, _reg, _val, _result) __MSWriteToRegister(_port, 0x02, _reg, _val, _result)
Write I2C register.
#dene ReadI2CBytes(_port, _inbuf, _count, _outbuf, ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result)
Perform an I2C write/read transaction.
_result)
__-
_info,
_strVal)
__-
4.29
262
4.29.1
Detailed Description
Functions for accessing and modifying low speed module features. 4.29.2 4.29.2.1 Dene Documentation #dene I2CSendCommand(_port, _cmd, _result) __I2CSendCmd(_port, 0x02, _cmd, _result)
Send an I2C command. Send a command to an I2C device at the standard command register: I2C_REG_CMD. The I2C device must use address 0x02.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
263
Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _cmd The command to send to the I2C device. _result A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values.
4.29.2.2
Send an I2C command extra. Send a command to an I2C device at the standard command register: I2C_REG_CMD. The I2C device uses the specied address. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _addr The I2C device address. _cmd The command to send to the I2C device. _result A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values.
4.29.2.3
Get lowspeed bytes ready. This method checks the number of bytes that are ready to be read on the specied port. If the last operation on this port was a successful LowspeedWrite call that requested response data from the device then the return value will be the number of bytes in the internal read buffer. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
264
_bready The number of bytes available to be read from the internal I2C buffer. The maximum number of bytes that can be read is 16. See also: LowspeedRead, LowspeedWrite, and LowspeedStatus
4.29.2.4
Check lowspeed status. This method checks the status of the I2C communication on the specied port. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _result A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values. If the return value is NO_ERR then the last operation did not cause any errors. Avoid calls to LowspeedRead or LowspeedWrite while LowspeedCheckStatus returns STAT_COMM_PENDING. See also: LowspeedRead, LowspeedWrite, and LowspeedStatus
4.29.2.5
Read lowspeed data. Read the specied number of bytes from the I2C device on the specied port and store the bytes read in the byte array buffer provided. The maximum number of bytes that can be written or read is 16. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
265
_buen The initial size of the output buffer. _buffer A byte array that contains the data read from the internal I2C buffer. If the return value is negative then the output buffer will be empty. _result A status code indicating whether the write completed successfully or not. See TCommLSRead for possible Result values. If the return value is NO_ERR then the last operation did not cause any errors. See also: LowspeedWrite, LowspeedCheckStatus, LowspeedBytesReady, and LowspeedStatus
4.29.2.6
Get lowspeed status. This method checks the status of the I2C communication on the specied port. If the last operation on this port was a successful LowspeedWrite call that requested response data from the device then bytesready will be set to the number of bytes in the internal read buffer. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _bready The number of bytes available to be read from the internal I2C buffer. The maximum number of bytes that can be read is 16. _result A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values. If the return value is NO_ERR then the last operation did not cause any errors. Avoid calls to LowspeedRead or LowspeedWrite while LowspeedStatus returns STAT_COMM_PENDING. See also: LowspeedRead, LowspeedWrite, and LowspeedCheckStatus
4.29.2.7
4.29
266
Write lowspeed data. This method starts a transaction to write the bytes contained in the array buffer to the I2C device on the specied port. It also tells the I2C device the number of bytes that should be included in the response. The maximum number of bytes that can be written or read is 16. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _retlen The number of bytes that should be returned by the I2C device. _buffer A byte array containing the address of the I2C device, the I2C device register at which to write data, and up to 14 bytes of data to be written at the specied register. _result A status code indicating whether the write completed successfully or not. See TCommLSWrite for possible Result values. If the return value is NO_ERR then the last operation did not cause any errors. See also: LowspeedRead, LowspeedCheckStatus, LowspeedBytesReady, and LowspeedStatus
4.29.2.8
#dene ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result) __ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result)
Perform an I2C write/read transaction. This method writes the bytes contained in the input buffer (inbuf) to the I2C device on the specied port, checks for the specied number of bytes to be ready for reading, and then tries to read the specied number (count) of bytes from the I2C device into the output buffer (outbuf). This is a higher-level wrapper around the three main I2C functions. It also maintains a "last good read" buffer and returns values from that buffer if the I2C communication transaction fails. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _inbuf A byte array containing the address of the I2C device, the I2C device register at which to write data, and up to 14 bytes of data to be written at the specied register.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
267
_count The number of bytes that should be returned by the I2C device. On output count is set to the number of bytes in outbuf. _outbuf A byte array that contains the data read from the internal I2C buffer. _result Returns true or false indicating whether the I2C transaction succeeded or failed. See also: LowspeedRead, LowspeedWrite, LowspeedCheckStatus, LowspeedBytesReady, and LowspeedStatus
4.29.2.9
Read I2C device identier. Read standard I2C device identier. The I2C device must use address 0x02. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _strVal A string containing the device identier. See also: ReadI2CDeviceIdEx
4.29.2.10
Read I2C device identier extra. Read standard I2C device identier. The I2C device uses the specied address. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
268
_addr The I2C device address. _strVal A string containing the device identier. See also: ReadI2CDeviceId
4.29.2.11
Read I2C device information. Read standard I2C device information: version, vendor, and device ID. The I2C device must use address 0x02. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _info A value indicating the type of device information you are requesting. See Standard I2C constants. _strVal A string containing the requested device information. See also: I2CDeviceInfoEx
4.29.2.12
Read I2C device information extra. Read standard I2C device information: version, vendor, and device ID. The I2C device uses the specied address. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _addr The I2C device address.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.29
269
_info A value indicating the type of device information you are requesting. See Standard I2C constants. _strVal A string containing the requested device information. See also: I2CDeviceInfo
4.29.2.13
#dene ReadI2CRegister(_port, _reg, _out, _result) __MSReadValue(_port, 0x02, _reg, 1, _out, _result)
Read I2C register. Read a single byte from an I2C device register. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. _reg The I2C device register from which to read a single byte. _out The single byte read from the I2C device. _result A status code indicating whether the read completed successfully or not. See TCommLSRead for possible Result values.
4.29.2.14
Read I2C device vendor. Read standard I2C device vendor. The I2C device must use address 0x02. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _strVal A string containing the device vendor. See also: ReadI2CVendorIdEx
4.29
270
4.29.2.15
Read I2C device vendor extra. Read standard I2C device vendor. The I2C device uses the specied address. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _addr The I2C device address. _strVal A string containing the device vendor. See also: ReadI2CVendorId
4.29.2.16
Read I2C device version. Read standard I2C device version. The I2C device must use address 0x02. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _strVal A string containing the device version. See also: ReadI2CVersionEx
4.29.2.17
4.29
271
Read I2C device version extra. Read standard I2C device version. The I2C device uses the specied address. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads. _addr The I2C device address. _strVal A string containing the device version. See also: ReadI2CVersion
4.29.2.18
Read ultrasonic sensor value. Return the ultrasonic sensor distance value. Since an ultrasonic sensor is an I2C digital sensor its value cannot be read using the standard Sensor(n) value. The port must be congured as a Lowspeed port before using this function. Parameters: _port The port to which the ultrasonic sensor is attached. See the NBC Input port constants group. You may use a constant or a variable. _value The ultrasonic sensor distance value (0..255)
4.29.2.19
Read multiple ultrasonic sensor values. Return eight ultrasonic sensor distance values. Parameters: _port The port to which the ultrasonic sensor is attached. See the NBC Input port constants group. You may use a constant or a variable. _values An array of bytes that will contain the 8 distance values read from the ultrasonic sensor. _result A status code indicating whether the read completed successfully or not. See TCommLSRead for possible Result values.
4.30
272
4.29.2.20
#dene WriteI2CRegister(_port, _reg, _val, _result) __MSWriteToRegister(_port, 0x02, _reg, _val, _result)
Write I2C register. Write a single byte to an I2C device register. Parameters: _port The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. _reg The I2C device register to which to write a single byte. _val The byte to write to the I2C device. _result A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values.
4.30
Low level functions for accessing low speed module features. Denes #dene GetLSInputBuffer(_p, _offset, _cnt, _data) __getLSInputBuffer(_p, _offset, _cnt, _data)
Get I2C input buffer data.
_n)
__-
4.30
273
_n)
__-
4.30.1
Detailed Description
Low level functions for accessing low speed module features. 4.30.2 4.30.2.1 Dene Documentation #dene GetLSChannelState(_p, _n) __GetLSChannelState(_p, _n)
Get I2C channel state. This method returns the value of the I2C channel state for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C port channel state. See LSChannelState constants.
4.30
274
4.30.2.2
Get I2C error type. This method returns the value of the I2C error type for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C port error type. See LSErrorType constants.
4.30.2.3
Get I2C input buffer data. This method reads count bytes of data from the I2C input buffer for the specied port and writes it to the buffer provided. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _offset A constant offset into the I2C input buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the I2C input buffer.
4.30.2.4
Get I2C input buffer bytes to rx. This method returns the value of the bytes to rx eld of the I2C input buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C input buffers bytes to rx value.
4.30
275
4.30.2.5
Get I2C input buffer in-pointer. This method returns the value of the input pointer of the I2C input buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C input buffers in-pointer value.
4.30.2.6
Get I2C input buffer out-pointer. This method returns the value of the output pointer of the I2C input buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C input buffers out-pointer value.
4.30.2.7
Get I2C mode. This method returns the value of the I2C mode for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C port mode. See LSMode constants.
4.30.2.8
Get I2C no restart on read setting. This method returns the value of the I2C no restart on read eld. Parameters: _n The I2C no restart on read eld. See LSNoRestartOnRead constants.
4.30
276
4.30.2.9
Get I2C output buffer data. This method reads cnt bytes of data from the I2C output buffer for the specied port and writes it to the buffer provided. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _offset A constant offset into the I2C output buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the I2C output buffer.
4.30.2.10
Get I2C output buffer bytes to rx. This method returns the value of the bytes to rx eld of the I2C output buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C output buffers bytes to rx value.
4.30.2.11
Get I2C output buffer in-pointer. This method returns the value of the input pointer of the I2C output buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C output buffers in-pointer value.
4.31
277
4.30.2.12
Get I2C output buffer out-pointer. This method returns the value of the output pointer of the I2C output buffer for the specied port. Parameters: _p A constant port number (S1..S4). See NBC Input port constants. _n The I2C output buffers out-pointer value.
4.30.2.13
Get I2C speed. This method returns the value of the I2C speed. Parameters: _n The I2C speed. Warning: This function is unimplemented within the rmware.
4.30.2.14
Get I2C state. This method returns the value of the I2C state. Parameters: _n The I2C state. See LSState constants.
4.31
Functions for accessing and modifying display module features. Denes #dene ClearLine(_line) __TextOutEx(0, _line, __BlankLine, 0)
Clear a line on the LCD screen.
4.31
278
4.31
279
_y,
_le)
__GraphicOutEx(_x,_y,_le,__-
_vars,
_options)
__-
Draw a graphic image from byte array with parameters and drawing options.
4.31
280
__-
4.31
281
__-
4.31.1
Detailed Description
Functions for accessing and modifying display module features. 4.31.2 4.31.2.1 Dene Documentation #dene CircleOut(_x, _y, _r) __CircleOutEx(_x,_y,_r,0)
Draw a circle. This function lets you draw a circle on the screen with its center at the specied x and y location, using the specied radius. See also: TDrawCircle Parameters: _x The x value for the center of the circle. _y The y value for the center of the circle. _r The radius of the circle.
4.31
282
4.31.2.2
Draw a circle with drawing options. This function lets you draw a circle on the screen with its center at the specied x and y location, using the specied radius. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawCircle Parameters: _x The x value for the center of the circle. _y The y value for the center of the circle. _r The radius of the circle. _options The optional drawing options.
4.31.2.3
Clear a line on the LCD screen. This function lets you clear a single line on the NXT LCD. Parameters: _line The line you want to clear. See Line number constants.
4.31.2.4
Clear LCD screen. This function lets you clear the NXT LCD to a blank screen. 4.31.2.5 #dene EllipseOut(_x, _y, _rX, _rY) __EllipseOutEx(_x,_y,_rX,_rY,0)
Draw an ellipse. This function lets you draw an ellipse on the screen with its center at the specied x and y location, using the specied radii.
4.31
283
See also: TDrawEllipse Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the center of the ellipse. _y The y value for the center of the ellipse. _rX The x axis radius. _rY The y axis radius.
4.31.2.6
Draw an ellipse with drawing options. This function lets you draw an ellipse on the screen with its center at the specied x and y location, using the specied radii. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: SysDrawEllipse, DrawEllipseType Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the center of the ellipse. _y The y value for the center of the ellipse. _rX The x axis radius. _rY The y axis radius. _options The drawing options.
4.31
284
4.31.2.7
Draw a number with font. Draw a numeric value on the screen at the specied x and y location using a custom RIC font. See also: FontTextOut, TDrawFont Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the start of the number output. _y The y value for the start of the number output. _fnt The lename of the RIC font. _num The value to output to the LCD screen. Any numeric type is supported.
4.31.2.8
Draw a number with font and drawing options. Draw a numeric value on the screen at the specied x and y location using a custom RIC font. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See the Font drawing option constants for options specic to the font drawing functions. See also: FontTextOut, TDrawFont Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the start of the number output. _y The y value for the start of the number output. _fnt The lename of the RIC font. _num The value to output to the LCD screen. Any numeric type is supported. _options The optional drawing options.
4.31
285
4.31.2.9
Draw text with font. Draw a text value on the screen at the specied x and y location using a custom RIC font. See also: FontNumOut, TDrawFont Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the start of the text output. _y The y value for the start of the text output. _fnt The lename of the RIC font. _txt The text to output to the LCD screen.
4.31.2.10
Draw text with font and drawing options. Draw a text value on the screen at the specied x and y location using a custom RIC font. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See the Font drawing option constants for options specic to the font drawing functions. See also: FontNumOut, TDrawFont Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _x The x value for the start of the text output. _y The y value for the start of the text output. _fnt The lename of the RIC font. _txt The text to output to the LCD screen. _options The drawing options.
4.31
286
4.31.2.11
Read the display contrast setting. This function lets you read the current display contrast setting. Parameters: _n The current display contrast (byte). Warning: This function requires the enhanced NBC/NXC rmware version 1.28+.
4.31.2.12
Read the display memory address. This function lets you read the current display memory address. Parameters: _n The current display memory address.
4.31.2.13
Read the display erase mask value. This function lets you read the current display erase mask value. Parameters: _n The current display erase mask value.
4.31.2.14
Read the display ags. This function lets you read the current display ags. Valid ag values are listed in the Display ags group. Parameters: _n The current display ags.
4.31
287
4.31.2.15
Read the display font memory address. This function lets you read the current display font memory address. Parameters: _n The current display font memory address.
4.31.2.16
Read pixel data from the normal display buffer. Read "cnt" bytes from the normal display memory into the data array. Start reading from the specied x, line coordinate. Each byte of data read from screen memory is a vertical strip of 8 bits at the desired location. Each bit represents a single pixel on the LCD screen. Use TEXTLINE_1 through TEXTLINE_8 for the "line" parameter. Parameters: _x The desired x position from which to read pixel data. _line The desired line from which to read pixel data. _cnt The number of bytes of pixel data to read. _data The array of bytes into which pixel data is read.
4.31.2.17
Read pixel data from the popup display buffer. Read "cnt" bytes from the popup display memory into the data array. Start reading from the specied x, line coordinate. Each byte of data read from screen memory is a vertical strip of 8 bits at the desired location. Each bit represents a single pixel on the LCD screen. Use TEXTLINE_1 through TEXTLINE_8 for the "line" parameter. Parameters: _x The desired x position from which to read pixel data. _line The desired line from which to read pixel data. _cnt The number of bytes of pixel data to read. _data The array of bytes into which pixel data is read.
4.31
288
4.31.2.18
Read the display text lines center ags. This function lets you read the current display text lines center ags. Parameters: _n The current display text lines center ags.
4.31.2.19
Read the display update mask value. This function lets you read the current display update mask value. Parameters: _n The current display update mask.
4.31.2.20
Draw a graphic image from byte array. Draw a graphic image byte array on the screen at the specied x and y location. If the le cannot be found then nothing will be drawn and no errors will be reported. See also: TDrawGraphicArray Parameters: _x The x value for the position of the graphic image. _y The y value for the position of the graphic image. _data The byte array of the RIC graphic image.
4.31.2.21
4.31
289
Draw a graphic image from byte array with parameters and drawing options. Draw a graphic image byte array on the screen at the specied x and y location using an array of parameters and drawing options. Valid display option constants are listed in the Drawing option constants group. If the le cannot be found then nothing will be drawn and no errors will be reported. See also: TDrawGraphicArray Parameters: _x The x value for the position of the graphic image. _y The y value for the position of the graphic image. _data The byte array of the RIC graphic image. _vars The byte array of parameters. _options The drawing options.
4.31.2.22
Draw a graphic image. Draw a graphic image le on the screen at the specied x and y location. If the le cannot be found then nothing will be drawn and no errors will be reported. See also: TDrawGraphic Parameters: _x The x value for the position of the graphic image. _y The y value for the position of the graphic image. _le The lename of the RIC graphic image.
4.31.2.23
Draw a graphic image with parameters and drawing options. Draw a graphic image le on the screen at the specied x and y location using an array of parameters. Valid display option constants are listed in the Drawing option constants group. If the le cannot be found then nothing will be drawn and no errors will be reported.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.31
290
See also: TDrawGraphic Parameters: _x The x value for the position of the graphic image. _y The y value for the position of the graphic image. _le The lename of the RIC graphic image. _vars The byte array of parameters. _options The drawing options.
4.31.2.24
Draw a line. This function lets you draw a line on the screen from x1, y1 to x2, y2. See also: TDrawLine Parameters: _x1 The x value for the start of the line. _y1 The y value for the start of the line. _x2 The x value for the end of the line. _y2 The y value for the end of the line.
4.31.2.25
Draw a line with drawing options. This function lets you draw a line on the screen from x1, y1 to x2, y2. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawLine Parameters: _x1 The x value for the start of the line.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.31
291
_y1 The y value for the start of the line. _x2 The x value for the end of the line. _y2 The y value for the end of the line. _options The optional drawing options.
4.31.2.26
Draw a number. Draw a numeric value on the screen at the specied x and y location. The y value must be a multiple of 8. Valid line number constants are listed in the Line number constants group. See also: TDrawText Parameters: _x The x value for the start of the number output. _y The text line number for the number output. _num The value to output to the LCD screen. Any numeric type is supported.
4.31.2.27
Draw a number with drawing options. Draw a numeric value on the screen at the specied x and y location. The y value must be a multiple of 8. Valid line number constants are listed in the Line number constants group. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawText Parameters: _x The x value for the start of the number output. _y The text line number for the number output. _num The value to output to the LCD screen. Any numeric type is supported. _options The optional drawing options.
4.31
292
4.31.2.28
Draw a point. This function lets you draw a point on the screen at x, y. See also: TDrawPoint Parameters: _x The x value for the point. _y The y value for the point.
4.31.2.29
Draw a point with drawing options. This function lets you draw a point on the screen at x, y. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawPoint Parameters: _x The x value for the point. _y The y value for the point. _options The optional drawing options.
4.31.2.30
Draw a polygon. This function lets you draw a polygon on the screen using an array of points. See also: TDrawPolygon Warning: This function requires the enhanced NBC/NXC rmware version 1.28+.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.31
293
4.31.2.31
Draw a polygon with drawing options. This function lets you draw a polygon on the screen using an array of points. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawPolygon Warning: This function requires the enhanced NBC/NXC rmware version 1.28+. Parameters: _points An array of TLocation points that dene the polygon. _options The drawing options.
4.31.2.32
Draw a rectangle. This function lets you draw a rectangle on the screen at x, y with the specied width and height. See also: TDrawRect Parameters: _x The x value for the top left corner of the rectangle. _y The y value for the top left corner of the rectangle. _w The width of the rectangle. _h The height of the rectangle.
4.31
294
4.31.2.33
Draw a rectangle with drawing options. This function lets you draw a rectangle on the screen at x, y with the specied width and height. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawRect Parameters: _x The x value for the top left corner of the rectangle. _y The y value for the top left corner of the rectangle. _w The width of the rectangle. _h The height of the rectangle. _options The optional drawing options.
4.31.2.34
Set the display contrast. This function lets you set the display contrast setting. Parameters: _n The desired display contrast. Warning: This function requires the enhanced NBC/NXC rmware version 1.28+.
4.31.2.35
Set the display memory address. This function lets you set the current display memory address. Parameters: _n The new display memory address.
4.31
295
4.31.2.36
Set the display erase mask. This function lets you set the current display erase mask. Parameters: _n The new display erase mask.
4.31.2.37
Set the display ags. This function lets you set the current display ags. Parameters: _n The new display ags. See Display ags.
4.31.2.38
Set the display font memory address. This function lets you set the current display font memory address. Parameters: _n The new display font memory address.
4.31.2.39
Write pixel data to the normal display buffer. Write "cnt" bytes to the normal display memory from the data array. Start writing at the specied x, line coordinate. Each byte of data is a vertical strip of 8 bits at the desired location. Each bit represents a single pixel on the LCD screen. Use TEXTLINE_1 through TEXTLINE_8 for the "line" parameter. Parameters: _x The desired x position where you wish to write pixel data.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.31
296
_line The desired line where you wish to write pixel data. _cnt The number of bytes of pixel data to write. _data The array of bytes from which pixel data is read.
4.31.2.40
Write pixel data to the popup display buffer. Write "cnt" bytes to the popup display memory from the data array. Start writing at the specied x, line coordinate. Each byte of data is a vertical strip of 8 bits at the desired location. Each bit represents a single pixel on the LCD screen. Use TEXTLINE_1 through TEXTLINE_8 for the "line" parameter. Parameters: _x The desired x position where you wish to write pixel data. _line The desired line where you wish to write pixel data. _cnt The number of bytes of pixel data to write. _data The array of bytes from which pixel data is read.
4.31.2.41
Set the display text lines center ags. This function lets you set the current display text lines center ags. Parameters: _n The new display text lines center ags.
4.31.2.42
Set the display update mask. This function lets you set the current display update mask. Parameters: _n The new display update mask.
4.32
297
4.31.2.43
Draw text. Draw a text value on the screen at the specied x and y location. The y value must be a multiple of 8. Valid line number constants are listed in the Line number constants group. See also: TDrawText Parameters: _x The x value for the start of the text output. _y The text line number for the text output. _txt The text to output to the LCD screen.
4.31.2.44
Draw text. Draw a text value on the screen at the specied x and y location. The y value must be a multiple of 8. Valid line number constants are listed in the Line number constants group. Also specify drawing options. Valid display option constants are listed in the Drawing option constants group. See also: TDrawText Parameters: _x The x value for the start of the text output. _y The text line number for the text output. _txt The text to output to the LCD screen. _options The optional drawing options.
4.32
4.32
298
4.32
299
4.32.1
Detailed Description
Functions for accessing and modifying sound module features. 4.32.2 4.32.2.1 Dene Documentation #dene GetSoundDuration(_n) __GetSoundDuration(_n)
Get sound duration. Return the current sound duration. See also: SetSoundDuration Parameters: _n The current sound duration.
4.32.2.2
Get sound frequency. Return the current sound frequency. See also: SetSoundFrequency
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.32
300
4.32.2.3
Get sound mode. Return the current sound mode. See the SoundMode constants group. See also: SetSoundMode Parameters: _n The current sound mode.
4.32.2.4
Get sample rate. Return the current sound sample rate. See also: SetSoundSampleRate Parameters: _n The current sound sample rate.
4.32.2.5
Get sound module state and ags. Return the current sound module state and ags. See the SoundState constants group. See also: SetSoundState Parameters: _state The current sound module state. _ags The current sound module ags.
4.32
301
4.32.2.6
Get volume. Return the current sound volume. See also: SetSoundVolume Parameters: _n The current sound volume.
4.32.2.7
Play a le. Play the specied le. The lename may be any valid string expression. The sound le can either be an RSO le containing PCM or compressed ADPCM samples or it can be an NXT melody (RMD) le containing frequency and duration values. Parameters: _le The name of the sound or melody le to play.
4.32.2.8
Play a le with extra options. Play the specied le. The lename may be any valid string expression. Volume should be a number from 0 (silent) to 4 (loudest). Play the le repeatedly if loop is true. The sound le can either be an RSO le containing PCM or compressed ADPCM samples or it can be an NXT melody (RMD) le containing frequency and duration values. Parameters: _le The name of the sound or melody le to play. _vol The desired tone volume. _loop A boolean ag indicating whether to play the le repeatedly.
4.32
302
4.32.2.9
Play a tone. Play a single tone of the specied frequency and duration. The frequency is in Hz (see the Tone constants group). The duration is in 1000ths of a second (see the Time constants group). The tone is played at the loudest sound level supported by the rmware and it is not looped. Parameters: _freq The desired tone frequency, in Hz. _dur The desired tone duration, in ms.
4.32.2.10
Play a tone with extra options. Play a single tone of the specied frequency, duration, and volume. The frequency is in Hz (see the Tone constants group). The duration is in 1000ths of a second (see the Time constants group). Volume should be a number from 0 (silent) to 4 (loudest). Play the tone repeatedly if loop is true. Parameters: _freq The desired tone frequency, in Hz. _dur The desired tone duration, in ms. _vol The desired tone volume. _loop A boolean ag indicating whether to play the tone repeatedly.
4.32.2.11
Set sound duration. Set the sound duration. See also: GetSoundDuration Parameters: _n The new sound duration
4.32
303
4.32.2.12
Set sound module ags. Set the sound module ags. See the SoundFlags constants group. Parameters: _n The new sound module ags
4.32.2.13
Set sound frequency. Set the sound frequency. See also: GetSoundFrequency Parameters: _n The new sound frequency
4.32.2.14
Set sound mode. Set the sound mode. See the SoundMode constants group. See also: GetSoundMode Parameters: _n The new sound mode
4.32.2.15
Set sound module state. Set the sound module state. See the SoundState constants group.
4.32
304
4.32.2.16
Set sample rate. Set the sound sample rate. See also: GetSoundSampleRate Parameters: _n The new sample rate
4.32.2.17
Set sound module state and ags. Set the sound module state and ags. See the SoundState constants group. See also: GetSoundState Parameters: _state The sound module state. _ags The sound module ags. _result The function call result.
4.32.2.18
4.33
305
4.33
Functions for accessing and modifying Command module features. Denes #dene SetIOMapBytes(_modName, _offset, _cnt, _arrIn) __SetIOMapBytes(_modName, _offset, _cnt, _arrIn)
Set IOMap bytes by name.
_offset,
_n)
__SetIOMapValue(_-
_cnt,
_arrIn)
__-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
4.33
306
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_n)
SetIOMapValue-
_arrIn)
SetIOMapBytes-
_arrIn)
SetIOMapBytes-
4.33
307
_cnt,
_arrOut)
__-
_offset,
_n) __getIOMapValue(_-
_arrOut)
__-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
4.33
308
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_n)
GetIOMapValue-
_cnt,
_arrOut)
__-
_cnt,
_arrOut)
__-
_cnt,
_arrOut)
__-
_cnt,
_arrOut)
__-
4.33.1
Detailed Description
4.33
309
4.33.2 4.33.2.1
Get Button module IOMap value. Read a value from the Button module IOMap structure. You provide the offset into the Button module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Button module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.2
Get Command module IOMap bytes. Read one or more bytes of data from Command module IOMap structure. You provide the offset into the Command module IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored. Parameters: _offset The number of bytes offset from the start of the Command module IOMap structure where the data should be read. See Command module IOMAP offsets. _cnt The number of bytes to read from the specied Command module IOMap offset. _arrOut A byte array that will contain the data read from the Command module IOMap.
4.33.2.3
4.33
310
Get Command module IOMap value. Read a value from the Command module IOMap structure. You provide the offset into the Command module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Command module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.4
Get Comm module IOMap bytes. Read one or more bytes of data from Comm module IOMap structure. You provide the offset into the Comm module IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored. Parameters: _offset The number of bytes offset from the start of the Comm module IOMap structure where the data should be read. See Comm module IOMAP offsets. _cnt The number of bytes to read from the specied Comm module IOMap offset. _arrOut A byte array that will contain the data read from the Comm module IOMap.
4.33.2.5
Get Comm module IOMap value. Read a value from the Comm module IOMap structure. You provide the offset into the Comm module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Comm module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33
311
4.33.2.6
Get Display module IOMap bytes. Read one or more bytes of data from Display module IOMap structure. You provide the offset into the Display module IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored. Parameters: _offset The number of bytes offset from the start of the Display module IOMap structure where the data should be read. See Display module IOMAP offsets. _cnt The number of bytes to read from the specied Display module IOMap offset. _arrOut A byte array that will contain the data read from the Display module IOMap.
4.33.2.7
Get Display module IOMap value. Read a value from the Display module IOMap structure. You provide the offset into the Display module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Display module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.8
Get the rst tick. Return an unsigned 32-bit value, which is the system timing value (called a "tick") in milliseconds at the time that the program began running. Parameters: _value The tick count at the start of program execution.
4.33
312
4.33.2.9
Get Input module IOMap value. Read a value from the Input module IOMap structure. You provide the offset into the Input module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Input module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.10
Get IOMap bytes by name. Read one or more bytes of data from an IOMap structure. The IOMap structure is specied by its module name. You also provide the offset into the IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored. Parameters: _modName The module name of the IOMap. See NXT rmware module names. _offset The number of bytes offset from the start of the IOMap structure where the data should be read _cnt The number of bytes to read from the specied IOMap offset. _arrOut A byte array that will contain the data read from the IOMap
4.33.2.11
Get IOMap bytes by ID. Read one or more bytes of data from an IOMap structure. The IOMap structure is specied by its Module ID. You also provide the offset into the IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored.
4.33
313
Parameters: _modID The module ID of the IOMap. See NXT rmware module IDs. _offset The number of bytes offset from the start of the IOMap structure where the data should be read. _cnt The number of bytes to read from the specied IOMap offset. _arrOut A byte array that will contain the data read from the IOMap. Warning: This function requires the enhanced NBC/NXC rmware.
4.33.2.12
Get IOMap value by name. Read a value from an IOMap structure. The IOMap structure is specied by its module name. You also provide the offset into the IOMap structure where you want to read the value along with a variable that will contain the IOMap value. Parameters: _modName The module name of the IOMap. See NXT rmware module names. _offset The number of bytes offset from the start of the IOMap structure where the value should be read _n A variable that will contain the value read from the IOMap
4.33.2.13
Get IOMap value by ID. Read a value from an IOMap structure. The IOMap structure is specied by its Module ID. You also provide the offset into the IOMap structure where you want to read the value along with a variable that will contain the IOMap value. Parameters: _modID The module ID of the IOMap. See NXT rmware module IDs. _offset The number of bytes offset from the start of the IOMap structure where the value should be read.
4.33
314
_n A variable that will contain the value read from the IOMap. Warning: This function requires the enhanced NBC/NXC rmware.
4.33.2.14
Get Loader module IOMap value. Read a value from the Loader module IOMap structure. You provide the offset into the Loader module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Loader module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.15
Get Lowspeed module IOMap bytes. Read one or more bytes of data from Lowspeed module IOMap structure. You provide the offset into the Lowspeed module IOMap structure where you want to start reading, the number of bytes to read from that location, and a byte array where the data will be stored. Parameters: _offset The number of bytes offset from the start of the Lowspeed module IOMap structure where the data should be read. See Low speed module IOMAP offsets. _cnt The number of bytes to read from the specied Lowspeed module IOMap offset. _arrOut A byte array that will contain the data read from the Lowspeed module IOMap.
4.33
315
4.33.2.16
Get LowSpeed module IOMap value. Read a value from the LowSpeed module IOMap structure. You provide the offset into the Command module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Low speed module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.17
Get Output module IOMap value. Read a value from the Output module IOMap structure. You provide the offset into the Output module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Output module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.18
Get Sound module IOMap value. Read a value from the Sound module IOMap structure. You provide the offset into the Sound module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Sound module IOMAP offsets.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.33
316
_n A variable that will contain the value read from the IOMap.
4.33.2.19
Get Ui module IOMap value. Read a value from the Ui module IOMap structure. You provide the offset into the Ui module IOMap structure where you want to read the value from along with a variable that will store the value. The type of the variable determines how many bytes are read from the IOMap. Parameters: _offset The number of bytes offset from the start of the IOMap structure where the value should be read. See Ui module IOMAP offsets. _n A variable that will contain the value read from the IOMap.
4.33.2.20
Reset the sleep timer. This function lets you reset the sleep timer. 4.33.2.21 #dene SetButtonModuleValue(_offset, _n) SetIOMapValueByID(ButtonModuleID, _offset, _n)
Set Button module IOMap value. Set one of the elds of the Button module IOMap structure to a new value. You provide the offset into the Button module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Button module IOMap structure where the new value should be written. See Button module IOMAP offsets. _n A variable containing the new value to write to the Button module IOMap.
4.33
317
4.33.2.22
Set Command module IOMap bytes. Modify one or more bytes of data in the Command module IOMap structure. You provide the offset into the Command module IOMap structure where you want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _offset The number of bytes offset from the start of the Command module IOMap structure where the data should be written. See Command module IOMAP offsets. _cnt The number of bytes to write at the specied Command module IOMap offset. _arrIn The byte array containing the data to write to the Command module IOMap.
4.33.2.23
Set Command module IOMap value. Set one of the elds of the Command module IOMap structure to a new value. You provide the offset into the Command module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Command module IOMap structure where the new value should be written. See Command module IOMAP offsets. _n A variable containing the new value to write to the Command module IOMap.
4.33.2.24
Set Comm module IOMap bytes. Modify one or more bytes of data in an IOMap structure. You provide the offset into the Comm module IOMap structure where you
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.33
318
want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _offset The number of bytes offset from the start of the Comm module IOMap structure where the data should be written. See Comm module IOMAP offsets. _cnt The number of bytes to write at the specied Comm module IOMap offset. _arrIn The byte array containing the data to write to the Comm module IOMap.
4.33.2.25
Set Comm module IOMap value. Set one of the elds of the Comm module IOMap structure to a new value. You provide the offset into the Comm module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Comm module IOMap structure where the new value should be written. See Comm module IOMAP offsets. _n A variable containing the new value to write to the Comm module IOMap.
4.33.2.26
Set Display module IOMap bytes. Modify one or more bytes of data in the Display module IOMap structure. You provide the offset into the Display module IOMap structure where you want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _offset The number of bytes offset from the start of the Display module IOMap structure where the data should be written. See Display module IOMAP offsets. _cnt The number of bytes to write at the specied Display module IOMap offset. _arrIn The byte array containing the data to write to the Display module IOMap.
4.33
319
4.33.2.27
Set Display module IOMap value. Set one of the elds of the Display module IOMap structure to a new value. You provide the offset into the Display module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Display module IOMap structure where the new value should be written. See Display module IOMAP offsets. _n A variable containing the new value to write to the Display module IOMap.
4.33.2.28
Set Input module IOMap value. Set one of the elds of the Input module IOMap structure to a new value. You provide the offset into the Input module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Input module IOMap structure where the new value should be written. See Input module IOMAP offsets. _n A variable containing the new value to write to the Input module IOMap.
4.33.2.29
Set IOCtrl module IOMap value. Set one of the elds of the IOCtrl module IOMap structure to a new value. You provide the offset into the IOCtrl module IOMap structure where you want to write the value along with a variable containing the new value.
4.33
320
Parameters: _offset The number of bytes offset from the start of the IOCtrl module IOMap structure where the new value should be written. See IOCtrl module IOMAP offsets. _n A variable containing the new value to write to the IOCtrl module IOMap.
4.33.2.30
Set IOMap bytes by name. Modify one or more bytes of data in an IOMap structure. The IOMap structure is specied by its module name. You also provide the offset into the IOMap structure where you want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _modName The module name of the IOMap to modify. See NXT rmware module names. _offset The number of bytes offset from the start of the IOMap structure where the data should be written _cnt The number of bytes to write at the specied IOMap offset. _arrIn The byte array containing the data to write to the IOMap
4.33.2.31
Set IOMap bytes by ID. Modify one or more bytes of data in an IOMap structure. The IOMap structure is specied by its Module ID. You also provide the offset into the IOMap structure where you want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _modID The module ID of the IOMap to modify. See NXT rmware module IDs. _offset The number of bytes offset from the start of the IOMap structure where the data should be written. _cnt The number of bytes to write at the specied IOMap offset. _arrIn The byte array containing the data to write to the IOMap.
4.33
321
4.33.2.32
Set IOMap value by name. Set one of the elds of an IOMap structure to a new value. The IOMap structure is specied by its module name. You also provide the offset into the IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _modName The module name of the IOMap to modify. See NXT rmware module names. _offset The number of bytes offset from the start of the IOMap structure where the new value should be written _n A variable containing the new value to write to the IOMap
4.33.2.33
Set IOMap value by ID. Set one of the elds of an IOMap structure to a new value. The IOMap structure is specied by its Module ID. You also provide the offset into the IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _modID The module ID of the IOMap to modify. See NXT rmware module IDs. _offset The number of bytes offset from the start of the IOMap structure where the new value should be written. _n A variable containing the new value to write to the IOMap. Warning: This function requires the enhanced NBC/NXC rmware.
4.33
322
4.33.2.34
Set Loader module IOMap value. Set one of the elds of the Loader module IOMap structure to a new value. You provide the offset into the Loader module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Loader module IOMap structure where the new value should be written. See Loader module IOMAP offsets. _n A variable containing the new value to write to the Loader module IOMap.
4.33.2.35
Set Lowspeed module IOMap bytes. Modify one or more bytes of data in the Lowspeed module IOMap structure. You provide the offset into the Lowspeed module IOMap structure where you want to start writing, the number of bytes to write at that location, and a byte array containing the new data. Parameters: _offset The number of bytes offset from the start of the Lowspeed module IOMap structure where the data should be written. See Low speed module IOMAP offsets. _cnt The number of bytes to write at the specied Lowspeed module IOMap offset. _arrIn The byte array containing the data to write to the Lowspeed module IOMap.
4.33.2.36
Set Lowspeed module IOMap value. Set one of the elds of the Lowspeed module IOMap structure to a new value. You provide the offset into the Lowspeed module
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.33
323
IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Lowspeed module IOMap structure where the new value should be written. See Low speed module IOMAP offsets. _n A variable containing the new value to write to the Lowspeed module IOMap.
4.33.2.37
Set Output module IOMap value. Set one of the elds of the Output module IOMap structure to a new value. You provide the offset into the Output module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Output module IOMap structure where the new value should be written. See Output module IOMAP offsets. _n A variable containing the new value to write to the Output module IOMap.
4.33.2.38
Set Sound module IOMap value. Set one of the elds of the Sound module IOMap structure to a new value. You provide the offset into the Sound module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Sound module IOMap structure where the new value should be written. See Sound module IOMAP offsets. _n A variable containing the new value to write to the Sound module IOMap.
4.34
324
4.33.2.39
Set Ui module IOMap value. Set one of the elds of the Ui module IOMap structure to a new value. You provide the offset into the Ui module IOMap structure where you want to write the value along with a variable containing the new value. Parameters: _offset The number of bytes offset from the start of the Ui module IOMap structure where the new value should be written. See Ui module IOMAP offsets. _n A variable containing the new value to write to the Ui module IOMap.
4.33.2.40
Wait some milliseconds. Make a task sleep for specied amount of time (in 1000ths of a second). Parameters: _n The number of milliseconds to sleep.
4.34
Functions for accessing and modifying Button module features. Denes #dene ReadButtonEx(_idx, _reset, _pressed, _count, ReadButtonEx(_idx, _reset, _pressed, _count, _result)
Read button information.
_result)
__-
4.34
325
_n)
__-
_n)
__-
4.34.1
Detailed Description
4.34
326
4.34.2 4.34.2.1
Get button long press count. Return the long press count of the specied button. Parameters: _b The button to check. See Button name constants. _n The button long press count.
4.34.2.2
Get button long release count. Return the long release count of the specied button. Parameters: _b The button to check. See Button name constants. _n The button long release count.
4.34.2.3
Get button press count. Return the press count of the specied button. Parameters: _b The button to check. See Button name constants. _n The button press count.
4.34.2.4
Get button release count. Return the release count of the specied button.
4.34
327
Parameters: _b The button to check. See Button name constants. _n The button release count.
4.34.2.5
Get button short release count. Return the short release count of the specied button. Parameters: _b The button to check. See Button name constants. _n The button short release count.
4.34.2.6
Get button state. Return the state of the specied button. See ButtonState constants. Parameters: _b The button to check. See Button name constants. _n The button state.
4.34.2.7
#dene ReadButtonEx(_idx, _reset, _pressed, _count, _result) __ReadButtonEx(_idx, _reset, _pressed, _count, _result)
Read button information. Read the specied button. Set the pressed and count parameters with the current state of the button. Optionally reset the press count after reading it. Parameters: _idx The button to check. See Button name constants. _reset Whether or not to reset the press counter. _pressed The button pressed state. _count The button press count. _result The function call result.
4.34
328
4.34.2.8
Set button long press count. Set the long press count of the specied button. Parameters: _b The button number. See Button name constants. _n The new long press count value.
4.34.2.9
Set button long release count. Set the long release count of the specied button. Parameters: _b The button number. See Button name constants. _n The new long release count value.
4.34.2.10
Set button press count. Set the press count of the specied button. Parameters: _b The button number. See Button name constants. _n The new press count value.
4.34.2.11
Set button release count. Set the release count of the specied button. Parameters: _b The button number. See Button name constants. _n The new release count value.
4.35
Ui module functions
329
4.34.2.12
Set button short release count. Set the short release count of the specied button. Parameters: _b The button number. See Button name constants. _n The new short release count value.
4.34.2.13
Set button state. Set the state of the specied button. Parameters: _b The button to check. See Button name constants. _n The new button state. See ButtonState constants.
4.35
Ui module functions
Functions for accessing and modifying Ui module features. Denes #dene SetCommandFlags(_n) __setCommandFlags(_n)
Set command ags.
4.35
Ui module functions
330
4.35
Ui module functions
331
4.35.1
Detailed Description
Functions for accessing and modifying Ui module features. 4.35.2 4.35.2.1 Dene Documentation #dene ForceOff(_n) __forceOff(_n)
Turn off NXT. Force the NXT to turn off if the specied value is greater than zero. Parameters: _n If greater than zero the NXT will turn off.
4.35
Ui module functions
332
4.35.2.2
Read abort ag. Return the enhanced NBC/NXC rmwares abort ag. Parameters: _n The current abort ag value. See ButtonState constants. Warning: This function requires the enhanced NBC/NXC rmware.
4.35.2.3
Get battery Level. Return the battery level in millivolts. Parameters: _n The battery level
4.35.2.4
Get battery state. Return battery state information (0..4). Parameters: _n The battery state (0..4)
4.35.2.5
Get bluetooth state. Return the bluetooth state. Parameters: _n The bluetooth state. See BluetoothState constants.
4.35
Ui module functions
333
4.35.2.6
Get command ags. Return the command ags. Parameters: _n Command ags. See CommandFlags constants
4.35.2.7
Read the on brick program pointer value. Return the current OBP (on-brick program) step Parameters: _n On brick program pointer (step).
4.35.2.8
Read battery type. Return whether the NXT has a rechargeable battery installed or not. Parameters: _n Whether the battery is rechargeable or not. (false = no, true = yes)
4.35.2.9
Read sleep timeout. Return the number of minutes that the NXT will remain on before it automatically shuts down. Parameters: _n The sleep timeout value
4.35
Ui module functions
334
4.35.2.10
Read sleep timer. Return the number of minutes left in the countdown to zero from the original SleepTimeout value. When the SleepTimer value reaches zero the NXT will shutdown. Parameters: _n The sleep timer value
4.35.2.11
Read UI button. Return user interface button information. Parameters: _n A UI button value. See UIButton constants.
4.35.2.12
Get UI module state. Return the user interface state. Parameters: _n The UI module state. See UIState constants.
4.35.2.13
Get UI module USB state. This method returns the UI module USB state. Parameters: _n The UI module USB state. (0=disconnected, 1=connected, 2=working)
4.35.2.14
4.35
Ui module functions
335
4.35.2.15
Read volume. Return the user interface volume level. Valid values are from 0 to 4. Parameters: _n The UI module volume. (0..4)
4.35.2.16
Set abort ag. Set the enhanced NBC/NXC rmwares program abort ag. By default the running program can be interrupted by a short press of the escape button. You can change this to any other button state ag. Parameters: _n The new abort ag value. See ButtonState constants Warning: This function requires the enhanced NBC/NXC rmware.
4.35.2.17
Set battery state. Set battery state information. Parameters: _n The desired battery state (0..4).
4.35.2.18
4.35
Ui module functions
336
4.35.2.19
Set command ags. Set the command ags. Parameters: _n The new command ags. See CommandFlags constants.
4.35.2.20
Set on-brick program pointer. Set the current OBP (on-brick program) step. Parameters: _n The new on-brick program step.
4.35.2.21
Set sleep timeout. Set the NXT sleep timeout value to the specied number of minutes. Parameters: _n The minutes to wait before sleeping.
4.35.2.22
Set the sleep timer. Set the system sleep timer to the specied number of minutes. Parameters: _n The minutes left on the timer.
4.35
Ui module functions
337
4.35.2.23
Set UI button. Set user interface button information. Parameters: _n A user interface button value. See UIButton constants.
4.35.2.24
Set UI state. Set the user interface state. Parameters: _n A user interface state value. See UIState constants.
4.35.2.25
Set Usb state. This method sets the value of the Usb state. Parameters: _n The Usb state.
4.35.2.26
Set VM run state. Set VM run state information. Parameters: _n The desired VM run state. See VM run state constants.
4.35.2.27
Set volume. Set the user interface volume level. Valid values are from 0 to 4. Parameters: _n The new volume level.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
338
4.36
Functions for accessing and modifying Comm module features. Denes #dene SendMessage(_queue, _msg, _result) __sendMessage(_queue, _msg, _result)
Send a message to a queue/mailbox.
_bval,
_result)
__-
_val,
_result)
__-
_str,
_result)
__-
#dene ReceiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result) __receiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result)
Read a value from a queue/mailbox.
_val,
_result)
__-
4.36
339
_val,
_result)
__-
_queue,
_result)
__-
_msg,
_result)
__-
_result)
__-
_result) __-
_result)
__-
_result) __bluetoothWrite(_conn,
__-
4.36
340
_result) __bluetoothWrite(_conn,
__-
_port,
_result)
__-
#dene RemoteSetInputMode(_conn, _port, _type, _mode, _result) __remoteSetInputMode(_conn, _port, _type, _mode, _result)
Send a SetInputMode message.
#dene RemoteSetOutputState(_conn, _port, _speed, _mode, _regmode, _turnpct, _runstate, _tacholimit, _result) __remoteSetOutputState(_conn, _port, _speed, _mode, _regmode, _turnpct, _runstate, _tacholimit, _result)
Send a SetOutputMode message.
4.36
341
_status) __sendRS485Number(_val,
_-
_n)
__-
4.36
342
_n)
__-
_n)
__-
GetCommModule-
#dene GetBrickDataBluecoreVersion(_n)
Get NXT bluecore version.
GetCommModule-
#dene GetBrickDataBtStateStatus(_n)
Get NXT bluetooth state status.
#dene GetBrickDataBtHardwareStatus(_n)
Get NXT bluetooth hardware status.
#dene GetBrickDataTimeoutValue(_n)
Get NXT bluetooth timeout value.
#dene GetBTInputBufferInPtr(_n)
Get bluetooth input buffer in-pointer.
#dene GetBTInputBufferOutPtr(_n)
Get bluetooth input buffer out-pointer.
4.36
343
#dene GetBTOutputBufferInPtr(_n)
Get bluetooth output buffer in-pointer.
#dene GetBTOutputBufferOutPtr(_n)
Get bluetooth output buffer out-pointer.
#dene GetHSInputBufferInPtr(_n)
Get hi-speed port input buffer in-pointer.
#dene GetHSInputBufferOutPtr(_n)
Get hi-speed port input buffer out-pointer.
#dene GetHSOutputBufferInPtr(_n)
Get hi-speed port output buffer in-pointer.
#dene GetHSOutputBufferOutPtr(_n)
Get hi-speed port output buffer out-pointer.
#dene GetUSBInputBufferInPtr(_n)
Get usb port input buffer in-pointer.
#dene GetUSBInputBufferOutPtr(_n)
Get usb port input buffer out-pointer.
#dene GetUSBOutputBufferInPtr(_n)
Get usb port output buffer in-pointer.
4.36
344
#dene GetUSBOutputBufferOutPtr(_n)
Get usb port output buffer out-pointer.
#dene GetUSBPollBufferInPtr(_n)
Get usb port poll buffer in-pointer.
#dene GetUSBPollBufferOutPtr(_n)
Get usb port poll buffer out-pointer.
#dene GetBTDeviceCount(_n)
Get bluetooth device count.
#dene GetBTDeviceNameCount(_n)
Get bluetooth device name count.
#dene GetHSFlags(_n)
Get hi-speed port ags.
#dene GetHSSpeed(_n)
Get hi-speed port speed.
#dene GetHSState(_n)
Get hi-speed port state.
#dene GetUSBState(_n)
Get USB state.
#dene GetHSMode(_n)
Get hi-speed port mode.
4.36
345
4.36
346
4.36.1
Detailed Description
4.36
347
4.36.2 4.36.2.1
Check bluetooth status. Check the status of the bluetooth subsystem for the specied connection slot. Parameters: _conn The connection slot (0..3). _result The bluetooth status for the specied connection.
4.36.2.2
Write to a bluetooth connection. This method tells the NXT rmware to write the data in the buffer to the device on the specied Bluetooth connection. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _buffer The data to be written (up to 128 bytes) _result A char value indicating whether the function call succeeded or not.
4.36.2.3
Get NXT address. This method reads the address of the NXT and stores it in the data buffer provided. Parameters: _addr The byte array reference that will contain the device address.
4.36
348
4.36.2.4
Get NXT bluecore version. This method returns the bluecore version of the NXT. Parameters: _n The NXTs bluecore version number.
4.36.2.5
Get NXT bluetooth hardware status. This method returns the Bluetooth hardware status of the NXT. Parameters: _n The NXTs bluetooth hardware status.
4.36.2.6
Get NXT bluetooth state status. This method returns the Bluetooth state status of the NXT. Parameters: _n The NXTs bluetooth state status.
4.36.2.7
Get NXT name. This method returns the name of the NXT.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
349
4.36.2.8
Get NXT bluetooth timeout value. This method returns the Bluetooth timeout value of the NXT. Parameters: _n The NXTs bluetooth timeout value.
4.36.2.9
Get bluetooth device address. This method reads the address of the device at the specied index within the Bluetooth connection table and stores it in the data buffer provided. Parameters: _p The connection slot (0..3). _addr The byte array reference that will contain the device address.
4.36.2.10
Get bluetooth device class. This method returns the class of the device at the specied index within the Bluetooth connection table. Parameters: _p The connection slot (0..3). _n The class of the bluetooth device at the specied connection slot.
4.36
350
4.36.2.11
Get bluetooth device handle number. This method returns the handle number of the device at the specied index within the Bluetooth connection table. Parameters: _p The connection slot (0..3). _n The handle number of the bluetooth device at the specied connection slot.
4.36.2.12
Get bluetooth device link quality. This method returns the link quality of the device at the specied index within the Bluetooth connection table. Parameters: _p The connection slot (0..3). _n The link quality of the specied connection slot (unimplemented). Warning: This function is not implemented at the rmware level.
4.36.2.13
Get bluetooth device name. This method returns the name of the device at the specied index in the Bluetooth connection table. Parameters: _p The connection slot (0..3). _str The name of the bluetooth device at the specied connection slot.
4.36
351
4.36.2.14
Get bluetooth device pin code. This method returns the pin code of the device at the specied index in the Bluetooth connection table. Parameters: _p The connection slot (0..3). _code The pin code for the bluetooth device at the specied connection slot.
4.36.2.15
Get bluetooth device stream status. This method returns the stream status of the device at the specied index within the Bluetooth connection table. Parameters: _p The connection slot (0..3). _n The stream status of the bluetooth device at the specied connection slot.
4.36.2.16
Get bluetooth device address. This method reads the address of the device at the specied index within the Bluetooth device table and stores it in the data buffer provided. Parameters: _p The device table index. _addr The byte array reference that will contain the device address.
4.36.2.17
Get bluetooth device class. This method returns the class of the device at the specied index within the Bluetooth device table.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
352
Parameters: _p The device table index. _n The device class of the specied bluetooth device.
4.36.2.18
Get bluetooth device count. This method returns the number of devices dened within the Bluetooth device table. Returns: The count of known bluetooth devices.
4.36.2.19
Get bluetooth device name. This method returns the name of the device at the specied index in the Bluetooth device table. Parameters: _p The device table index. _str The device name of the specied bluetooth device.
4.36.2.20
Get bluetooth device name count. This method returns the number of device names dened within the Bluetooth device table. This usually has the same value as BTDeviceCount but it can differ in some instances. Parameters: _n The count of known bluetooth device names.
4.36
353
4.36.2.21
Get bluetooth device status. This method returns the status of the device at the specied index within the Bluetooth device table. Parameters: _p The device table index. _n The status of the specied bluetooth device.
4.36.2.22
Get bluetooth input buffer data. This method reads count bytes of data from the Bluetooth input buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the bluetooth input buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the bluetooth input buffer.
4.36.2.23
Get bluetooth input buffer in-pointer. This method returns the value of the input pointer of the Bluetooth input buffer. Parameters: _n The bluetooth input buffers in-pointer value.
4.36.2.24
4.36
354
Get bluetooth input buffer out-pointer. This method returns the value of the output pointer of the Bluetooth input buffer. Parameters: _n The bluetooth input buffers out-pointer value.
4.36.2.25
Get bluetooth output buffer data. This method reads count bytes of data from the Bluetooth output buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the bluetooth output buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the bluetooth output buffer.
4.36.2.26
Get bluetooth output buffer in-pointer. This method returns the value of the input pointer of the Bluetooth output buffer. Parameters: _n The bluetooth output buffers in-pointer value.
4.36.2.27
4.36
355
Get bluetooth output buffer out-pointer. This method returns the value of the output pointer of the Bluetooth output buffer. Parameters: _n The bluetooth output buffers out-pointer value.
4.36.2.28
Get hi-speed port ags. This method returns the value of the hi-speed port ags. Parameters: _n The hi-speed port ags. See Hi-speed port ags constants.
4.36.2.29
Get hi-speed port input buffer data. This method reads count bytes of data from the hi-speed port input buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the hi-speed port input buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the hi-speed port input buffer.
4.36.2.30
Get hi-speed port input buffer in-pointer. This method returns the value of the input pointer of the hi-speed port input buffer.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
356
4.36.2.31
Get hi-speed port input buffer out-pointer. This method returns the value of the output pointer of the hi-speed port input buffer. Parameters: _n The hi-speed port input buffers out-pointer value.
4.36.2.32
Get hi-speed port mode. This method returns the value of the hi-speed port mode. Parameters: _n The hi-speed port mode (data bits, stop bits, parity). See Hi-speed port data bits constants, Hi-speed port stop bits constants, Hi-speed port parity constants, and Hi-speed port combined UART constants.
4.36.2.33
Get hi-speed port output buffer data. This method reads count bytes of data from the hi-speed port output buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the hi-speed port output buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the hi-speed port output buffer.
4.36
357
4.36.2.34
Get hi-speed port output buffer in-pointer. This method returns the value of the input pointer of the hi-speed port output buffer. Parameters: _n The hi-speed port output buffers in-pointer value.
4.36.2.35
Get hi-speed port output buffer out-pointer. This method returns the value of the output pointer of the hi-speed port output buffer. Parameters: _n The hi-speed port output buffers out-pointer value.
4.36.2.36
Get hi-speed port speed. This method returns the value of the hi-speed port speed (baud rate). Parameters: _n The hi-speed port speed (baud rate). See Hi-speed port baud rate constants.
4.36
358
4.36.2.37
Get hi-speed port state. This method returns the value of the hi-speed port state. Parameters: _n The hi-speed port state. See Hi-speed port state constants.
4.36.2.38
Get usb input buffer data. This method reads count bytes of data from the usb input buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the usb input buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the usb input buffer.
4.36.2.39
Get usb port input buffer in-pointer. This method returns the value of the input pointer of the usb port input buffer. Parameters: _n The USB port input buffers in-pointer value.
4.36
359
4.36.2.40
Get usb port input buffer out-pointer. This method returns the value of the output pointer of the usb port input buffer. Parameters: _n The USB port input buffers out-pointer value.
4.36.2.41
Get usb output buffer data. This method reads count bytes of data from the usb output buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the usb output buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the usb output buffer.
4.36.2.42
Get usb port output buffer in-pointer. This method returns the value of the input pointer of the usb port output buffer. Parameters: _n The USB port output buffers in-pointer value.
4.36
360
4.36.2.43
Get usb port output buffer out-pointer. This method returns the value of the output pointer of the usb port output buffer. Parameters: _n The USB port output buffers out-pointer value.
4.36.2.44
Get usb poll buffer data. This method reads count bytes of data from the usb poll buffer and writes it to the buffer provided. Parameters: _offset A constant offset into the usb poll buffer. _cnt The number of bytes to read. _data The byte array reference which will contain the data read from the usb poll buffer.
4.36.2.45
Get usb port poll buffer in-pointer. This method returns the value of the input pointer of the usb port poll buffer. Parameters: _n The USB port poll buffers in-pointer value.
4.36
361
4.36.2.46
Get usb port poll buffer out-pointer. This method returns the value of the output pointer of the usb port poll buffer. Parameters: _n The USB port poll buffers out-pointer value.
4.36.2.47
Get USB state. This method returns the value of the USB state. Parameters: _n The USB state.
4.36.2.48
Read a message from a queue/mailbox. Read a message from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specied local mailbox number. Parameters: _queue The mailbox number. See Mailbox constants. _clear A ag indicating whether to remove the message from the mailbox after it has been read. _msg The message that is read from the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36
362
4.36.2.49
Read a boolean value from a queue/mailbox. Read a boolean value from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specied local mailbox number. Parameters: _queue The mailbox number. See Mailbox constants. _clear A ag indicating whether to remove the message from the mailbox after it has been read. _bval The boolean value that is read from the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36.2.50
#dene ReceiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result) __receiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result)
Read a value from a queue/mailbox. Read a value from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specied local mailbox number. Output the value in string, number, and boolean form. Parameters: _queue The mailbox number. See Mailbox constants. _clear A ag indicating whether to remove the message from the mailbox after it has been read. _str The string value that is read from the mailbox. _val The numeric value that is read from the mailbox. _bval The boolean value that is read from the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36
363
4.36.2.51
Read a numeric value from a queue/mailbox. Read a numeric value from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specied local mailbox number. Parameters: _queue The mailbox number. See Mailbox constants. _clear A ag indicating whether to remove the message from the mailbox after it has been read. _val The numeric value that is read from the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36.2.52
Read a string value from a queue/mailbox. Read a string value from a mailbox and optionally remove it. If the local mailbox is empty and this NXT is the master then it attempts to poll one of its slave NXTs for a message from the response mailbox that corresponds to the specied local mailbox number. Parameters: _queue The mailbox number. See Mailbox constants. _clear A ag indicating whether to remove the message from the mailbox after it has been read. _str The string value that is read from the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36.2.53
Send a KeepAlive message. This method sends a KeepAlive direct command to the device on the specied connection. Use BluetoothStatus to determine when this write request is completed.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
364
Parameters: _conn The connection slot (0..3). _result A char value indicating whether the function call succeeded or not.
4.36.2.54
Send a MessageRead message. This method sends a MessageRead direct command to the device on the specied connection. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _queue The mailbox to read. See Mailbox constants. _result A char value indicating whether the function call succeeded or not.
4.36.2.55
Send a MessageWrite message. This method sends a MessageWrite direct command to the device on the specied connection. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _queue The mailbox to write. See Mailbox constants. _msg The message to write to the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36.2.56
Send a PlaySoundFile message. Send the PlaySoundFile direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
365
Parameters: _conn The connection slot (0..3). _lename The name of the sound le to play. _bloop A boolean value indicating whether to loop the sound le or not. _result A char value indicating whether the function call succeeded or not.
4.36.2.57
Send a PlayTone message. Send the PlayTone direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _frequency The frequency of the tone. _duration The duration of the tone. _result A char value indicating whether the function call succeeded or not.
4.36.2.58
Send a ResetMotorPosition message. Send the ResetMotorPosition direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _port The output port to reset. _brelative A ag indicating whether the counter to reset is relative. _result A char value indicating whether the function call succeeded or not.
4.36
366
4.36.2.59
Send a ResetScaledValue message. Send the ResetScaledValue direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _port The input port to reset. _result A char value indicating whether the function call succeeded or not.
4.36.2.60
#dene RemoteSetInputMode(_conn, _port, _type, _mode, _result) __remoteSetInputMode(_conn, _port, _type, _mode, _result)
Send a SetInputMode message. Send the SetInputMode direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _port The input port to congure. See NBC Input port constants. _type The sensor type. See NBC sensor type constants. _mode The sensor mode. See NBC sensor mode constants. _result A char value indicating whether the function call succeeded or not.
4.36.2.61
#dene RemoteSetOutputState(_conn, _port, _speed, _mode, _regmode, _turnpct, _runstate, _tacholimit, _result) __remoteSetOutputState(_conn, _port, _speed, _mode, _regmode, _turnpct, _runstate, _tacholimit, _result)
Send a SetOutputMode message. Send the SetOutputMode direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed.
4.36
367
Parameters: _conn The connection slot (0..3). _port The output port to congure. See Output port constants. _speed The motor speed. (-100..100) _mode The motor mode. See Output port mode constants. _regmode The motor regulation mode. See Output port regulation mode constants. _turnpct The motor synchronized turn percentage. (-100..100) _runstate The motor run state. See Output port run state constants. _tacholimit The motor tachometer limit. _result A char value indicating whether the function call succeeded or not.
4.36.2.62
Send a StartProgram message. Send the StartProgram direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _lename The name of the program to start running. _result A char value indicating whether the function call succeeded or not.
4.36.2.63
Send a StopProgram message. Send the StopProgram direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _result A char value indicating whether the function call succeeded or not.
4.36
368
4.36.2.64
Send a StopSound message. Send the StopSound direct command on the specied connection slot. Use BluetoothStatus to determine when this write request is completed. Parameters: _conn The connection slot (0..3). _result A char value indicating whether the function call succeeded or not.
4.36.2.65
Control the RS485 port. Control the RS485 hi-speed port using the specied parameters. Parameters: _cmd The control command to send to the port. See Hi-speed port SysCommHSControl constants. _baud The baud rate for the RS485 port. See Hi-speed port baud rate constants. _mode The RS485 port mode (data bits, stop bits, parity). See Hi-speed port data bits constants, Hi-speed port stop bits constants, Hi-speed port parity constants, and Hi-speed port combined UART constants. _result A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.66
Exit RS485. Turn off the RS485 port. Parameters: _result A char value indicating whether the function call succeeded or not.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
369
4.36.2.67
Initialize RS485. Initialize the RS485 hi-speed port so that it can be used. Parameters: _result A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.68
Read RS485 data. Read data from the RS485 hi-speed port. Parameters: _buffer A byte array that will contain the data read from the RS485 port. _status A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.69
Check RS485 status. Check the status of the RS485 hi-speed port. Parameters: _sendingData A boolean value set to true on output if data is being sent.
4.36
370
_dataAvail A boolean value set to true on output if data is available to be read. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.70
Congure RS485 UART. Congure the RS485 UART parameters, including baud rate, data bits, stop bits, and parity. Parameters: _baud The baud rate for the RS485 port. See Hi-speed port baud rate constants. _mode The RS485 port mode (data bits, stop bits, parity). See Hi-speed port data bits constants, Hi-speed port stop bits constants, Hi-speed port parity constants, and Hi-speed port combined UART constants. _result A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.71
Write RS485 data. Write data to the RS485 hi-speed port. Parameters: _buffer A byte array containing the data to write to the RS485 port. _status A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36
371
4.36.2.72
Send a message to a queue/mailbox. Write a message into a local mailbox. Parameters: _queue The mailbox number. See Mailbox constants. _msg The message to write to the mailbox. _result A char value indicating whether the function call succeeded or not.
4.36.2.73
Send a boolean value to a remote mailbox. Send a boolean value via bluetooth on the specied connection to the specied remote mailbox number. Parameters: _conn The connection slot (0..3). _queue The mailbox number. See Mailbox constants. _bval The boolean value to send. _result A char value indicating whether the function call succeeded or not.
4.36.2.74
Send a numeric value to a remote mailbox. Send a numeric value via bluetooth on the specied connection to the specied remote mailbox number. Parameters: _conn The connection slot (0..3). _queue The mailbox number. See Mailbox constants. _val The numeric value to send. _result A char value indicating whether the function call succeeded or not.
4.36
372
4.36.2.75
Send a string value to a remote mailbox. Send a string value via bluetooth on the specied connection to the specied remote mailbox number. Parameters: _conn The connection slot (0..3). _queue The mailbox number. See Mailbox constants. _str The string value to send. _result A char value indicating whether the function call succeeded or not.
4.36.2.76
Write a boolean value to a local response mailbox. Write a boolean value to a response mailbox (the mailbox number + 10). Parameters: _queue The mailbox number. See Mailbox constants. This function shifts the specied value into the range of response mailbox numbers by adding 10. _bval The boolean value to write. _result A char value indicating whether the function call succeeded or not.
4.36.2.77
Write a numeric value to a local response mailbox. Write a numeric value to a response mailbox (the mailbox number + 10). Parameters: _queue The mailbox number. See Mailbox constants. This function shifts the specied value into the range of response mailbox numbers by adding 10. _val The numeric value to write. _result A char value indicating whether the function call succeeded or not.
4.36
373
4.36.2.78
Write a string value to a local response mailbox. Write a string value to a response mailbox (the mailbox number + 10). Parameters: _queue The mailbox number. See Mailbox constants. This function shifts the specied value into the range of response mailbox numbers by adding 10. _msg The string value to write. _result A char value indicating whether the function call succeeded or not.
4.36.2.79
Write RS485 boolean. Write a boolean value to the RS485 hi-speed port. Parameters: _bval A boolean value to write over the RS485 port. _status A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.80
Write RS485 numeric. Write a numeric value to the RS485 hi-speed port. Parameters: _val A numeric value to write over the RS485 port. _status A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36
374
4.36.2.81
Write RS485 string. Write a string value to the RS485 hi-speed port. Parameters: _str A string value to write over the RS485 port. _status A char value indicating whether the function call succeeded or not. Warning: This function requires the enhanced NBC/NXC rmware.
4.36.2.82
Set bluetooth input buffer data. Write cnt bytes of data to the bluetooth input buffer at offset. Parameters: _offset A constant offset into the input buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.83
Set bluetooth input buffer in-pointer. Set the value of the input buffer in-pointer. Parameters: _n The new in-pointer value (0..127).
4.36.2.84
Set bluetooth input buffer out-pointer. Set the value of the input buffer out-pointer.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.36
375
4.36.2.85
Set bluetooth output buffer data. Write cnt bytes of data to the bluetooth output buffer at offset. Parameters: _offset A constant offset into the output buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.86
Set bluetooth output buffer in-pointer. Set the value of the output buffer in-pointer. Parameters: _n The new in-pointer value (0..127).
4.36.2.87
Set bluetooth output buffer out-pointer. Set the value of the output buffer out-pointer. Parameters: _n The new out-pointer value (0..127).
4.36.2.88
Set hi-speed port ags. This method sets the value of the hi-speed port ags.
4.36
376
Parameters: _n The hi-speed port ags. See Hi-speed port ags constants.
4.36.2.89
Set hi-speed port input buffer data. Write cnt bytes of data to the hi-speed port input buffer at offset. Parameters: _offset A constant offset into the input buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.90
Set hi-speed port input buffer in-pointer. Set the value of the input buffer in-pointer. Parameters: _n The new in-pointer value (0..127).
4.36.2.91
Set hi-speed port input buffer out-pointer. Set the value of the input buffer out-pointer. Parameters: _n The new out-pointer value (0..127).
4.36.2.92
Set hi-speed port mode. This method sets the value of the hi-speed port mode.
4.36
377
Parameters: _n The hi-speed port mode (data bits, stop bits, parity). See Hi-speed port data bits constants, Hi-speed port stop bits constants, Hi-speed port parity constants, and Hi-speed port combined UART constants.
4.36.2.93
Set hi-speed port output buffer data. Write cnt bytes of data to the hi-speed port output buffer at offset. Parameters: _offset A constant offset into the output buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.94
Set hi-speed port output buffer in-pointer. Set the value of the output buffer in-pointer. Parameters: _n The new in-pointer value (0..127).
4.36.2.95
Set hi-speed port output buffer out-pointer. Set the value of the output buffer outpointer. Parameters: _n The new out-pointer value (0..127).
4.36
378
4.36.2.96
Set hi-speed port speed. This method sets the value of the hi-speed port speed (baud rate). Parameters: _n The hi-speed port speed (baud rate). See Hi-speed port baud rate constants.
4.36.2.97
Set hi-speed port state. This method sets the value of the hi-speed port state. Parameters: _n The hi-speed port state. See Hi-speed port state constants.
4.36.2.98
Set USB input buffer data. Write cnt bytes of data to the USB input buffer at offset. Parameters: _offset A constant offset into the input buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.99
Set USB input buffer in-pointer. Set the value of the input buffer in-pointer. Parameters: _n The new in-pointer value (0..63).
4.36
379
4.36.2.100
Set USB input buffer out-pointer. Set the value of the input buffer out-pointer. Parameters: _n The new out-pointer value (0..63).
4.36.2.101
Set USB output buffer data. Write cnt bytes of data to the USB output buffer at offset. Parameters: _offset A constant offset into the output buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.102
Set USB output buffer in-pointer. Set the value of the output buffer in-pointer. Parameters: _n The new in-pointer value (0..63).
4.36.2.103
Set USB output buffer out-pointer. Set the value of the output buffer out-pointer. Parameters: _n The new out-pointer value (0..63).
4.37
380
4.36.2.104
Set USB poll buffer data. Write cnt bytes of data to the USB poll buffer at offset. Parameters: _offset A constant offset into the poll buffer _cnt The number of bytes to write _data A byte array containing the data to write
4.36.2.105
Set USB poll buffer in-pointer. Set the value of the poll buffer in-pointer. Parameters: _n The new in-pointer value (0..63).
4.36.2.106
Set USB poll buffer out-pointer. Set the value of the poll buffer out-pointer. Parameters: _n The new out-pointer value (0..63).
4.36.2.107
Set USB state. This method sets the value of the USB state. Parameters: _n The USB state.
4.37
4.38
381
4.37.1
Detailed Description
Functions for accessing and modifying IOCtrl module features. 4.37.2 4.37.2.1 Dene Documentation #dene PowerDown SetIOCtrlModuleValue(IOCtrlOffsetPowerOn, IOCTRL_POWERDOWN)
Power down the NXT. This function powers down the NXT. The running program will terminate as a result of this action. 4.37.2.2 #dene RebootInFirmwareMode SetIOCtrlModuleValue(IOCtrlOffsetPowerOn, IOCTRL_BOOT)
Reboot the NXT in rmware download mode. This function lets you reboot the NXT into SAMBA or rmware download mode. The running program will terminate as a result of this action.
4.38
Functions for accessing and modifying Loader module features. Denes #dene GetFreeMemory(_value) __GetFreeMemory(_value)
Get free ash memory.
4.38
382
_result)
__-
_result)
__-
_result)
__-
_result)
__-
_result)
__-
4.38
383
4.38
384
4.38.1
Detailed Description
Functions for accessing and modifying Loader module features. 4.38.2 4.38.2.1 Dene Documentation #dene CloseFile(_handle, _result) __closeFile(_handle, _result)
Close a le. Close the le associated with the specied le handle. The loader result code is returned as the value of the function call. The handle parameter must be a constant or a variable. Parameters: _handle The le handle. _result The function call result. See Loader module error codes.
4.38.2.2
Create a le. Create a new le with the specied lename and size and open it for writing. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename and size parameters must be constants, constant expressions, or variables. A le created with a size of zero bytes cannot be written to since the NXC le writing functions do not grow the le if its capacity is exceeded during a write attempt. Parameters: _fname The name of the le to create. _fsize The size of the le. _handle The le handle output from the function call. _result The function call result. See Loader module error codes.
4.38.2.3
4.38
385
Create a linear le. Create a new linear le with the specied lename and size and open it for writing. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename and size parameters must be constants, constant expressions, or variables. A le created with a size of zero bytes cannot be written to since the NXC le writing functions do not grow the le if its capacity is exceeded during a write attempt. Parameters: _fname The name of the le to create. _fsize The size of the le. _handle The le handle output from the function call. _result The function call result. See Loader module error codes. Warning: This function requires the enhanced NBC/NXC rmware.
4.38.2.4
Create a non-linear le. Create a new non-linear le with the specied lename and size and open it for writing. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename and size parameters must be constants, constant expressions, or variables. A le created with a size of zero bytes cannot be written to since the NXC le writing functions do not grow the le if its capacity is exceeded during a write attempt. Parameters: _fname The name of the le to create. _fsize The size of the le. _handle The le handle output from the function call. _result The function call result. See Loader module error codes. Warning: This function requires the enhanced NBC/NXC rmware.
4.38
386
4.38.2.5
Delete a le. Delete the specied le. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable. Parameters: _fname The name of the le to delete. _result The function call result. See Loader module error codes.
4.38.2.6
Start searching for les. This function lets you begin iterating through les stored on the NXT. Parameters: _fname On input this contains the lename pattern you are searching for. On output this contains the name of the rst le found that matches the pattern. _handle The search handle input to and output from the function call. _result The function call result. See Loader module error codes. Warning: This function requires the enhanced NBC/NXC rmware.
4.38.2.7
Continue searching for les. This function lets you continue iterating through les stored on the NXT. Parameters: _fname On output this contains the name of the next le found that matches the pattern used when the search began by calling FindFirstFile. _handle The search handle input to and output from the function call. _result The function call result. See Loader module error codes.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.38
387
4.38.2.8
Get free ash memory. Get the number of bytes of ash memory that are available for use. Parameters: _value The number of bytes of unused ash memory.
4.38.2.9
Open a le for appending. Open an existing le with the specied lename for writing. The le size is returned in the second parameter, which must be a variable. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable. Parameters: _fname The name of the le to open. _fsize The size of the le returned by the function. _handle The le handle output from the function call. _result The function call result. See Loader module error codes.
4.38.2.10
Open a le for reading. Open an existing le with the specied lename for reading. The le size is returned in the second parameter, which must be a variable. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable.
4.38
388
Parameters: _fname The name of the le to open. _fsize The size of the le returned by the function. _handle The le handle output from the function call. _result The function call result. See Loader module error codes.
4.38.2.11
Open a linear le for reading. Open an existing linear le with the specied lename for reading. The le size is returned in the second parameter, which must be a variable. The le handle is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable. Parameters: _fname The name of the le to open. _fsize The size of the le returned by the function. _handle The le handle output from the function call. _result The function call result. See Loader module error codes. Warning: This function requires the enhanced NBC/NXC rmware.
4.38.2.12
Read a value from a le. Read a value from the le associated with the specied handle. The handle parameter must be a variable. The value parameter must be a variable. The type of the value parameter determines the number of bytes of data read. Parameters: _handle The le handle. _n The variable to store the data read from the le. _result The function call result. See Loader module error codes.
4.38
389
4.38.2.13
Read bytes from a le. Read the specied number of bytes from the le associated with the specied handle. The handle parameter must be a variable. The length parameter must be a variable. The buf parameter must be an array or a string variable. The actual number of bytes read is returned in the length parameter. Parameters: _handle The le handle. _len The number of bytes to read. Returns the number of bytes actually read. _buf The byte array where the data is stored on output. _result The function call result. See Loader module error codes.
4.38.2.14
Read a value from a le plus line ending. Read a value from the le associated with the specied handle. The handle parameter must be a variable. The value parameter must be a variable. The type of the value parameter determines the number of bytes of data read. The ReadLn function reads two additional bytes from the le which it assumes are a carriage return and line feed pair. Parameters: _handle The le handle. _n The variable to store the data read from the le. _result The function call result. See Loader module error codes.
4.38.2.15
Read a string from a le plus line ending. Read a string from the le associated with the specied handle. The handle parameter must be a variable. The output parameter must be a variable. Appends bytes to the output variable until a line ending (CRLF) is reached. The line ending is also read but it is not appended to the output parameter.
4.38
390
Parameters: _handle The le handle. _output The variable to store the string read from the le. _result The function call result. See Loader module error codes.
4.38.2.16
Rename a le. Rename a le from the old lename to the new lename. The loader param _result code is returned as the value of the function call. The lename parameters must be constants or variables. Parameters: _oldname The old lename. _newname The new lename. _result The function call result. See Loader module error codes.
4.38.2.17
Resize a le. Resize the specied le. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable. Parameters: _fname The name of the le to resize. _newsize The new size for the le. _result The function call result. See Loader module error codes.
4.38.2.18
Resolve a handle. Resolve a le handle from the specied lename. The le handle is returned in the second parameter, which must be a variable. A boolean value indicating whether the handle can be used to write to the le or not is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The lename parameter must be a constant or a variable.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.38
391
Parameters: _fname The name of the le for which to resolve a handle. _handle The le handle output from the function call. _writeable A boolean ag indicating whether the handle is to a le open for writing (true) or reading (false). _result The function call result. See Loader module error codes.
4.38.2.19
Write value to le. Write a value to the le associated with the specied handle. The handle parameter must be a variable. The value parameter must be a constant, a constant expression, or a variable. The type of the value parameter determines the number of bytes of data written. Parameters: _handle The le handle. _n The value to write to the le. _result The function call result. See Loader module error codes.
4.38.2.20
Write bytes to le. Write the contents of the data array to the le associated with the specied handle. The handle parameter must be a variable. The cnt parameter must be a variable. The data parameter must be a byte array. The actual number of bytes written is returned in the cnt parameter. Parameters: _handle The le handle. _buf The byte array or string containing the data to write. _cnt The number of bytes actually written to the le. _result The function call result. See Loader module error codes.
4.38
392
4.38.2.21
Write bytes to a le with limit. Write the specied number of bytes to the le associated with the specied handle. The handle parameter must be a variable. The len parameter must be a variable. The buf parameter must be a byte array or a string variable or string constant. The actual number of bytes written is returned in the len parameter. Parameters: _handle The le handle. _len The maximum number of bytes to write on input. Returns the actual number of bytes written. _buf The byte array or string containing the data to write. _result The function call result. See Loader module error codes.
4.38.2.22
Write a value and new line to a le. Write a value to the le associated with the specied handle. The handle parameter must be a variable. The value parameter must be a constant, a constant expression, or a variable. The type of the value parameter determines the number of bytes of data written. This function also writes a carriage return and a line feed to the le following the numeric data. Parameters: _handle The le handle. _n The value to write to the le. _result The function call result. See Loader module error codes.
4.38.2.23
Write string and new line to a le. Write the string to the le associated with the specied handle. The handle parameter must be a variable. The count parameter must be a variable. The str parameter must be a string variable or string constant. This function also writes a carriage return and a line feed to the le following the string data. The total number of bytes written is returned in the cnt parameter.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.39
cstdlib API
393
Parameters: _handle The le handle. _str The string to write to the le. _cnt The number of bytes actually written to the le. _result The function call result. See Loader module error codes.
4.38.2.24
Write string to a le. Write the string to the le associated with the specied handle. The handle parameter must be a variable. The count parameter must be a variable. The str parameter must be a string variable or string constant. The actual number of bytes written is returned in the cnt parameter. Parameters: _handle The le handle. _str The string to write to the le. _cnt The number of bytes actually written to the le. _result The function call result. See Loader module error codes.
4.39
cstdlib API
4.39.1
Detailed Description
4.40
cmath API
394
4.39.2 4.39.2.1
Generate an unsigned random number. Return an unsigned 16-bit random number. The returned value will range between 0 and n (exclusive). Parameters: _arg An unsigned random number. _max The maximum unsigned value desired.
4.39.2.2
Generate signed random number. Return a signed 16-bit random number. Parameters: _arg A signed random number
4.40
cmath API
Standard C cmath API functions. Denes #dene bcd2dec(_bcd, _result) __bcd2dec(_bcd, _result)
Convert from BCD to decimal Return the decimal equivalent of the binary coded decimal value provided.
4.40.1
Detailed Description
Standard C cmath API functions. 4.40.2 4.40.2.1 Dene Documentation #dene bcd2dec(_bcd, _result) __bcd2dec(_bcd, _result)
4.41
395
Convert from BCD to decimal Return the decimal equivalent of the binary coded decimal value provided. Parameters: _bcd The value you want to convert from bcd to decimal. _result The decimal equivalent of the binary coded decimal byte.
4.41
Constants for use with the NXC ArrayOp function and the NBC arrop statement. Denes 4.41.1 #dene OPARR_SUM 0x00 #dene OPARR_MEAN 0x01 #dene OPARR_SUMSQR 0x02 #dene OPARR_STD 0x03 #dene OPARR_MIN 0x04 #dene OPARR_MAX 0x05 #dene OPARR_SORT 0x06 Detailed Description
Constants for use with the NXC ArrayOp function and the NBC arrop statement. 4.41.2 4.41.2.1 Dene Documentation #dene OPARR_MAX 0x05 Calculate the maximum value of the elements in the numeric input array 4.41.2.2 #dene OPARR_MEAN 0x01 Calculate the mean value for the elements in the numeric input array 4.41.2.3 #dene OPARR_MIN 0x04 Calculate the minimum value of the elements in the numeric input array
4.42
396
4.41.2.4
#dene OPARR_SORT 0x06 Sort the elements in the numeric input array
4.41.2.5
#dene OPARR_STD 0x03 Calculate the standard deviation of the elements in the numeric input array
4.41.2.6
#dene OPARR_SUM 0x00 Calculate the sum of the elements in the numeric input array
4.41.2.7
#dene OPARR_SUMSQR 0x02 Calculate the sum of the squares of the elements in the numeric input array
4.42
Constants for use in the SysCall() function or NBC syscall statement. Denes #dene FileOpenRead 0 #dene FileOpenWrite 1 #dene FileOpenAppend 2 #dene FileRead 3 #dene FileWrite 4 #dene FileClose 5 #dene FileResolveHandle 6 #dene FileRename 7 #dene FileDelete 8 #dene SoundPlayFile 9 #dene SoundPlayTone 10 #dene SoundGetState 11 #dene SoundSetState 12 #dene DrawText 13 #dene DrawPoint 14 #dene DrawLine 15 #dene DrawCircle 16 #dene DrawRect 17 #dene DrawGraphic 18
4.42
397
#dene SetScreenMode 19 #dene ReadButton 20 #dene CommLSWrite 21 #dene CommLSRead 22 #dene CommLSCheckStatus 23 #dene RandomNumber 24 #dene GetStartTick 25 #dene MessageWrite 26 #dene MessageRead 27 #dene CommBTCheckStatus 28 #dene CommBTWrite 29 #dene CommBTRead 30 #dene KeepAlive 31 #dene IOMapRead 32 #dene IOMapWrite 33 #dene ColorSensorRead 34 #dene CommBTOnOff 35 #dene CommBTConnection 36 #dene CommHSWrite 37 #dene CommHSRead 38 #dene CommHSCheckStatus 39 #dene ReadSemData 40 #dene WriteSemData 41 #dene ComputeCalibValue 42 #dene UpdateCalibCacheInfo 43 #dene DatalogWrite 44 #dene DatalogGetTimes 45 #dene SetSleepTimeoutVal 46 #dene ListFiles 47 #dene IOMapReadByID 78 #dene IOMapWriteByID 79 #dene DisplayExecuteFunction 80 #dene CommExecuteFunction 81 #dene LoaderExecuteFunction 82 #dene FileFindFirst 83 #dene FileFindNext 84 #dene FileOpenWriteLinear 85 #dene FileOpenWriteNonLinear 86 #dene FileOpenReadLinear 87 #dene CommHSControl 88 #dene CommLSWriteEx 89 #dene FileSeek 90 #dene FileResize 91
4.42
398
4.42.1
#dene DrawGraphicArray 92 #dene DrawPolygon 93 #dene DrawEllipse 94 #dene DrawFont 95 Detailed Description
Constants for use in the SysCall() function or NBC syscall statement. 4.42.2 4.42.2.1 Dene Documentation #dene ColorSensorRead 34 Read data from the NXT 2.0 color sensor 4.42.2.2 #dene CommBTCheckStatus 28 Check the bluetooth status 4.42.2.3 #dene CommBTConnection 36 Connect or disconnect to a known bluetooth device 4.42.2.4 #dene CommBTOnOff 35 Turn the bluetooth radio on or off 4.42.2.5 #dene CommBTRead 30 Read from a bluetooth connection 4.42.2.6 #dene CommBTWrite 29 Write to a bluetooth connections 4.42.2.7 #dene CommExecuteFunction 81 Execute one of the Comm modules internal functions
4.42
399
4.42.2.8
4.42.2.9
4.42.2.10
4.42.2.11
4.42.2.12
4.42.2.13
4.42.2.14
4.42.2.15
#dene CommLSWriteEx 89 Write to a lowspeed (aka I2C) device with optional restart on read
4.42.2.16
4.42.2.17
4.42
400
4.42.2.18
4.42.2.19
4.42.2.20
4.42.2.21
4.42.2.22
#dene DrawFont 95 Draw text using a custom RIC-based font to the LCD screen
4.42.2.23
4.42.2.24
#dene DrawGraphicArray 92 Draw a graphic image from a byte array to the LCD screen
4.42.2.25
4.42.2.26
4.42.2.27
4.42
401
4.42.2.28
4.42.2.29
4.42.2.30
4.42.2.31
4.42.2.32
4.42.2.33
4.42.2.34
4.42.2.35
4.42.2.36
4.42.2.37
4.42
402
4.42.2.38
4.42.2.39
4.42.2.40
4.42.2.41
4.42.2.42
4.42.2.43
#dene FileResolveHandle 6 Get a le handle for the specied lename if it is already open
4.42.2.44
4.42.2.45
4.42.2.46
4.42.2.47
#dene IOMapRead 32
Read data from one of the rmware modules IOMap structures using the modules name
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.42
403
4.42.2.48
#dene IOMapReadByID 78
Read data from one of the rmware modules IOMap structures using the modules ID 4.42.2.49 #dene IOMapWrite 33
Write data to one of the rmware modules IOMap structures using the modules name 4.42.2.50 #dene IOMapWriteByID 79
Write data to one of the rmware modules IOMap structures using the modules ID 4.42.2.51 #dene KeepAlive 31 Reset the NXT sleep timer 4.42.2.52 #dene ListFiles 47 List les that match the specied lename pattern 4.42.2.53 #dene LoaderExecuteFunction 82 Execute one of the Loader modules internal functions 4.42.2.54 #dene MessageRead 27 Read a message from a mailbox 4.42.2.55 #dene MessageWrite 26 Write a message to a mailbox 4.42.2.56 #dene RandomNumber 24 Generate a random number
4.42
404
4.42.2.57
4.42.2.58
4.42.2.59
4.42.2.60
4.42.2.61
4.42.2.62
4.42.2.63
#dene SoundPlayTone 10 Play a simple tone with the specied frequency and duration
4.42.2.64
4.42.2.65
4.42.2.66
4.43
405
4.43
Line numbers for use with DrawText system function. Denes 4.43.1 #dene LCD_LINE8 0 #dene LCD_LINE7 8 #dene LCD_LINE6 16 #dene LCD_LINE5 24 #dene LCD_LINE4 32 #dene LCD_LINE3 40 #dene LCD_LINE2 48 #dene LCD_LINE1 56 Detailed Description
Line numbers for use with DrawText system function. See also: SysDrawText(), TextOut(), NumOut() 4.43.2 4.43.2.1 Dene Documentation #dene LCD_LINE1 56 The 1st line of the LCD screen 4.43.2.2 #dene LCD_LINE2 48 The 2nd line of the LCD screen 4.43.2.3 #dene LCD_LINE3 40 The 3rd line of the LCD screen 4.43.2.4 #dene LCD_LINE4 32 The 4th line of the LCD screen
4.44
Time constants
406
4.43.2.5
4.43.2.6
4.43.2.7
4.43.2.8
4.44
Time constants
Constants for use with the Wait() function. Denes #dene MS_1 1 #dene MS_2 2 #dene MS_3 3 #dene MS_4 4 #dene MS_5 5 #dene MS_6 6 #dene MS_7 7 #dene MS_8 8 #dene MS_9 9 #dene MS_10 10 #dene MS_20 20 #dene MS_30 30 #dene MS_40 40 #dene MS_50 50 #dene MS_60 60 #dene MS_70 70 #dene MS_80 80 #dene MS_90 90 #dene MS_100 100
4.44
Time constants
407
4.44.1
#dene MS_150 150 #dene MS_200 200 #dene MS_250 250 #dene MS_300 300 #dene MS_350 350 #dene MS_400 400 #dene MS_450 450 #dene MS_500 500 #dene MS_600 600 #dene MS_700 700 #dene MS_800 800 #dene MS_900 900 #dene SEC_1 1000 #dene SEC_2 2000 #dene SEC_3 3000 #dene SEC_4 4000 #dene SEC_5 5000 #dene SEC_6 6000 #dene SEC_7 7000 #dene SEC_8 8000 #dene SEC_9 9000 #dene SEC_10 10000 #dene SEC_15 15000 #dene SEC_20 20000 #dene SEC_30 30000 #dene MIN_1 60000 Detailed Description
Constants for use with the Wait() function. See also: Wait() 4.44.2 4.44.2.1 Dene Documentation #dene MIN_1 60000 1 minute
4.44
Time constants
408
4.44.2.2
4.44.2.3
4.44.2.4
4.44.2.5
4.44.2.6
4.44.2.7
4.44.2.8
4.44.2.9
4.44.2.10
4.44.2.11
4.44
Time constants
409
4.44.2.12
4.44.2.13
4.44.2.14
4.44.2.15
4.44.2.16
4.44.2.17
4.44.2.18
4.44.2.19
4.44.2.20
4.44.2.21
4.44
Time constants
410
4.44.2.22
4.44.2.23
4.44.2.24
4.44.2.25
4.44.2.26
4.44.2.27
4.44.2.28
4.44.2.29
4.44.2.30
4.44.2.31
4.44
Time constants
411
4.44.2.32
4.44.2.33
4.44.2.34
4.44.2.35
4.44.2.36
4.44.2.37
4.44.2.38
4.44.2.39
4.44.2.40
4.44.2.41
4.45
Mailbox constants
412
4.44.2.42
4.44.2.43
4.44.2.44
4.44.2.45
4.45
Mailbox constants
Mailbox number constants should be used to avoid confusing NXT-G users. Denes 4.45.1 #dene MAILBOX1 0 #dene MAILBOX2 1 #dene MAILBOX3 2 #dene MAILBOX4 3 #dene MAILBOX5 4 #dene MAILBOX6 5 #dene MAILBOX7 6 #dene MAILBOX8 7 #dene MAILBOX9 8 #dene MAILBOX10 9 Detailed Description
Mailbox number constants should be used to avoid confusing NXT-G users. See also: SysMessageWrite(), SysMessageRead(), SendMessage(), ReceiveMessage(), SendRemoteBool(), SendRemoteNumber(), SendRemoteString(), SendResponseBool(), SendResponseNumber(), SendResponseString(), ReceiveRemoteBool(),
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.45
Mailbox constants
413
ReceiveRemoteNumber(), ReceiveRemoteString(), ReceiveRemoteMessageEx(), RemoteMessageRead(), RemoteMessageWrite() 4.45.2 4.45.2.1 Dene Documentation #dene MAILBOX1 0 Mailbox number 1 4.45.2.2 #dene MAILBOX10 9 Mailbox number 10 4.45.2.3 #dene MAILBOX2 1 Mailbox number 2 4.45.2.4 #dene MAILBOX3 2 Mailbox number 3 4.45.2.5 #dene MAILBOX4 3 Mailbox number 4 4.45.2.6 #dene MAILBOX5 4 Mailbox number 5 4.45.2.7 #dene MAILBOX6 5 Mailbox number 6 4.45.2.8 #dene MAILBOX7 6 Mailbox number 7 4.45.2.9 #dene MAILBOX8 7 Mailbox number 8
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.46
VM state constants
414
4.45.2.10
4.46
VM state constants
Constants dening possible VM states. Denes 4.46.1 #dene TIMES_UP 6 #dene ROTATE_QUEUE 5 #dene STOP_REQ 4 #dene BREAKOUT_REQ 3 #dene CLUMP_SUSPEND 2 #dene CLUMP_DONE 1 Detailed Description
Constants dening possible VM states. 4.46.2 4.46.2.1 Dene Documentation #dene BREAKOUT_REQ 3 VM should break out of current thread 4.46.2.2 #dene CLUMP_DONE 1 VM has nished executing thread 4.46.2.3 #dene CLUMP_SUSPEND 2 VM should suspend thread 4.46.2.4 #dene ROTATE_QUEUE 5 VM should rotate queue
4.47
Fatal errors
415
4.46.2.5
4.46.2.6
4.47
Fatal errors
Constants dening various fatal error conditions. Denes 4.47.1 #dene ERR_ARG -1 #dene ERR_INSTR -2 #dene ERR_FILE -3 #dene ERR_VER -4 #dene ERR_MEM -5 #dene ERR_BAD_PTR -6 #dene ERR_CLUMP_COUNT -7 #dene ERR_NO_CODE -8 #dene ERR_INSANE_OFFSET -9 #dene ERR_BAD_POOL_SIZE -10 #dene ERR_LOADER_ERR -11 #dene ERR_SPOTCHECK_FAIL -12 #dene ERR_NO_ACTIVE_CLUMP -13 #dene ERR_DEFAULT_OFFSETS -14 #dene ERR_MEMMGR_FAIL -15 #dene ERR_NON_FATAL -16 Detailed Description
Constants dening various fatal error conditions. 4.47.2 4.47.2.1 Dene Documentation #dene ERR_ARG -1 0xFF Bad arguments
4.47
Fatal errors
416
4.47.2.2
4.47.2.3
4.47.2.4
4.47.2.5
0xF2 (DefaultsOffset != FileOffsets.DynamicDefaults) || (DefaultsOffset + FileOffsets.DynamicDefaultsSize != FileOffsets.DSDefaultsSize) 4.47.2.6 #dene ERR_FILE -3 0xFD Malformed le contents 4.47.2.7 #dene ERR_INSANE_OFFSET -9 0xF7 CurrOffset != (DataSize - VarsCmd.CodespaceCount 2) 4.47.2.8 #dene ERR_INSTR -2 0xFE Illegal bytecode instruction 4.47.2.9 #dene ERR_LOADER_ERR -11
0xF5 LOADER_ERR(LStatus) != SUCCESS || pData == NULL || DataSize == 0 4.47.2.10 #dene ERR_MEM -5 0xFB Insufcient memory available
4.48
General errors
417
4.47.2.11
0xF1 (UBYTE )VarsCmd.MemMgr.pDopeVectorArray != VarsCmd.pDataspace + DV_ARRAY[0].Offset 4.47.2.12 #dene ERR_NO_ACTIVE_CLUMP -13 0xF3 VarsCmd.RunQ.Head == NOT_A_CLUMP 4.47.2.13 #dene ERR_NO_CODE -8 0xF8 VarsCmd.CodespaceCount == 0 4.47.2.14 #dene ERR_NON_FATAL -16 Fatal errors are greater than this value 4.47.2.15 #dene ERR_SPOTCHECK_FAIL -12 0xF4 ((UBYTE)(VarsCmd.pCodespace) < pData) (c_cmd.c 1893) 4.47.2.16 #dene ERR_VER -4 0xFC Version mismatch between rmware and compiler
4.48
General errors
Constants dening general error conditions. Denes 4.48.1 #dene ERR_INVALID_PORT -16 #dene ERR_INVALID_FIELD -17 #dene ERR_INVALID_QUEUE -18 #dene ERR_INVALID_SIZE -19 #dene ERR_NO_PROG -20 Detailed Description
4.49
418
4.48.2 4.48.2.1
Dene Documentation #dene ERR_INVALID_FIELD -17 0xEF Attempted to access invalid eld of a structure
4.48.2.2
4.48.2.3
4.48.2.4
4.48.2.5
4.49
Constants dening communication error conditions. Denes 4.49.1 #dene ERR_COMM_CHAN_NOT_READY -32 #dene ERR_COMM_CHAN_INVALID -33 #dene ERR_COMM_BUFFER_FULL -34 #dene ERR_COMM_BUS_ERR -35 Detailed Description
4.50
419
4.49.2 4.49.2.1
4.49.2.2
#dene ERR_COMM_BUS_ERR -35 0xDD Something went wrong on the communications bus
4.49.2.3
4.49.2.4
4.50
Constants dening errors that can occur during remote control (RC) direct command operations. Denes 4.50.1 #dene ERR_RC_ILLEGAL_VAL -64 #dene ERR_RC_BAD_PACKET -65 #dene ERR_RC_UNKNOWN_CMD -66 #dene ERR_RC_FAILED -67 Detailed Description
Constants dening errors that can occur during remote control (RC) direct command operations. 4.50.2 4.50.2.1 Dene Documentation #dene ERR_RC_BAD_PACKET -65 0xBF Clearly insane packet
4.51
420
4.50.2.2
#dene ERR_RC_FAILED -67 0xBD Request failed (i.e. specied le not found)
4.50.2.3
4.50.2.4
4.51
Constants dening various states of the command module virtual machine. Denes 4.51.1 #dene PROG_IDLE 0 #dene PROG_OK 1 #dene PROG_RUNNING 2 #dene PROG_ERROR 3 #dene PROG_ABORT 4 #dene PROG_RESET 5 Detailed Description
Constants dening various states of the command module virtual machine. 4.51.2 4.51.2.1 Dene Documentation #dene PROG_ABORT 4 Program has been aborted 4.51.2.2 #dene PROG_ERROR 3 A program error has occurred
4.52
421
4.51.2.3
4.51.2.4
4.51.2.5
4.51.2.6
4.52
Constant offsets into the Command module IOMAP structure. Denes 4.52.1 #dene CommandOffsetFormatString 0 #dene CommandOffsetPRCHandler 16 #dene CommandOffsetTick 20 #dene CommandOffsetOffsetDS 24 #dene CommandOffsetOffsetDVA 26 #dene CommandOffsetProgStatus 28 #dene CommandOffsetAwake 29 #dene CommandOffsetActivateFlag 30 #dene CommandOffsetDeactivateFlag 31 #dene CommandOffsetFileName 32 #dene CommandOffsetMemoryPool 52 #dene CommandOffsetSyncTime 32820 #dene CommandOffsetSyncTick 32824 Detailed Description
4.52
422
4.52.2 4.52.2.1
4.52.2.2
4.52.2.3
4.52.2.4
4.52.2.5
4.52.2.6
4.52.2.7
4.52.2.8
#dene CommandOffsetOffsetDVA 26 Offset to the running programs DOPE vector address (DVA)
4.52.2.9
4.53
423
4.52.2.10
4.52.2.11
4.52.2.12
4.52.2.13
4.53
Constants that are part of the NXT rmwares IOCtrl module. Modules PowerOn constants
Use these constants to power down the NXT or boot it into SAMBA (aka rmware download) mode.
4.53.1
Detailed Description
4.54
PowerOn constants
Use these constants to power down the NXT or boot it into SAMBA (aka rmware download) mode.
4.55
424
Denes #dene IOCTRL_POWERDOWN 0x5A00 #dene IOCTRL_BOOT 0xA55A 4.54.1 Detailed Description
Use these constants to power down the NXT or boot it into SAMBA (aka rmware download) mode. 4.54.2 4.54.2.1 Dene Documentation #dene IOCTRL_BOOT 0xA55A Reboot the NXT into SAMBA mode 4.54.2.2 #dene IOCTRL_POWERDOWN 0x5A00 Power down the NXT
4.55
Constant offsets into the IOCtrl module IOMAP structure. Denes #dene IOCtrlOffsetPowerOn 0 4.55.1 Detailed Description
Constant offsets into the IOCtrl module IOMAP structure. 4.55.2 4.55.2.1 Dene Documentation #dene IOCtrlOffsetPowerOn 0 Offset to power on eld
4.56
425
4.56
Constants that are part of the NXT rmwares Loader module. Modules Loader module IOMAP offsets
Constant offsets into the Loader module IOMAP structure.
Constants that are part of the NXT rmwares Loader module. 4.56.2 4.56.2.1 Dene Documentation #dene EOF -1 A constant representing end of le 4.56.2.2 #dene NULL 0 A constant representing NULL
4.57
4.58
426
Constant offsets into the Loader module IOMAP structure. 4.57.2 4.57.2.1 Dene Documentation #dene LoaderOffsetFreeUserFlash 4 Offset to the amount of free user ash 4.57.2.2 #dene LoaderOffsetPFunc 0 Offset to the Loader module function pointer
4.58
Error codes returned by functions in the Loader module (le access). Denes #dene LDR_SUCCESS 0x0000 #dene LDR_INPROGRESS 0x0001 #dene LDR_REQPIN 0x0002 #dene LDR_NOMOREHANDLES 0x8100 #dene LDR_NOSPACE 0x8200 #dene LDR_NOMOREFILES 0x8300 #dene LDR_EOFEXPECTED 0x8400 #dene LDR_ENDOFFILE 0x8500 #dene LDR_NOTLINEARFILE 0x8600 #dene LDR_FILENOTFOUND 0x8700 #dene LDR_HANDLEALREADYCLOSED 0x8800 #dene LDR_NOLINEARSPACE 0x8900 #dene LDR_UNDEFINEDERROR 0x8A00 #dene LDR_FILEISBUSY 0x8B00 #dene LDR_NOWRITEBUFFERS 0x8C00 #dene LDR_APPENDNOTPOSSIBLE 0x8D00
4.58
427
4.58.1
#dene LDR_FILEISFULL 0x8E00 #dene LDR_FILEEXISTS 0x8F00 #dene LDR_MODULENOTFOUND 0x9000 #dene LDR_OUTOFBOUNDARY 0x9100 #dene LDR_ILLEGALFILENAME 0x9200 #dene LDR_ILLEGALHANDLE 0x9300 #dene LDR_BTBUSY 0x9400 #dene LDR_BTCONNECTFAIL 0x9500 #dene LDR_BTTIMEOUT 0x9600 #dene LDR_FILETX_TIMEOUT 0x9700 #dene LDR_FILETX_DSTEXISTS 0x9800 #dene LDR_FILETX_SRCMISSING 0x9900 #dene LDR_FILETX_STREAMERROR 0x9A00 #dene LDR_FILETX_CLOSEERROR 0x9B00 #dene LDR_INVALIDSEEK 0x9C00 Detailed Description
Error codes returned by functions in the Loader module (le access). 4.58.2 4.58.2.1 Dene Documentation #dene LDR_APPENDNOTPOSSIBLE 0x8D00 Only datales can be appended to. 4.58.2.2 #dene LDR_BTBUSY 0x9400 The bluetooth system is busy. 4.58.2.3 #dene LDR_BTCONNECTFAIL 0x9500 Bluetooth connection attempt failed. 4.58.2.4 #dene LDR_BTTIMEOUT 0x9600 A timeout in the bluetooth system has occurred. 4.58.2.5 #dene LDR_ENDOFFILE 0x8500 The end of the le has been reached.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.58
428
4.58.2.6
4.58.2.7
4.58.2.8
4.58.2.9
4.58.2.10
4.58.2.11
4.58.2.12
4.58.2.13
4.58.2.14
4.58.2.15
4.58
429
4.58.2.16
4.58.2.17
Filename length to long or attempted open a system le (.rxe, .rtm, or .sys) for writing as a datale. 4.58.2.18 #dene LDR_ILLEGALHANDLE 0x9300 Invalid le handle. 4.58.2.19 #dene LDR_INPROGRESS 0x0001 The function is executing but has not yet completed. 4.58.2.20 #dene LDR_INVALIDSEEK 0x9C00 Invalid le seek operation. 4.58.2.21 #dene LDR_MODULENOTFOUND 0x9000 No modules matched the specied search criteria. 4.58.2.22 #dene LDR_NOLINEARSPACE 0x8900 Not enough linear ash memory is available. 4.58.2.23 #dene LDR_NOMOREFILES 0x8300 The maximum number of les has been reached. 4.58.2.24 #dene LDR_NOMOREHANDLES 0x8100 All available le handles are in use. 4.58.2.25 #dene LDR_NOSPACE 0x8200 Not enough free ash memory for the specied le size.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.59
430
4.58.2.26
4.58.2.27
4.58.2.28
#dene LDR_OUTOFBOUNDARY 0x9100 Specied IOMap offset is outside the bounds of the IOMap.
4.58.2.29
4.58.2.30
4.58.2.31
4.59
Constants dening the functions provided by the Loader module. Denes #dene LDR_CMD_OPENREAD 0x80 #dene LDR_CMD_OPENWRITE 0x81 #dene LDR_CMD_READ 0x82 #dene LDR_CMD_WRITE 0x83 #dene LDR_CMD_CLOSE 0x84 #dene LDR_CMD_DELETE 0x85 #dene LDR_CMD_FINDFIRST 0x86 #dene LDR_CMD_FINDNEXT 0x87 #dene LDR_CMD_VERSIONS 0x88 #dene LDR_CMD_OPENWRITELINEAR 0x89
4.59
431
4.59.1
#dene LDR_CMD_OPENREADLINEAR 0x8A #dene LDR_CMD_OPENWRITEDATA 0x8B #dene LDR_CMD_OPENAPPENDDATA 0x8C #dene LDR_CMD_CROPDATAFILE 0x8D #dene LDR_CMD_FINDFIRSTMODULE 0x90 #dene LDR_CMD_FINDNEXTMODULE 0x91 #dene LDR_CMD_CLOSEMODHANDLE 0x92 #dene LDR_CMD_IOMAPREAD 0x94 #dene LDR_CMD_IOMAPWRITE 0x95 #dene LDR_CMD_BOOTCMD 0x97 #dene LDR_CMD_SETBRICKNAME 0x98 #dene LDR_CMD_BTGETADR 0x9A #dene LDR_CMD_DEVICEINFO 0x9B #dene LDR_CMD_DELETEUSERFLASH 0xA0 #dene LDR_CMD_POLLCMDLEN 0xA1 #dene LDR_CMD_POLLCMD 0xA2 #dene LDR_CMD_RENAMEFILE 0xA3 #dene LDR_CMD_BTFACTORYRESET 0xA4 #dene LDR_CMD_RESIZEDATAFILE 0xD0 #dene LDR_CMD_SEEKFROMSTART 0xD1 #dene LDR_CMD_SEEKFROMCURRENT 0xD2 #dene LDR_CMD_SEEKFROMEND 0xD3 Detailed Description
Constants dening the functions provided by the Loader module. 4.59.2 4.59.2.1 Dene Documentation #dene LDR_CMD_BOOTCMD 0x97 Reboot the NXT into SAMBA mode 4.59.2.2 #dene LDR_CMD_BTFACTORYRESET 0xA4 Reset bluetooth conguration to factory defaults 4.59.2.3 #dene LDR_CMD_BTGETADR 0x9A Get the NXTs bluetooth brick address
4.59
432
4.59.2.4
4.59.2.5
4.59.2.6
4.59.2.7
4.59.2.8
#dene LDR_CMD_DELETEUSERFLASH 0xA0 Delete all les from user ash memory
4.59.2.9
4.59.2.10
#dene LDR_CMD_FINDFIRST 0x86 Find the rst le matching the specied pattern
4.59.2.11
#dene LDR_CMD_FINDFIRSTMODULE 0x90 Find the rst module matching the specied pattern
4.59.2.12
#dene LDR_CMD_FINDNEXT 0x87 Find the next le matching the specied pattern
4.59.2.13
#dene LDR_CMD_FINDNEXTMODULE 0x91 Find the next module matching the specied pattern
4.59
433
4.59.2.14
4.59.2.15
4.59.2.16
4.59.2.17
4.59.2.18
4.59.2.19
4.59.2.20
4.59.2.21
4.59.2.22
4.59.2.23
4.60
434
4.59.2.24
4.59.2.25
4.59.2.26
4.59.2.27
4.59.2.28
4.59.2.29
4.59.2.30
4.59.2.31
4.59.2.32
4.60
4.61
SoundFlags constants
435
SoundState constants
Constants for use with the SoundState() function.
SoundMode constants
Constants for use with the SoundMode() function.
Tone constants
Constants for use in the SoundPlayTone() API function.
4.60.1
Detailed Description
4.61
SoundFlags constants
Constants for use with the SoundFlags() function. Denes #dene SOUND_FLAGS_IDLE 0x00 #dene SOUND_FLAGS_UPDATE 0x01 #dene SOUND_FLAGS_RUNNING 0x02 4.61.1 Detailed Description
Constants for use with the SoundFlags() function. See also: SoundFlags()
4.62
SoundState constants
436
4.61.2 4.61.2.1
4.61.2.2
4.61.2.3
4.62
SoundState constants
Constants for use with the SoundState() function. Denes 4.62.1 #dene SOUND_STATE_IDLE 0x00 #dene SOUND_STATE_FILE 0x02 #dene SOUND_STATE_TONE 0x03 #dene SOUND_STATE_STOP 0x04 Detailed Description
Constants for use with the SoundState() function. See also: SoundState() 4.62.2 4.62.2.1 Dene Documentation #dene SOUND_STATE_FILE 0x02 R - Processing a le of sound/melody data 4.62.2.2 #dene SOUND_STATE_IDLE 0x00 R - Idle, ready for start sound (SOUND_UPDATE)
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.63
SoundMode constants
437
4.62.2.3
4.62.2.4
4.63
SoundMode constants
Constants for use with the SoundMode() function. Denes #dene SOUND_MODE_ONCE 0x00 #dene SOUND_MODE_LOOP 0x01 #dene SOUND_MODE_TONE 0x02 4.63.1 Detailed Description
Constants for use with the SoundMode() function. See also: SoundMode() 4.63.2 4.63.2.1 Dene Documentation #dene SOUND_MODE_LOOP 0x01 W - Play le until writing SOUND_STATE_STOP into SoundState 4.63.2.2 #dene SOUND_MODE_ONCE 0x00 W - Only play le once 4.63.2.3 #dene SOUND_MODE_TONE 0x02 W - Play tone specied in Frequency for Duration ms
4.64
438
4.64
Constant offsets into the Sound module IOMAP structure. Denes 4.64.1 #dene SoundOffsetFreq 0 #dene SoundOffsetDuration 2 #dene SoundOffsetSampleRate 4 #dene SoundOffsetSoundFilename 6 #dene SoundOffsetFlags 26 #dene SoundOffsetState 27 #dene SoundOffsetMode 28 #dene SoundOffsetVolume 29 Detailed Description
Constant offsets into the Sound module IOMAP structure. 4.64.2 4.64.2.1 Dene Documentation #dene SoundOffsetDuration 2 RW - Tone duration [mS] (2 bytes) 4.64.2.2 #dene SoundOffsetFlags 26 RW - Play ag - described above (1 byte) SoundFlags constants 4.64.2.3 #dene SoundOffsetFreq 0 RW - Tone frequency [Hz] (2 bytes) 4.64.2.4 #dene SoundOffsetMode 28 RW - Play mode - described above (1 byte) SoundMode constants 4.64.2.5 #dene SoundOffsetSampleRate 4 RW - Sound le sample rate [2000..16000] (2 bytes)
4.65
439
4.64.2.6
4.64.2.7
4.64.2.8
4.65
Constants dening miscellaneous sound module aspects. Denes 4.65.1 #dene FREQUENCY_MIN 220 #dene FREQUENCY_MAX 14080 #dene SAMPLERATE_MIN 2000 #dene SAMPLERATE_DEFAULT 8000 #dene SAMPLERATE_MAX 16000 Detailed Description
Constants dening miscellaneous sound module aspects. 4.65.2 4.65.2.1 Dene Documentation #dene FREQUENCY_MAX 14080 Maximum frequency [Hz] 4.65.2.2 #dene FREQUENCY_MIN 220 Minimum frequency [Hz]
4.66
Tone constants
440
4.65.2.3
4.65.2.4
4.65.2.5
4.66
Tone constants
Constants for use in the SoundPlayTone() API function. Denes #dene TONE_A3 220 #dene TONE_AS3 233 #dene TONE_B3 247 #dene TONE_C4 262 #dene TONE_CS4 277 #dene TONE_D4 294 #dene TONE_DS4 311 #dene TONE_E4 330 #dene TONE_F4 349 #dene TONE_FS4 370 #dene TONE_G4 392 #dene TONE_GS4 415 #dene TONE_A4 440 #dene TONE_AS4 466 #dene TONE_B4 494 #dene TONE_C5 523 #dene TONE_CS5 554 #dene TONE_D5 587 #dene TONE_DS5 622 #dene TONE_E5 659 #dene TONE_F5 698 #dene TONE_FS5 740 #dene TONE_G5 784
4.66
Tone constants
441
4.66.1
#dene TONE_GS5 831 #dene TONE_A5 880 #dene TONE_AS5 932 #dene TONE_B5 988 #dene TONE_C6 1047 #dene TONE_CS6 1109 #dene TONE_D6 1175 #dene TONE_DS6 1245 #dene TONE_E6 1319 #dene TONE_F6 1397 #dene TONE_FS6 1480 #dene TONE_G6 1568 #dene TONE_GS6 1661 #dene TONE_A6 1760 #dene TONE_AS6 1865 #dene TONE_B6 1976 #dene TONE_C7 2093 #dene TONE_CS7 2217 #dene TONE_D7 2349 #dene TONE_DS7 2489 #dene TONE_E7 2637 #dene TONE_F7 2794 #dene TONE_FS7 2960 #dene TONE_G7 3136 #dene TONE_GS7 3322 #dene TONE_A7 3520 #dene TONE_AS7 3729 #dene TONE_B7 3951 Detailed Description
Constants for use in the SoundPlayTone() API function. See also: SoundPlayTone() 4.66.2 4.66.2.1 Dene Documentation #dene TONE_A3 220 Third octave A
4.66
Tone constants
442
4.66.2.2
4.66.2.3
4.66.2.4
4.66.2.5
4.66.2.6
4.66.2.7
4.66.2.8
4.66.2.9
4.66.2.10
4.66.2.11
4.66
Tone constants
443
4.66.2.12
4.66.2.13
4.66.2.14
4.66.2.15
4.66.2.16
4.66.2.17
4.66.2.18
4.66.2.19
4.66.2.20
4.66.2.21
4.66
Tone constants
444
4.66.2.22
4.66.2.23
4.66.2.24
4.66.2.25
4.66.2.26
4.66.2.27
4.66.2.28
4.66.2.29
4.66.2.30
4.66.2.31
4.66
Tone constants
445
4.66.2.32
4.66.2.33
4.66.2.34
4.66.2.35
4.66.2.36
4.66.2.37
4.66.2.38
4.66.2.39
4.66.2.40
4.66.2.41
4.66
Tone constants
446
4.66.2.42
4.66.2.43
4.66.2.44
4.66.2.45
4.66.2.46
4.66.2.47
4.66.2.48
4.66.2.49
4.66.2.50
4.66.2.51
4.67
447
4.67
Constants that are part of the NXT rmwares Button module. Modules Button name constants
Constants to specify which button to use with button module functions.
ButtonState constants
Constants for use with the ButtonState() function.
4.67.1
Detailed Description
4.68
Constants to specify which button to use with button module functions. Denes 4.68.1 #dene BTN1 0 #dene BTN2 1 #dene BTN3 2 #dene BTN4 3 #dene BTNEXIT BTN1 #dene BTNRIGHT BTN2 #dene BTNLEFT BTN3 #dene BTNCENTER BTN4 #dene NO_OF_BTNS 4 Detailed Description
4.68
448
See also: ButtonPressed(), ButtonState(), ButtonCount(), ReadButtonEx(), SysReadButton(), ReadButtonType 4.68.2 4.68.2.1 Dene Documentation #dene BTN1 0 The exit button. 4.68.2.2 #dene BTN2 1 The right button. 4.68.2.3 #dene BTN3 2 The left button. 4.68.2.4 #dene BTN4 3 The enter button. 4.68.2.5 #dene BTNCENTER BTN4 The enter button. 4.68.2.6 #dene BTNEXIT BTN1 The exit button. 4.68.2.7 #dene BTNLEFT BTN3 The left button. 4.68.2.8 #dene BTNRIGHT BTN2 The right button.
4.69
ButtonState constants
449
4.68.2.9
4.69
ButtonState constants
Constants for use with the ButtonState() function. Denes 4.69.1 #dene BTNSTATE_PRESSED_EV 0x01 #dene BTNSTATE_SHORT_RELEASED_EV 0x02 #dene BTNSTATE_LONG_PRESSED_EV 0x04 #dene BTNSTATE_LONG_RELEASED_EV 0x08 #dene BTNSTATE_PRESSED_STATE 0x80 #dene BTNSTATE_NONE 0x10 Detailed Description
Constants for use with the ButtonState() function. The _EV values can be combined together using a bitwise OR operation. See also: ButtonState() 4.69.2 4.69.2.1 Dene Documentation #dene BTNSTATE_LONG_PRESSED_EV 0x04 Button is in the long pressed state. 4.69.2.2 #dene BTNSTATE_LONG_RELEASED_EV 0x08 Button is in the long released state. 4.69.2.3 #dene BTNSTATE_NONE 0x10 The default button state.
4.70
450
4.69.2.4
4.69.2.5
4.69.2.6
4.70
Constant offsets into the Button module IOMAP structure. Denes 4.70.1 #dene ButtonOffsetPressedCnt(b) (((b)8)+0) #dene ButtonOffsetLongPressCnt(b) (((b)8)+1) #dene ButtonOffsetShortRelCnt(b) (((b)8)+2) #dene ButtonOffsetLongRelCnt(b) (((b)8)+3) #dene ButtonOffsetRelCnt(b) (((b)8)+4) #dene ButtonOffsetState(b) ((b)+32) Detailed Description
Constant offsets into the Button module IOMAP structure. 4.70.2 4.70.2.1 Dene Documentation #dene ButtonOffsetLongPressCnt(b) (((b)8)+1) Offset to the LongPressCnt eld. This eld stores the long press count. 4.70.2.2 #dene ButtonOffsetLongRelCnt(b) (((b)8)+3) Offset to the LongRelCnt eld. This eld stores the long release count.
4.71
Ui module constants
451
4.70.2.3
#dene ButtonOffsetPressedCnt(b) (((b)8)+0) Offset to the PressedCnt eld. This eld stores the press count.
4.70.2.4
#dene ButtonOffsetRelCnt(b) (((b)8)+4) Offset to the RelCnt eld. This eld stores the release count.
4.70.2.5
#dene ButtonOffsetShortRelCnt(b) (((b)8)+2) Offset to the ShortRelCnt eld. This eld stores the short release count.
4.70.2.6
#dene ButtonOffsetState(b) ((b)+32) Offset to the State eld. This eld stores the current button state.
4.71
Ui module constants
Constants that are part of the NXT rmwares Ui module. Modules CommandFlags constants
Constants for use with the CommandFlags() function.
UIState constants
Constants for use with the UIState() function.
UIButton constants
Constants for use with the UIButton() function.
BluetoothState constants
Constants for use with the BluetoothState() function.
4.72
CommandFlags constants
452
4.71.1
Detailed Description
4.72
CommandFlags constants
Constants for use with the CommandFlags() function. Denes 4.72.1 #dene UI_FLAGS_UPDATE 0x01 #dene UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER 0x02 #dene UI_FLAGS_DISABLE_EXIT 0x04 #dene UI_FLAGS_REDRAW_STATUS 0x08 #dene UI_FLAGS_RESET_SLEEP_TIMER 0x10 #dene UI_FLAGS_EXECUTE_LMS_FILE 0x20 #dene UI_FLAGS_BUSY 0x40 #dene UI_FLAGS_ENABLE_STATUS_UPDATE 0x80 Detailed Description
Constants for use with the CommandFlags() function. See also: CommandFlags() 4.72.2 4.72.2.1 Dene Documentation #dene UI_FLAGS_BUSY 0x40 R - UI busy running or datalogging (popup disabled) 4.72.2.2 #dene UI_FLAGS_DISABLE_EXIT 0x04 RW - Disable exit button 4.72.2.3 #dene UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER 0x02 RW - Disable left, right and enter button
4.73
UIState constants
453
4.72.2.4
4.72.2.5
4.72.2.6
4.72.2.7
4.72.2.8
4.73
UIState constants
Constants for use with the UIState() function. Denes #dene UI_STATE_INIT_DISPLAY 0 #dene UI_STATE_INIT_LOW_BATTERY 1 #dene UI_STATE_INIT_INTRO 2 #dene UI_STATE_INIT_WAIT 3 #dene UI_STATE_INIT_MENU 4 #dene UI_STATE_NEXT_MENU 5 #dene UI_STATE_DRAW_MENU 6 #dene UI_STATE_TEST_BUTTONS 7 #dene UI_STATE_LEFT_PRESSED 8 #dene UI_STATE_RIGHT_PRESSED 9 #dene UI_STATE_ENTER_PRESSED 10 #dene UI_STATE_EXIT_PRESSED 11 #dene UI_STATE_CONNECT_REQUEST 12 #dene UI_STATE_EXECUTE_FILE 13
4.73
UIState constants
454
Constants for use with the UIState() function. See also: UIState() 4.73.2 4.73.2.1 Dene Documentation #dene UI_STATE_BT_ERROR 16 R - BT error 4.73.2.2 #dene UI_STATE_CONNECT_REQUEST 12 RW - Request for connection accept 4.73.2.3 #dene UI_STATE_DRAW_MENU 6 RW - Execute function and draw menu icons 4.73.2.4 #dene UI_STATE_ENTER_PRESSED 10 RW - Load selected function and next menu id 4.73.2.5 #dene UI_STATE_EXECUTE_FILE 13 RW - Execute le in "LMSlename" 4.73.2.6 #dene UI_STATE_EXECUTING_FILE 14 R - Executing le in "LMSlename" 4.73.2.7 #dene UI_STATE_EXIT_PRESSED 11 RW - Load selected function and next menu id
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.73
UIState constants
455
4.73.2.8
4.73.2.9
4.73.2.10
4.73.2.11
4.73.2.12
4.73.2.13
4.73.2.14
4.73.2.15
4.73.2.16
4.73.2.17
4.74
UIButton constants
456
4.74
UIButton constants
Constants for use with the UIButton() function. Denes 4.74.1 #dene UI_BUTTON_NONE 0 #dene UI_BUTTON_LEFT 1 #dene UI_BUTTON_ENTER 2 #dene UI_BUTTON_RIGHT 3 #dene UI_BUTTON_EXIT 4 Detailed Description
Constants for use with the UIButton() function. See also: UIButton() 4.74.2 4.74.2.1 Dene Documentation #dene UI_BUTTON_ENTER 2 W - Insert enter button 4.74.2.2 #dene UI_BUTTON_EXIT 4 W - Insert exit button 4.74.2.3 #dene UI_BUTTON_LEFT 1 W - Insert left arrow button 4.74.2.4 #dene UI_BUTTON_NONE 0 R - Button inserted are executed 4.74.2.5 #dene UI_BUTTON_RIGHT 3 W - Insert right arrow button
4.75
BluetoothState constants
457
4.75
BluetoothState constants
Constants for use with the BluetoothState() function. Denes 4.75.1 #dene UI_BT_STATE_VISIBLE 0x01 #dene UI_BT_STATE_CONNECTED 0x02 #dene UI_BT_STATE_OFF 0x04 #dene UI_BT_ERROR_ATTENTION 0x08 #dene UI_BT_CONNECT_REQUEST 0x40 #dene UI_BT_PIN_REQUEST 0x80 Detailed Description
Constants for use with the BluetoothState() function. See also: BluetoothState() 4.75.2 4.75.2.1 Dene Documentation #dene UI_BT_CONNECT_REQUEST 0x40 RW - BT get connect accept in progress 4.75.2.2 #dene UI_BT_ERROR_ATTENTION 0x08 W - BT error attention 4.75.2.3 #dene UI_BT_PIN_REQUEST 0x80 RW - BT get pin code 4.75.2.4 #dene UI_BT_STATE_CONNECTED 0x02 RW - BT connected to something 4.75.2.5 #dene UI_BT_STATE_OFF 0x04 RW - BT power off
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.76
458
4.75.2.6
4.76
Constants for use with the VMRunState() function. Denes 4.76.1 #dene UI_VM_IDLE 0 #dene UI_VM_RUN_FREE 1 #dene UI_VM_RUN_SINGLE 2 #dene UI_VM_RUN_PAUSE 3 #dene UI_VM_RESET1 4 #dene UI_VM_RESET2 5 Detailed Description
Constants for use with the VMRunState() function. See also: VMRunState() 4.76.2 4.76.2.1 Dene Documentation #dene UI_VM_IDLE 0
VM_IDLE: Just sitting around. Request to run program will lead to ONE of the VM_RUN states. 4.76.2.2 #dene UI_VM_RESET1 4 VM_RESET2: Final clean up and return to IDLE 4.76.2.3 #dene UI_VM_RESET2 5
VM_RESET1: Initialize state variables and some I/O devices -- executed when programs end
4.77
459
4.76.2.4
#dene UI_VM_RUN_FREE 1
VM_RUN_FREE: Attempt to run as many instructions as possible within our timeslice 4.76.2.5 #dene UI_VM_RUN_PAUSE 3
VM_RUN_PAUSE: Program still "active", but someone has asked us to pause 4.76.2.6 #dene UI_VM_RUN_SINGLE 2 VM_RUN_SINGLE: Run exactly one instruction per timeslice
4.77
Constant offsets into the Ui module IOMAP structure. Denes 4.77.1 #dene UIOffsetPMenu 0 #dene UIOffsetBatteryVoltage 4 #dene UIOffsetLMSlename 6 #dene UIOffsetFlags 26 #dene UIOffsetState 27 #dene UIOffsetButton 28 #dene UIOffsetRunState 29 #dene UIOffsetBatteryState 30 #dene UIOffsetBluetoothState 31 #dene UIOffsetUsbState 32 #dene UIOffsetSleepTimeout 33 #dene UIOffsetSleepTimer 34 #dene UIOffsetRechargeable 35 #dene UIOffsetVolume 36 #dene UIOffsetError 37 #dene UIOffsetOBPPointer 38 #dene UIOffsetForceOff 39 #dene UIOffsetAbortFlag 40 Detailed Description
4.77
460
4.77.2 4.77.2.1
Dene Documentation #dene UIOffsetAbortFlag 40 RW - Long Abort (true == use long press to abort) (1 byte)
4.77.2.2
4.77.2.3
4.77.2.4
#dene UIOffsetBluetoothState 31
W - Bluetooth state (0=on, 1=visible, 2=conn, 3=conn.visible, 4=off, 5=dfu) (1 byte) 4.77.2.5 #dene UIOffsetButton 28 RW - Insert button (buttons enumerated above) (1 byte) 4.77.2.6 #dene UIOffsetError 37 W - Error code (1 byte) 4.77.2.7 #dene UIOffsetFlags 26 RW - Update command ags (ags enumerated above) (1 byte) 4.77.2.8 #dene UIOffsetForceOff 39 W - Force off (> 0 = off) (1 byte) 4.77.2.9 #dene UIOffsetLMSlename 6 W - LMS lename to execute (Try It) (20 bytes)
4.78
461
4.77.2.10
4.77.2.11
4.77.2.12
4.77.2.13
4.77.2.14
4.77.2.15
4.77.2.16
4.77.2.17
4.77.2.18
4.78
Input port constants are used when calling sensor control API functions.
4.79
462
Denes 4.78.1 #dene IN_1 0x00 #dene IN_2 0x01 #dene IN_3 0x02 #dene IN_4 0x03 Detailed Description
Input port constants are used when calling sensor control API functions. These constants are intended for use in NBC. See also: SetSensorType(), SetSensorMode(), S1, S2, S3, S4 4.78.2 4.78.2.1 Dene Documentation #dene IN_1 0x00 Input port 1 4.78.2.2 #dene IN_2 0x01 Input port 2 4.78.2.3 #dene IN_3 0x02 Input port 3 4.78.2.4 #dene IN_4 0x03 Input port 4
4.79
Use sensor type constants to congure an input port for a specic type of sensor.
4.79
463
Denes 4.79.1 #dene IN_TYPE_NO_SENSOR 0x00 #dene IN_TYPE_SWITCH 0x01 #dene IN_TYPE_TEMPERATURE 0x02 #dene IN_TYPE_REFLECTION 0x03 #dene IN_TYPE_ANGLE 0x04 #dene IN_TYPE_LIGHT_ACTIVE 0x05 #dene IN_TYPE_LIGHT_INACTIVE 0x06 #dene IN_TYPE_SOUND_DB 0x07 #dene IN_TYPE_SOUND_DBA 0x08 #dene IN_TYPE_CUSTOM 0x09 #dene IN_TYPE_LOWSPEED 0x0A #dene IN_TYPE_LOWSPEED_9V 0x0B #dene IN_TYPE_HISPEED 0x0C #dene IN_TYPE_COLORFULL 0x0D #dene IN_TYPE_COLORRED 0x0E #dene IN_TYPE_COLORGREEN 0x0F #dene IN_TYPE_COLORBLUE 0x10 #dene IN_TYPE_COLORNONE 0x11 #dene IN_TYPE_COLOREXIT 0x12 Detailed Description
Use sensor type constants to congure an input port for a specic type of sensor. These constants are intended for use in NBC. See also: SetSensorType() 4.79.2 4.79.2.1 Dene Documentation #dene IN_TYPE_ANGLE 0x04 RCX rotation sensor 4.79.2.2 #dene IN_TYPE_COLORBLUE 0x10 NXT 2.0 color sensor with blue light
4.79
464
4.79.2.3
4.79.2.4
#dene IN_TYPE_COLORFULL 0x0D NXT 2.0 color sensor in full color mode
4.79.2.5
#dene IN_TYPE_COLORGREEN 0x0F NXT 2.0 color sensor with green light
4.79.2.6
4.79.2.7
#dene IN_TYPE_COLORRED 0x0E NXT 2.0 color sensor with red light
4.79.2.8
4.79.2.9
4.79.2.10
4.79.2.11
4.79.2.12
4.80
465
4.79.2.13
4.79.2.14
4.79.2.15
4.79.2.16
4.79.2.17
4.79.2.18
4.79.2.19
4.80
Use sensor mode constants to congure an input port for the desired sensor mode. Denes #dene IN_MODE_RAW 0x00 #dene IN_MODE_BOOLEAN 0x20 #dene IN_MODE_TRANSITIONCNT 0x40 #dene IN_MODE_PERIODCOUNTER 0x60 #dene IN_MODE_PCTFULLSCALE 0x80
4.80
466
4.80.1
#dene IN_MODE_CELSIUS 0xA0 #dene IN_MODE_FAHRENHEIT 0xC0 #dene IN_MODE_ANGLESTEP 0xE0 #dene IN_MODE_SLOPEMASK 0x1F #dene IN_MODE_MODEMASK 0xE0 Detailed Description
Use sensor mode constants to congure an input port for the desired sensor mode. The constants are intended for use in NBC. See also: SetSensorMode() 4.80.2 4.80.2.1 Dene Documentation #dene IN_MODE_ANGLESTEP 0xE0 RCX rotation sensor (16 ticks per revolution) 4.80.2.2 #dene IN_MODE_BOOLEAN 0x20 Boolean value (0 or 1) 4.80.2.3 #dene IN_MODE_CELSIUS 0xA0 RCX temperature sensor value in degrees celcius 4.80.2.4 #dene IN_MODE_FAHRENHEIT 0xC0 RCX temperature sensor value in degrees fahrenheit 4.80.2.5 #dene IN_MODE_MODEMASK 0xE0 Mask for the mode without any slope value 4.80.2.6 #dene IN_MODE_PCTFULLSCALE 0x80 Scaled value from 0 to 100
4.81
467
4.80.2.7
4.80.2.8
4.80.2.9
4.80.2.10
4.81
Constants for use with SetInput() and GetInput(). Denes 4.81.1 #dene Type 0 #dene InputMode 1 #dene RawValue 2 #dene NormalizedValue 3 #dene ScaledValue 4 #dene InvalidData 5 Detailed Description
Constants for use with SetInput() and GetInput(). Each sensor has six elds that are used to dene its state. The eld constants are described in the table above. 4.81.2 4.81.2.1 Dene Documentation #dene InputMode 1 Input mode eld. Contains one of the sensor mode constants. Read/write.
4.82
468
4.81.2.2
#dene InvalidData 5
Invalid data eld. Contains a boolean value indicating whether the sensor data is valid or not. Read/write. 4.81.2.3 #dene NormalizedValue 3
Normalized value eld. Contains the current normalized analog sensor value. Read only. 4.81.2.4 #dene RawValue 2 Raw value eld. Contains the current raw analog sensor value. Read only. 4.81.2.5 #dene ScaledValue 4
Scaled value eld. Contains the current scaled analog sensor value. Read/write. 4.81.2.6 #dene Type 0 Type eld. Contains one of the sensor type constants. Read/write.
4.82
Constants for use with color sensor value arrays to index RGB and blank return values. Denes 4.82.1 #dene INPUT_RED 0 #dene INPUT_GREEN 1 #dene INPUT_BLUE 2 #dene INPUT_BLANK 3 #dene INPUT_NO_OF_COLORS 4 Detailed Description
Constants for use with color sensor value arrays to index RGB and blank return values. See also: ReadSensorColorEx(), ReadSensorColorRaw(), SysColorSensorRead(), ColorSensorReadType
4.83
Color values
469
4.82.2 4.82.2.1
Dene Documentation #dene INPUT_BLANK 3 Access the blank value from color sensor value arrays
4.82.2.2
#dene INPUT_BLUE 2 Access the blue value from color sensor value arrays
4.82.2.3
#dene INPUT_GREEN 1 Access the green value from color sensor value arrays
4.82.2.4
#dene INPUT_NO_OF_COLORS 4 The number of entries in the color sensor value arrays
4.82.2.5
#dene INPUT_RED 0 Access the red value from color sensor value arrays
4.83
Color values
Constants for use with the ColorValue returned by the color sensor in full color mode. Denes 4.83.1 #dene INPUT_BLACKCOLOR 1 #dene INPUT_BLUECOLOR 2 #dene INPUT_GREENCOLOR 3 #dene INPUT_YELLOWCOLOR 4 #dene INPUT_REDCOLOR 5 #dene INPUT_WHITECOLOR 6 Detailed Description
Constants for use with the ColorValue returned by the color sensor in full color mode. See also: SensorValue(), SysColorSensorRead(), ColorSensorReadType
4.84
470
4.83.2 4.83.2.1
4.83.2.2
4.83.2.3
4.83.2.4
4.83.2.5
4.83.2.6
4.84
Constants for use with the color calibration state function. Denes #dene INPUT_SENSORCAL 0x01 #dene INPUT_SENSOROFF 0x02 #dene INPUT_RUNNINGCAL 0x20 #dene INPUT_STARTCAL 0x40 #dene INPUT_RESETCAL 0x80
4.85
471
4.84.1
Detailed Description
Constants for use with the color calibration state function. See also: ColorCalibrationState() 4.84.2 4.84.2.1 Dene Documentation #dene INPUT_RESETCAL 0x80 Unused calibration state constant 4.84.2.2 #dene INPUT_RUNNINGCAL 0x20 Unused calibration state constant 4.84.2.3 #dene INPUT_SENSORCAL 0x01 The state returned while the color sensor is calibrating 4.84.2.4 #dene INPUT_SENSOROFF 0x02 The state returned once calibration has completed 4.84.2.5 #dene INPUT_STARTCAL 0x40 Unused calibration state constant
4.85
Constants for use with the color calibration functions. Denes #dene INPUT_CAL_POINT_0 0 #dene INPUT_CAL_POINT_1 1 #dene INPUT_CAL_POINT_2 2 #dene INPUT_NO_OF_POINTS 3
4.86
472
4.85.1
Detailed Description
Constants for use with the color calibration functions. See also: ColorCalibration(), ColorCalLimits() 4.85.2 4.85.2.1 Dene Documentation #dene INPUT_CAL_POINT_0 0 Calibration point 0 4.85.2.2 #dene INPUT_CAL_POINT_1 1 Calibration point 1 4.85.2.3 #dene INPUT_CAL_POINT_2 2 Calibration point 2 4.85.2.4 #dene INPUT_NO_OF_POINTS 3 The number of calibration points
4.86
Constant offsets into the Input module IOMAP structure. Denes #dene InputOffsetCustomZeroOffset(p) (((p)20)+0) #dene InputOffsetADRaw(p) (((p)20)+2) #dene InputOffsetSensorRaw(p) (((p)20)+4) #dene InputOffsetSensorValue(p) (((p)20)+6) #dene InputOffsetSensorType(p) (((p)20)+8) #dene InputOffsetSensorMode(p) (((p)20)+9) #dene InputOffsetSensorBoolean(p) (((p)20)+10) #dene InputOffsetDigiPinsDir(p) (((p)20)+11) #dene InputOffsetDigiPinsIn(p) (((p)20)+12)
4.86
473
#dene InputOffsetDigiPinsOut(p) (((p)20)+13) #dene InputOffsetCustomPctFullScale(p) (((p)20)+14) #dene InputOffsetCustomActiveStatus(p) (((p)20)+15) #dene InputOffsetInvalidData(p) (((p)20)+16) #dene InputOffsetColorCalibration(p, np, nc) (80+((p)84)+0+((np)16)+((nc)4)) #dene InputOffsetColorCalLimits(p, np) (80+((p)84)+48+((np)2)) #dene InputOffsetColorADRaw(p, nc) (80+((p)84)+52+((nc)2)) #dene InputOffsetColorSensorRaw(p, nc) (80+((p)84)+60+((nc)2)) #dene InputOffsetColorSensorValue(p, nc) (80+((p)84)+68+((nc)2)) #dene InputOffsetColorSensorBoolean(p, nc) (80+((p)84)+76+((nc)2)) #dene InputOffsetColorCalibrationState(p) (80+((p)84)+80) Detailed Description
4.86.1
Constant offsets into the Input module IOMAP structure. 4.86.2 4.86.2.1 Dene Documentation #dene InputOffsetADRaw(p) (((p)20)+2) Read the AD raw sensor value (2 bytes) uword 4.86.2.2 #dene InputOffsetColorADRaw(p, nc) (80+((p)84)+52+((nc)2)) Read AD raw color sensor values 4.86.2.3 #dene InputOffsetColorCalibration(p, np, nc) (80+((p)84)+0+((np)16)+((nc)4)) Read/write color calibration point values 4.86.2.4 #dene InputOffsetColorCalibrationState(p) (80+((p)84)+80) Read color sensor calibration state 4.86.2.5 #dene InputOffsetColorCalLimits(p, np) (80+((p)84)+48+((np)2)) Read/write color calibration limits
4.86
474
4.86.2.6
4.86.2.7
4.86.2.8
4.86.2.9
#dene InputOffsetCustomActiveStatus(p) (((p)20)+15) Read/write the active or inactive state of the custom sensor
4.86.2.10
#dene InputOffsetCustomPctFullScale(p) (((p)20)+14) Read/write the Pct full scale of the custom sensor
4.86.2.11
#dene InputOffsetCustomZeroOffset(p) (((p)20)+0) Read/write the zero offset of a custom sensor (2 bytes) uword
4.86.2.12
#dene InputOffsetDigiPinsDir(p) (((p)20)+11) Read/write the direction of the Digital pins (1 is output, 0 is input)
4.86.2.13
4.86.2.14
#dene InputOffsetDigiPinsOut(p) (((p)20)+13) Read/write the output level of the digital pins
4.86.2.15
#dene InputOffsetInvalidData(p) (((p)20)+16) Indicates whether data is invalid (1) or valid (0)
4.87
475
4.86.2.16
4.86.2.17
4.86.2.18
#dene InputOffsetSensorRaw(p) (((p)20)+4) Read the raw sensor value (2 bytes) uword
4.86.2.19
4.86.2.20
#dene InputOffsetSensorValue(p) (((p)20)+6) Read/write the scaled sensor value (2 bytes) sword
4.87
Output port constants are used when calling motor control API functions. Denes 4.87.1 #dene OUT_A 0x00 #dene OUT_B 0x01 #dene OUT_C 0x02 #dene OUT_AB 0x03 #dene OUT_AC 0x04 #dene OUT_BC 0x05 #dene OUT_ABC 0x06 Detailed Description
Output port constants are used when calling motor control API functions.
4.88
PID constants
476
4.87.2 4.87.2.1
4.87.2.2
4.87.2.3
4.87.2.4
4.87.2.5
4.87.2.6
4.87.2.7
4.88
PID constants
PID constants are for adjusting the Proportional, Integral, and Derivative motor controller parameters. Denes #dene PID_0 0 #dene PID_1 32 #dene PID_2 64
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.88
PID constants
477
4.88.1
#dene PID_3 96 #dene PID_4 128 #dene PID_5 160 #dene PID_6 192 #dene PID_7 224 Detailed Description
PID constants are for adjusting the Proportional, Integral, and Derivative motor controller parameters. See also: RotateMotorExPID(), RotateMotorPID(), OnFwdExPID(), OnRevExPID(), OnFwdRegExPID(), OnRevRegExPID(), OnFwdRegPID(), OnRevRegPID(), OnFwdSyncExPID(), OnRevSyncExPID(), OnFwdSyncPID(), OnRevSyncPID() 4.88.2 4.88.2.1 Dene Documentation #dene PID_0 0 PID zero 4.88.2.2 #dene PID_1 32 PID one 4.88.2.3 #dene PID_2 64 PID two 4.88.2.4 #dene PID_3 96 PID three 4.88.2.5 #dene PID_4 128 PID four 4.88.2.6 #dene PID_5 160 PID ve
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.89
478
4.88.2.7
4.88.2.8
4.89
Use these constants to specify which motor values need to be updated. Denes 4.89.1 #dene UF_UPDATE_MODE 0x01 #dene UF_UPDATE_SPEED 0x02 #dene UF_UPDATE_TACHO_LIMIT 0x04 #dene UF_UPDATE_RESET_COUNT 0x08 #dene UF_UPDATE_PID_VALUES 0x10 #dene UF_UPDATE_RESET_BLOCK_COUNT 0x20 #dene UF_UPDATE_RESET_ROTATION_COUNT 0x40 #dene UF_PENDING_UPDATES 0x80 Detailed Description
Use these constants to specify which motor values need to be updated. Update ag constants can be combined with bitwise OR. See also: SetOutput() 4.89.2 4.89.2.1 Dene Documentation #dene UF_PENDING_UPDATES 0x80 Are there any pending motor updates? 4.89.2.2 #dene UF_UPDATE_MODE 0x01 Commits changes to the OutputMode output property
4.90
479
4.89.2.3
#dene UF_UPDATE_PID_VALUES 0x10 Commits changes to the PID motor regulation properties
4.89.2.4
4.89.2.5
Resets all rotation counters, cancels the current goal, and resets the rotation error-correction system 4.89.2.6 #dene UF_UPDATE_RESET_ROTATION_COUNT 0x40 Resets the program-relative (user) rotation counter 4.89.2.7 #dene UF_UPDATE_SPEED 0x02 Commits changes to the Power output property 4.89.2.8 #dene UF_UPDATE_TACHO_LIMIT 0x04 Commits changes to the TachoLimit output property
4.90
Use these constants to specify which of the three tachometer counters should be reset. Denes #dene RESET_NONE 0x00 #dene RESET_COUNT 0x08 #dene RESET_BLOCK_COUNT 0x20 #dene RESET_ROTATION_COUNT 0x40 #dene RESET_BLOCKANDTACHO 0x28 #dene RESET_ALL 0x68
4.91
480
4.90.1
Detailed Description
Use these constants to specify which of the three tachometer counters should be reset. Reset constants can be combined with bitwise OR. See also: OnFwdEx(), OnRevEx(), etc... 4.90.2 4.90.2.1 Dene Documentation #dene RESET_ALL 0x68 Reset all three tachometer counters 4.90.2.2 #dene RESET_BLOCK_COUNT 0x20 Reset the NXT-G block tachometer counter 4.90.2.3 #dene RESET_BLOCKANDTACHO 0x28 Reset both the internal counter and the NXT-G block counter 4.90.2.4 #dene RESET_COUNT 0x08 Reset the internal tachometer counter 4.90.2.5 #dene RESET_NONE 0x00 No counters will be reset 4.90.2.6 #dene RESET_ROTATION_COUNT 0x40 Reset the rotation counter
4.91
Use these constants to congure the desired mode for the specied motor(s): coast, motoron, brake, or regulated.
4.91
481
Denes 4.91.1 #dene OUT_MODE_COAST 0x00 #dene OUT_MODE_MOTORON 0x01 #dene OUT_MODE_BRAKE 0x02 #dene OUT_MODE_REGULATED 0x04 #dene OUT_MODE_REGMETHOD 0xF0 Detailed Description
Use these constants to congure the desired mode for the specied motor(s): coast, motoron, brake, or regulated. Mode constants can be combined with bitwise OR. See also: SetOutput() 4.91.2 4.91.2.1 Dene Documentation #dene OUT_MODE_BRAKE 0x02 Uses electronic braking to outputs 4.91.2.2 #dene OUT_MODE_COAST 0x00 No power and no braking so motors rotate freely. 4.91.2.3 #dene OUT_MODE_MOTORON 0x01 Enables PWM power to the outputs given the Power setting 4.91.2.4 #dene OUT_MODE_REGMETHOD 0xF0 Mask for unimplemented regulation mode 4.91.2.5 #dene OUT_MODE_REGULATED 0x04 Enables active power regulation using the RegMode value
4.92
482
4.92
Use these constants to congure the desired options for the specied motor(s): hold at limit and ramp down to limit. Denes #dene OUT_OPTION_HOLDATLIMIT 0x10 #dene OUT_OPTION_RAMPDOWNTOLIMIT 0x20 4.92.1 Detailed Description
Use these constants to congure the desired options for the specied motor(s): hold at limit and ramp down to limit. Option constants can be combined with bitwise OR. See also: SetOutput() 4.92.2 4.92.2.1 Dene Documentation #dene OUT_OPTION_HOLDATLIMIT 0x10
Option to have the rmware hold the motor when it reaches the tachometer limit 4.92.2.2 #dene OUT_OPTION_RAMPDOWNTOLIMIT 0x20
Option to have the rmware rampdown the motor power as it approaches the tachometer limit (not implemented yet)
4.93
Use these constants to congure the desired run state for the specied motor(s): idle, rampup, running, rampdown, or hold. Denes #dene OUT_RUNSTATE_IDLE 0x00 #dene OUT_RUNSTATE_RAMPUP 0x10 #dene OUT_RUNSTATE_RUNNING 0x20 #dene OUT_RUNSTATE_RAMPDOWN 0x40 #dene OUT_RUNSTATE_HOLD 0x60
4.94
483
4.93.1
Detailed Description
Use these constants to congure the desired run state for the specied motor(s): idle, rampup, running, rampdown, or hold. See also: SetOutput() 4.93.2 4.93.2.1 Dene Documentation #dene OUT_RUNSTATE_HOLD 0x60 Set motor run state to hold at the current position. 4.93.2.2 #dene OUT_RUNSTATE_IDLE 0x00 Disable all power to motors. 4.93.2.3 #dene OUT_RUNSTATE_RAMPDOWN 0x40
Enable ramping down from a current Power to a new (lower) Power over a specied TachoLimit goal. 4.93.2.4 #dene OUT_RUNSTATE_RAMPUP 0x10
Enable ramping up from a current Power to a new (higher) Power over a specied TachoLimit goal. 4.93.2.5 #dene OUT_RUNSTATE_RUNNING 0x20 Enable power to motors at the specied Power level.
4.94
Use these constants to congure the desired regulation mode for the specied motor(s): none, speed regulation, or multi-motor synchronization. Denes #dene OUT_REGMODE_IDLE 0
4.95
484
Use these constants to congure the desired regulation mode for the specied motor(s): none, speed regulation, or multi-motor synchronization. See also: SetOutput() 4.94.2 4.94.2.1 Dene Documentation #dene OUT_REGMODE_IDLE 0 No motor regulation. 4.94.2.2 #dene OUT_REGMODE_SPEED 1 Regulate a motors speed (Power). 4.94.2.3 #dene OUT_REGMODE_SYNC 2 Synchronize the rotation of two motors.
4.95
Constants for use with SetOutput() and GetOutput(). Denes #dene UpdateFlags 0
Update ags eld.
#dene OutputMode 1
Mode eld.
#dene Power 2
Power eld.
4.95
485
#dene ActualSpeed 3
Actual speed eld.
#dene TachoCount 4
Internal tachometer count eld.
#dene TachoLimit 5
Tachometer limit eld.
#dene RunState 6
Run state eld.
#dene TurnRatio 7
Turn ratio eld.
#dene RegMode 8
Regulation mode eld.
#dene Overload 9
Overload eld.
#dene RegPValue 10
Proportional eld.
#dene RegIValue 11
Integral eld.
#dene RegDValue 12
Derivative eld.
#dene BlockTachoCount 13
NXT-G block tachometer count eld.
#dene RotationCount 14
Rotation counter eld.
#dene OutputOptions 15
Options eld.
4.95
486
4.95.1
Detailed Description
Constants for use with SetOutput() and GetOutput(). See also: SetOutput(), GetOutput() 4.95.2 4.95.2.1 Dene Documentation #dene ActualSpeed 3
Actual speed eld. Contains the actual power level (-100 to 100). Read only. Return the percent of full power the rmware is applying to the output. This may vary from the Power value when auto-regulation code in the rmware responds to a load on the output. 4.95.2.2 #dene BlockTachoCount 13
NXT-G block tachometer count eld. Contains the current NXT-G block tachometer count. Read only. Return the block-relative position counter value for the specied port. Refer to the UpdateFlags description for information about how to use blockrelative position counts. Set the UF_UPDATE_RESET_BLOCK_COUNT ag in UpdateFlags to request that the rmware reset the BlockTachoCount. The sign of BlockTachoCount indicates the direction of rotation. Positive values indicate forward rotation and negative values indicate reverse rotation. Forward and reverse depend on the orientation of the motor. 4.95.2.3 #dene OutputMode 1
Mode eld. Contains a combination of the output mode constants. Read/write. The OUT_MODE_MOTORON bit must be set in order for power to be applied to the motors. Add OUT_MODE_BRAKE to enable electronic braking. Braking means that the output voltage is not allowed to oat between active PWM pulses. It improves the accuracy of motor output but uses more battery power. To use motor regulation include OUT_MODE_REGULATED in the OutputMode value. Use UF_UPDATE_MODE with UpdateFlags to commit changes to this eld.
4.95
487
4.95.2.4
#dene OutputOptions 15
Options eld. Contains a combination of the output options constants. Read/write. Set options for how the output module will act when a tachometer limit is reached. Option constants can be combined with bitwise OR. Use OUT_OPTION_HOLDATLIMIT to have the output module hold the motor when it reaches the tachometer limit. Use OUT_OPTION_RAMPDOWNTOLIMIT to have the output module ramp down the motor power as it approaches the tachometer limit (not yet implemented). 4.95.2.5 #dene Overload 9
Overload eld. Contains a boolean value which is TRUE if the motor is overloaded. Read only. This eld will have a value of 1 (true) if the rmware speed regulation cannot overcome a physical load on the motor. In other words, the motor is turning more slowly than expected. If the motor speed can be maintained in spite of loading then this eld value is zero (false). In order to use this eld the motor must have a nonidle RunState, an OutputMode which includes OUT_MODE_MOTORON and OUT_MODE_REGULATED, and its RegMode must be set to OUT_REGMODE_SPEED.
4.95.2.6
#dene Power 2
Power eld. Contains the desired power level (-100 to 100). Read/write. Specify the power level of the output. The absolute value of Power is a percentage of the full power of the motor. The sign of Power controls the rotation direction. Positive values tell the rmware to turn the motor forward, while negative values turn the motor backward. Use UF_UPDATE_SPEED with UpdateFlags to commit changes to this eld. 4.95.2.7 #dene RegDValue 12
Derivative eld. Contains the derivative constant for the PID motor controller. Read/write. This eld species the derivative term used in the internal proportionalintegral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously.
4.95
488
4.95.2.8
#dene RegIValue 11
Integral eld. Contains the integral constant for the PID motor controller. Read/write. This eld species the integral term used in the internal proportional-integral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously. 4.95.2.9 #dene RegMode 8
Regulation mode eld. Contains one of the regulation mode constants. Read/write. This eld species the regulation mode to use with the specied port(s). It is ignored if the OUT_MODE_REGULATED bit is not set in the OutputMode eld. Unlike the OutputMode eld, RegMode is not a biteld. Only one RegMode value can be set at a time. Speed regulation means that the rmware tries to maintain a certain speed based on the Power setting. The rmware adjusts the PWM duty cycle if the motor is affected by a physical load. This adjustment is reected by the value of the ActualSpeed property. When using speed regulation, do not set Power to its maximum value since the rmware cannot adjust to higher power levels in that situation. Synchronization means the rmware tries to keep two motors in sync regardless of physical loads. Use this mode to maintain a straight path for a mobile robot automatically. Also use this mode with the TurnRatio property to provide proportional turning. Set OUT_REGMODE_SYNC on at least two motor ports in order for synchronization to function. Setting OUT_REGMODE_SYNC on all three motor ports will result in only the rst two (OUT_A and OUT_B) being synchronized. 4.95.2.10 #dene RegPValue 10
Proportional eld. Contains the proportional constant for the PID motor controller. Read/write. This eld species the proportional term used in the internal proportionalintegral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously. 4.95.2.11 #dene RotationCount 14
Rotation counter eld. Contains the current rotation count. Read only. Return the program-relative position counter value for the specied port. Refer to the UpdateFlags description for information about how to use program-relative position counts. Set the UF_UPDATE_RESET_ROTATION_COUNT ag in UpdateFlags to request that the
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.95
489
rmware reset the RotationCount. The sign of RotationCount indicates the direction of rotation. Positive values indicate forward rotation and negative values indicate reverse rotation. Forward and reverse depend on the orientation of the motor. 4.95.2.12 #dene RunState 6
Run state eld. Contains one of the run state constants. Read/write. Use this eld to specify the running state of an output. Set the RunState to OUT_RUNSTATE_RUNNING to enable power to any output. Use OUT_RUNSTATE_RAMPUP to enable automatic ramping to a new Power level greater than the current Power level. Use OUT_RUNSTATE_RAMPDOWN to enable automatic ramping to a new Power level less than the current Power level. Both the rampup and rampdown bits must be used in conjunction with appropriate TachoLimit and Power values. In this case the rmware smoothly increases or decreases the actual power to the new Power level over the total number of degrees of rotation specied in TachoLimit. 4.95.2.13 #dene TachoCount 4
Internal tachometer count eld. Contains the current internal tachometer count. Read only. Return the internal position counter value for the specied output. The internal count is reset automatically when a new goal is set using the TachoLimit and the UF_UPDATE_TACHO_LIMIT ag. Set the UF_UPDATE_RESET_COUNT ag in UpdateFlags to reset TachoCount and cancel any TachoLimit. The sign of TachoCount indicates the motor rotation direction. 4.95.2.14 #dene TachoLimit 5
Tachometer limit eld. Contains the current tachometer limit. Read/write. Specify the number of degrees the motor should rotate. Use UF_UPDATE_TACHO_LIMIT with the UpdateFlags eld to commit changes to the TachoLimit. The value of this eld is a relative distance from the current motor position at the moment when the UF_UPDATE_TACHO_LIMIT ag is processed. 4.95.2.15 #dene TurnRatio 7
Turn ratio eld. Contains the current turn ratio. Only applicable when synchronizing multiple motors. Read/write. Use this eld to specify a proportional turning ratio.
4.96
490
This eld must be used in conjunction with other eld values: OutputMode must include OUT_MODE_MOTORON and OUT_MODE_REGULATED, RegMode must be set to OUT_REGMODE_SYNC, RunState must not be OUT_RUNSTATE_IDLE, and Power must be non-zero. There are only three valid combinations of left and right motors for use with TurnRatio: OUT_AB, OUT_BC, and OUT_AC. In each of these three options the rst motor listed is considered to be the left motor and the second motor is the right motor, regardless of the physical conguration of the robot. Negative TurnRatio values shift power toward the left motor while positive values shift power toward the right motor. An absolute value of 50 usually results in one motor stopping. An absolute value of 100 usually results in two motors turning in opposite directions at equal power. 4.95.2.16 #dene UpdateFlags 0
Update ags eld. Contains a combination of the update ag constants. Read/write. Use UF_UPDATE_MODE, UF_UPDATE_SPEED, UF_UPDATE_TACHO_LIMIT, and UF_UPDATE_PID_VALUES along with other elds to commit changes to the state of outputs. Set the appropriate ags after setting one or more of the output elds in order for the changes to actually go into affect.
4.96
Constant offsets into the Output module IOMAP structure. Denes #dene OutputOffsetTachoCount(p) (((p)32)+0) #dene OutputOffsetBlockTachoCount(p) (((p)32)+4) #dene OutputOffsetRotationCount(p) (((p)32)+8) #dene OutputOffsetTachoLimit(p) (((p)32)+12) #dene OutputOffsetMotorRPM(p) (((p)32)+16) #dene OutputOffsetFlags(p) (((p)32)+18) #dene OutputOffsetMode(p) (((p)32)+19) #dene OutputOffsetSpeed(p) (((p)32)+20) #dene OutputOffsetActualSpeed(p) (((p)32)+21) #dene OutputOffsetRegPParameter(p) (((p)32)+22) #dene OutputOffsetRegIParameter(p) (((p)32)+23) #dene OutputOffsetRegDParameter(p) (((p)32)+24) #dene OutputOffsetRunState(p) (((p)32)+25) #dene OutputOffsetRegMode(p) (((p)32)+26) #dene OutputOffsetOverloaded(p) (((p)32)+27)
4.96
491
#dene OutputOffsetSyncTurnParameter(p) (((p)32)+28) #dene OutputOffsetOptions(p) (((p)32)+29) #dene OutputOffsetPwnFreq 96 4.96.1 Detailed Description
Constant offsets into the Output module IOMAP structure. 4.96.2 4.96.2.1 Dene Documentation #dene OutputOffsetActualSpeed(p) (((p)32)+21) R - Holds the current motor speed (1 byte) sbyte 4.96.2.2 #dene OutputOffsetBlockTachoCount(p) (((p)32)+4)
R - Holds current number of counts for the current output block (4 bytes) slong 4.96.2.3 #dene OutputOffsetFlags(p) (((p)32)+18) RW - Holds ags for which data should be updated (1 byte) ubyte 4.96.2.4 #dene OutputOffsetMode(p) (((p)32)+19) RW - Holds motor mode: Run, Break, regulated, ... (1 byte) ubyte 4.96.2.5 #dene OutputOffsetMotorRPM(p) (((p)32)+16) Not updated, will be removed later !! (2 bytes) sword 4.96.2.6 #dene OutputOffsetOptions(p) (((p)32)+29)
RW - holds extra motor options related to the tachometer limit (1 byte) ubyte (NBC/NXC) 4.96.2.7 #dene OutputOffsetOverloaded(p) (((p)32)+27)
R - True if the motor has been overloaded within speed control regulation (1 byte) ubyte
4.96
492
4.96.2.8
#dene OutputOffsetPwnFreq 96 use for frequency of checking regulation mode (1 byte) ubyte (NBC/NXC)
4.96.2.9
#dene OutputOffsetRegDParameter(p) (((p)32)+24) RW - Holds the D-constant used in the regulation (1 byte) ubyte
4.96.2.10
#dene OutputOffsetRegIParameter(p) (((p)32)+23) RW - Holds the I-constant used in the regulation (1 byte) ubyte
4.96.2.11
#dene OutputOffsetRegMode(p) (((p)32)+26) RW - Tells which regulation mode should be used (1 byte) ubyte
4.96.2.12
#dene OutputOffsetRegPParameter(p) (((p)32)+22) RW - Holds the P-constant used in the regulation (1 byte) ubyte
4.96.2.13
R - Holds current number of counts for the rotation counter to the output (4 bytes) slong 4.96.2.14 #dene OutputOffsetRunState(p) (((p)32)+25) RW - Holds the current RunState in the output module (1 byte) ubyte 4.96.2.15 #dene OutputOffsetSpeed(p) (((p)32)+20) RW - Holds the wanted speed (1 byte) sbyte 4.96.2.16 #dene OutputOffsetSyncTurnParameter(p) (((p)32)+28) RW - Holds the turning parameter need within MoveBlock (1 byte) sbyte
4.97
493
4.96.2.17
R - Holds current number of counts, since last reset, updated every 1 mS (4 bytes) slong 4.96.2.18 #dene OutputOffsetTachoLimit(p) (((p)32)+12) RW - Holds number of counts to travel, 0 => Run forever (4 bytes) ulong
4.97
Constants that are part of the NXT rmwares LowSpeed module. Modules LSState constants
Constants for the low speed module LSState function.
LSChannelState constants
Constants for the low speed module LSChannelState function.
LSMode constants
Constants for the low speed module LSMode function.
LSErrorType constants
Constants for the low speed module LSErrorType function.
LSNoRestartOnRead constants
Constants for the low speed module LSNoRestartOnRead and SetLSNoRestartOnRead functions.
4.98
LSState constants
494
4.97.1
Detailed Description
4.98
LSState constants
Constants for the low speed module LSState function. Denes 4.98.1 #dene COM_CHANNEL_NONE_ACTIVE 0x00 #dene COM_CHANNEL_ONE_ACTIVE 0x01 #dene COM_CHANNEL_TWO_ACTIVE 0x02 #dene COM_CHANNEL_THREE_ACTIVE 0x04 #dene COM_CHANNEL_FOUR_ACTIVE 0x08 Detailed Description
Constants for the low speed module LSState function. These values are combined together using a bitwise OR operation. See also: LSState() 4.98.2 4.98.2.1 Dene Documentation #dene COM_CHANNEL_FOUR_ACTIVE 0x08 Low speed channel 4 is active 4.98.2.2 #dene COM_CHANNEL_NONE_ACTIVE 0x00 None of the low speed channels are active 4.98.2.3 #dene COM_CHANNEL_ONE_ACTIVE 0x01 Low speed channel 1 is active 4.98.2.4 #dene COM_CHANNEL_THREE_ACTIVE 0x04 Low speed channel 3 is active
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.99
LSChannelState constants
495
4.98.2.5
4.99
LSChannelState constants
Constants for the low speed module LSChannelState function. Denes 4.99.1 #dene LOWSPEED_IDLE 0 #dene LOWSPEED_INIT 1 #dene LOWSPEED_LOAD_BUFFER 2 #dene LOWSPEED_COMMUNICATING 3 #dene LOWSPEED_ERROR 4 #dene LOWSPEED_DONE 5 Detailed Description
Constants for the low speed module LSChannelState function. See also: LSChannelState() 4.99.2 4.99.2.1 Dene Documentation #dene LOWSPEED_COMMUNICATING 3 Channel is actively communicating 4.99.2.2 #dene LOWSPEED_DONE 5 Channel is done communicating 4.99.2.3 #dene LOWSPEED_ERROR 4 Channel is in an error state 4.99.2.4 #dene LOWSPEED_IDLE 0 Channel is idle
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.100
LSMode constants
496
4.99.2.5
4.99.2.6
4.100
LSMode constants
Constants for the low speed module LSMode function. Denes #dene LOWSPEED_TRANSMITTING 1 #dene LOWSPEED_RECEIVING 2 #dene LOWSPEED_DATA_RECEIVED 3 4.100.1 Detailed Description
Constants for the low speed module LSMode function. See also: LSMode() 4.100.2 4.100.2.1 Dene Documentation #dene LOWSPEED_DATA_RECEIVED 3 Lowspeed port is in data received mode 4.100.2.2 #dene LOWSPEED_RECEIVING 2 Lowspeed port is in receiving mode 4.100.2.3 #dene LOWSPEED_TRANSMITTING 1 Lowspeed port is in transmitting mode
4.101
LSErrorType constants
497
4.101
LSErrorType constants
Constants for the low speed module LSErrorType function. Denes #dene LOWSPEED_NO_ERROR 0 #dene LOWSPEED_CH_NOT_READY 1 #dene LOWSPEED_TX_ERROR 2 #dene LOWSPEED_RX_ERROR 3 Detailed Description
4.101.1
Constants for the low speed module LSErrorType function. See also: LSErrorType() 4.101.2 4.101.2.1 Dene Documentation #dene LOWSPEED_CH_NOT_READY 1 Lowspeed port is not ready 4.101.2.2 #dene LOWSPEED_NO_ERROR 0 Lowspeed port has no error 4.101.2.3 #dene LOWSPEED_RX_ERROR 3 Lowspeed port encountered an error while receiving data 4.101.2.4 #dene LOWSPEED_TX_ERROR 2 Lowspeed port encountered an error while transmitting data
4.102
4.102
498
Denes #dene LowSpeedOffsetInBufBuf(p) (((p)19)+0) #dene LowSpeedOffsetInBufInPtr(p) (((p)19)+16) #dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) #dene LowSpeedOffsetInBufBytesToRx(p) (((p)19)+18) #dene LowSpeedOffsetOutBufBuf(p) (((p)19)+76) #dene LowSpeedOffsetOutBufInPtr(p) (((p)19)+92) #dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) #dene LowSpeedOffsetOutBufBytesToRx(p) (((p)19)+94) #dene LowSpeedOffsetMode(p) ((p)+152) #dene LowSpeedOffsetChannelState(p) ((p)+156) #dene LowSpeedOffsetErrorType(p) ((p)+160) #dene LowSpeedOffsetState 164 #dene LowSpeedOffsetSpeed 165 #dene LowSpeedOffsetNoRestartOnRead 166 Detailed Description
4.102.1
Constant offsets into the low speed module IOMAP structure. 4.102.2 4.102.2.1 Dene Documentation #dene LowSpeedOffsetChannelState(p) ((p)+156) R - Lowspeed channgel state (1 byte) 4.102.2.2 #dene LowSpeedOffsetErrorType(p) ((p)+160) R - Lowspeed port error type (1 byte) 4.102.2.3 #dene LowSpeedOffsetInBufBuf(p) (((p)19)+0) RW - Input buffer data buffer eld offset (16 bytes) 4.102.2.4 #dene LowSpeedOffsetInBufBytesToRx(p) (((p)19)+18) RW - Input buffer bytes to receive eld offset (1 byte)
4.102
499
4.102.2.5
4.102.2.6
#dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) RW - Input buffer out pointer eld offset (1 byte)
4.102.2.7
4.102.2.8
#dene LowSpeedOffsetNoRestartOnRead 166 RW - Lowspeed option for no restart on read (all channels) (NBC/NXC)
4.102.2.9
#dene LowSpeedOffsetOutBufBuf(p) (((p)19)+76) RW - Output buffer data buffer eld offset (16 bytes)
4.102.2.10
#dene LowSpeedOffsetOutBufBytesToRx(p) (((p)19)+94) RW - Output buffer bytes to receive eld offset (1 byte)
4.102.2.11
4.102.2.12
#dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) RW - Output buffer out pointer eld offset (1 byte)
4.102.2.13
4.102.2.14
4.103
LSNoRestartOnRead constants
500
4.103
LSNoRestartOnRead constants
Constants for the low speed module LSNoRestartOnRead and SetLSNoRestartOnRead functions. Denes #dene LSREAD_RESTART_ALL 0x00 #dene LSREAD_NO_RESTART_1 0x01 #dene LSREAD_NO_RESTART_2 0x02 #dene LSREAD_NO_RESTART_3 0x04 #dene LSREAD_NO_RESTART_4 0x08 #dene LSREAD_RESTART_NONE 0x0F #dene LSREAD_NO_RESTART_MASK 0x10 Detailed Description
4.103.1
Constants for the low speed module LSNoRestartOnRead and SetLSNoRestartOnRead functions. These values are combined with a bitwise OR operation. See also: LSNoRestartOnRead(), SetLSNoRestartOnRead() 4.103.2 4.103.2.1 Dene Documentation #dene LSREAD_NO_RESTART_1 0x01 No restart on read for channel 1 4.103.2.2 #dene LSREAD_NO_RESTART_2 0x02 No restart on read for channel 2 4.103.2.3 #dene LSREAD_NO_RESTART_3 0x04 No restart on read for channel 3 4.103.2.4 #dene LSREAD_NO_RESTART_4 0x08 No restart on read for channel 4
4.104
501
4.103.2.5
4.103.2.6
4.103.2.7
4.104
Constants for use with standard I2C devices. Denes #dene I2C_REG_VERSION 0x00 #dene I2C_REG_VENDOR_ID 0x08 #dene I2C_REG_DEVICE_ID 0x10 #dene I2C_REG_CMD 0x41 Detailed Description
4.104.1
Constants for use with standard I2C devices. 4.104.2 4.104.2.1 Dene Documentation #dene I2C_REG_CMD 0x41 Standard NXT I2C device command register 4.104.2.2 #dene I2C_REG_DEVICE_ID 0x10 Standard NXT I2C device ID register 4.104.2.3 #dene I2C_REG_VENDOR_ID 0x08 Standard NXT I2C vendor ID register
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.105
502
4.104.2.4
4.105
Constants for use with the ultrasonic sensor. Denes #dene US_CMD_OFF 0x00 #dene US_CMD_SINGLESHOT 0x01 #dene US_CMD_CONTINUOUS 0x02 #dene US_CMD_EVENTCAPTURE 0x03 #dene US_CMD_WARMRESET 0x04 #dene US_REG_CM_INTERVAL 0x40 #dene US_REG_ACTUAL_ZERO 0x50 #dene US_REG_SCALE_FACTOR 0x51 #dene US_REG_SCALE_DIVISOR 0x52 #dene US_REG_FACTORY_ACTUAL_ZERO 0x11 #dene US_REG_FACTORY_SCALE_FACTOR 0x12 #dene US_REG_FACTORY_SCALE_DIVISOR 0x13 #dene US_REG_MEASUREMENT_UNITS 0x14 Detailed Description
4.105.1
Constants for use with the ultrasonic sensor. 4.105.2 4.105.2.1 Dene Documentation #dene US_CMD_CONTINUOUS 0x02
Command to put the ultrasonic sensor into continuous polling mode (default) 4.105.2.2 #dene US_CMD_EVENTCAPTURE 0x03 Command to put the ultrasonic sensor into event capture mode 4.105.2.3 #dene US_CMD_OFF 0x00 Command to turn off the ultrasonic sensor
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.105
503
4.105.2.4
#dene US_CMD_SINGLESHOT 0x01 Command to put the ultrasonic sensor into single shot mode
4.105.2.5
4.105.2.6
#dene US_REG_ACTUAL_ZERO 0x50 The register address used to store the actual zero value
4.105.2.7
#dene US_REG_CM_INTERVAL 0x40 The register address used to store the CM interval
4.105.2.8
#dene US_REG_FACTORY_ACTUAL_ZERO 0x11 The register address containing the factory setting for the actual zero value
4.105.2.9
The register address containing the factory setting for the scale divisor value 4.105.2.10 #dene US_REG_FACTORY_SCALE_FACTOR 0x12
The register address containing the factory setting for the scale factor value 4.105.2.11 #dene US_REG_MEASUREMENT_UNITS 0x14 The register address containing the measurement units (degrees C or F) 4.105.2.12 #dene US_REG_SCALE_DIVISOR 0x52 The register address used to store the scale divisor value 4.105.2.13 #dene US_REG_SCALE_FACTOR 0x51 The register address used to store the scale factor value
4.106
504
4.106
Constants for use with the temperature sensor. Denes #dene TEMP_RES_12BIT 0x60 #dene TEMP_RES_11BIT 0x40 #dene TEMP_RES_10BIT 0x20 #dene TEMP_RES_9BIT 0x00 #dene TEMP_SD_CONTINUOUS 0x00 #dene TEMP_SD_SHUTDOWN 0x01 #dene TEMP_TM_COMPARATOR 0x00 #dene TEMP_TM_INTERRUPT 0x02 #dene TEMP_OS_ONESHOT 0x80 #dene TEMP_FQ_1 0x00 #dene TEMP_FQ_2 0x08 #dene TEMP_FQ_4 0x10 #dene TEMP_FQ_6 0x18 #dene TEMP_POL_LOW 0x00 #dene TEMP_POL_HIGH 0x04 #dene TEMP_I2C_ADDRESS 0x98 #dene TEMP_REG_TEMP 0x00 #dene TEMP_REG_CONFIG 0x01 #dene TEMP_REG_TLOW 0x02 #dene TEMP_REG_THIGH 0x03 Detailed Description
4.106.1
Constants for use with the temperature sensor. 4.106.2 4.106.2.1 Dene Documentation #dene TEMP_FQ_1 0x00 Set fault queue 1 4.106.2.2 #dene TEMP_FQ_2 0x08 Set fault queue 2
4.106
505
4.106.2.3
4.106.2.4
4.106.2.5
4.106.2.6
4.106.2.7
4.106.2.8
4.106.2.9
#dene TEMP_REG_CONFIG 0x01 The register for reading/writing sensor conguration values
4.106.2.10
#dene TEMP_REG_TEMP 0x00 The register where temperature values can be read
4.106.2.11
#dene TEMP_REG_THIGH 0x03 The register where temperature high values can be read
4.106.2.12
#dene TEMP_REG_TLOW 0x02 The register where temperature low values can be read
4.107
506
4.106.2.13
4.106.2.14
4.106.2.15
4.106.2.16
4.106.2.17
4.106.2.18
4.106.2.19
4.106.2.20
4.107
4.107
507
DisplayExecuteFunction constants
Constants that are for use with the DisplayExecuteFunction system call.
Display ags
Constants that are for use with the display ags functions.
Denes #dene SCREEN_MODE_RESTORE 0x00 #dene SCREEN_MODE_CLEAR 0x01 #dene DISPLAY_HEIGHT 64 #dene DISPLAY_WIDTH 100 #dene DISPLAY_MENUICONS_Y 40 #dene DISPLAY_MENUICONS_X_OFFS 7 #dene DISPLAY_MENUICONS_X_DIFF 31 #dene MENUICON_LEFT 0 #dene MENUICON_CENTER 1 #dene MENUICON_RIGHT 2 #dene MENUICONS 3 #dene FRAME_SELECT 0 #dene STATUSTEXT 1 #dene MENUTEXT 2 #dene STEPLINE 3 #dene TOPLINE 4
4.107
508
#dene SPECIALS 5 #dene STATUSICON_BLUETOOTH 0 #dene STATUSICON_USB 1 #dene STATUSICON_VM 2 #dene STATUSICON_BATTERY 3 #dene STATUSICONS 4 #dene SCREEN_BACKGROUND 0 #dene SCREEN_LARGE 1 #dene SCREEN_SMALL 2 #dene SCREENS 3 #dene BITMAP_1 0 #dene BITMAP_2 1 #dene BITMAP_3 2 #dene BITMAP_4 3 #dene BITMAPS 4 #dene STEPICON_1 0 #dene STEPICON_2 1 #dene STEPICON_3 2 #dene STEPICON_4 3 #dene STEPICON_5 4 #dene STEPICONS 5 Detailed Description
4.107.1
Constants that are part of the NXT rmwares Display module. 4.107.2 4.107.2.1 Dene Documentation #dene BITMAP_1 0 Bitmap 1 4.107.2.2 #dene BITMAP_2 1 Bitmap 2 4.107.2.3 #dene BITMAP_3 2 Bitmap 3
4.107
509
4.107.2.4
4.107.2.5
4.107.2.6
4.107.2.7
#dene DISPLAY_MENUICONS_X_DIFF 31
4.107.2.8
#dene DISPLAY_MENUICONS_X_OFFS 7
4.107.2.9
#dene DISPLAY_MENUICONS_Y 40
4.107.2.10
4.107.2.11
4.107.2.12
4.107.2.13
4.107
510
4.107.2.14
4.107.2.15
4.107.2.16
4.107.2.17
4.107.2.18
4.107.2.19
4.107.2.20
4.107.2.21
4.107
511
4.107.2.22
4.107.2.23
4.107.2.24
4.107.2.25
4.107.2.26
4.107.2.27
4.107.2.28
4.107.2.29
4.107.2.30
4.107.2.31
#dene STEPICON_2 1
4.108
DisplayExecuteFunction constants
512
4.107.2.32
#dene STEPICON_3 2
4.107.2.33
#dene STEPICON_4 3
4.107.2.34
4.107.2.35
#dene STEPICONS 5
4.107.2.36
4.107.2.37
4.108
DisplayExecuteFunction constants
Constants that are for use with the DisplayExecuteFunction system call. Denes #dene DISPLAY_ERASE_ALL 0x00 #dene DISPLAY_PIXEL 0x01 #dene DISPLAY_HORIZONTAL_LINE 0x02 #dene DISPLAY_VERTICAL_LINE 0x03 #dene DISPLAY_CHAR 0x04 #dene DISPLAY_ERASE_LINE 0x05 #dene DISPLAY_FILL_REGION 0x06 #dene DISPLAY_FRAME 0x07
4.108
DisplayExecuteFunction constants
513
4.108.1
Detailed Description
Constants that are for use with the DisplayExecuteFunction system call. 4.108.2 4.108.2.1 Dene Documentation #dene DISPLAY_CHAR 0x04 W - draw char (actual font) (CMD,TRUE,X1,Y1,Char,x) 4.108.2.2 #dene DISPLAY_ERASE_ALL 0x00 W - erase entire screen (CMD,x,x,x,x,x) 4.108.2.3 #dene DISPLAY_ERASE_LINE 0x05 W - erase a single line (CMD,x,LINE,x,x,x) 4.108.2.4 #dene DISPLAY_FILL_REGION 0x06 W - ll screen region (CMD,TRUE/FALSE,X1,Y1,X2,Y2) 4.108.2.5 #dene DISPLAY_FRAME 0x07 W - draw a frame (on/off) (CMD,TRUE/FALSE,X1,Y1,X2,Y2) 4.108.2.6 #dene DISPLAY_HORIZONTAL_LINE 0x02 W - draw horizontal line (CMD,TRUE/FALSE,X1,Y1,X2,x) 4.108.2.7 #dene DISPLAY_PIXEL 0x01 W - set pixel (on/off) (CMD,TRUE/FALSE,X,Y,x,x) 4.108.2.8 #dene DISPLAY_VERTICAL_LINE 0x03 W - draw vertical line (CMD,TRUE/FALSE,X1,Y1,x,Y2)
4.109
514
4.109
Constants that are for specifying drawing options in several display module API functions. Modules Font drawing option constants
These addition drawing option constants are only for use when drawing text and numbers on the LCD using an RIC-based font.
Denes #dene DRAW_OPT_NORMAL (0x0000) #dene DRAW_OPT_CLEAR_WHOLE_SCREEN (0x0001) #dene DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN (0x0002) #dene DRAW_OPT_CLEAR_PIXELS (0x0004) #dene DRAW_OPT_CLEAR (0x0004) #dene DRAW_OPT_INVERT (0x0004) #dene DRAW_OPT_LOGICAL_COPY (0x0000) #dene DRAW_OPT_LOGICAL_AND (0x0008) #dene DRAW_OPT_LOGICAL_OR (0x0010) #dene DRAW_OPT_LOGICAL_XOR (0x0018) #dene DRAW_OPT_FILL_SHAPE (0x0020) #dene DRAW_OPT_CLEAR_SCREEN_MODES (0x0003) #dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) #dene DRAW_OPT_POLYGON_POLYLINE (0x0400) Detailed Description
4.109.1
Constants that are for specifying drawing options in several display module API functions. Bits 0 & 1 (values 0,1,2,3) control screen clearing behaviour (Not within RIC les). Bit 2 (value 4) controls the NOT operation, i.e. draw in white or invert text/graphics. Bits 3 & 4 (values 0,8,16,24) control pixel logical combinations (COPY/AND/OR/XOR). Bit 5 (value 32) controls shape lling, or overrides text/graphic bitmaps with set pixels. These may be ORed together for the full instruction (e.g., DRAW_OPT_NORMAL|DRAW_OPT_LOGICAL_XOR) These operations are resolved into the separate, common parameters dened in c_display.iom before any drawing function is called. Note that when drawing a RIC le, the initial DrawingOptions parameter supplied in the drawing instruction controls screen clearing, but nothing else. The CopyOptions parameter from each instruction in the RIC le then controls graphic operations, but the screen-clearing bits are ignored.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.109
515
See also: TextOut(), NumOut(), PointOut(), LineOut(), CircleOut(), RectOut(), PolyOut(), EllipseOut(), FontTextOut(), FontNumOut(), GraphicOut(), GraphicArrayOut() 4.109.2 4.109.2.1 Dene Documentation #dene DRAW_OPT_CLEAR (0x0004) Clear pixels while drawing (aka draw in white) 4.109.2.2 #dene DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN (0x0002) Clear the screen except for the status line before drawing 4.109.2.3 #dene DRAW_OPT_CLEAR_PIXELS (0x0004) Clear pixels while drawing (aka draw in white) 4.109.2.4 #dene DRAW_OPT_CLEAR_SCREEN_MODES (0x0003) Bit mask for the clear screen modes 4.109.2.5 #dene DRAW_OPT_CLEAR_WHOLE_SCREEN (0x0001) Clear the entire screen before drawing 4.109.2.6 #dene DRAW_OPT_FILL_SHAPE (0x0020) Fill the shape while drawing (rectangle, circle, ellipses, and polygon) 4.109.2.7 #dene DRAW_OPT_INVERT (0x0004) Invert text or graphics 4.109.2.8 #dene DRAW_OPT_LOGICAL_AND (0x0008) Draw pixels using a logical AND operation
4.110
516
4.109.2.9
4.109.2.10
#dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) Bit mask for the logical drawing operations
4.109.2.11
4.109.2.12
4.109.2.13
4.109.2.14
#dene DRAW_OPT_POLYGON_POLYLINE (0x0400) When drawing polygons, do not close (i.e., draw a polyline instead)
4.110
These addition drawing option constants are only for use when drawing text and numbers on the LCD using an RIC-based font. Denes #dene DRAW_OPT_FONT_DIRECTIONS (0x01C0) #dene DRAW_OPT_FONT_WRAP (0x0200) #dene DRAW_OPT_FONT_DIR_L2RB (0x0000) #dene DRAW_OPT_FONT_DIR_L2RT (0x0040) #dene DRAW_OPT_FONT_DIR_R2LB (0x0080) #dene DRAW_OPT_FONT_DIR_R2LT (0x00C0) #dene DRAW_OPT_FONT_DIR_B2TL (0x0100) #dene DRAW_OPT_FONT_DIR_B2TR (0x0140) #dene DRAW_OPT_FONT_DIR_T2BL (0x0180) #dene DRAW_OPT_FONT_DIR_T2BR (0x01C0)
4.110
517
4.110.1
Detailed Description
These addition drawing option constants are only for use when drawing text and numbers on the LCD using an RIC-based font. See also: FontTextOut(), FontNumOut() 4.110.2 4.110.2.1 Dene Documentation #dene DRAW_OPT_FONT_DIR_B2TL (0x0100) Font bottom to top left align 4.110.2.2 #dene DRAW_OPT_FONT_DIR_B2TR (0x0140) Font bottom to top right align 4.110.2.3 #dene DRAW_OPT_FONT_DIR_L2RB (0x0000) Font left to right bottom align 4.110.2.4 #dene DRAW_OPT_FONT_DIR_L2RT (0x0040) Font left to right top align 4.110.2.5 #dene DRAW_OPT_FONT_DIR_R2LB (0x0080) Font right to left bottom align 4.110.2.6 #dene DRAW_OPT_FONT_DIR_R2LT (0x00C0) Font right to left top align 4.110.2.7 #dene DRAW_OPT_FONT_DIR_T2BL (0x0180) Font top to bottom left align
4.111
Display ags
518
4.110.2.8
4.110.2.9
#dene DRAW_OPT_FONT_DIRECTIONS (0x01C0) Bit mask for the font direction bits
4.110.2.10
#dene DRAW_OPT_FONT_WRAP (0x0200) Option to have text wrap in FontNumOut and FontTextOut calls
4.111
Display ags
Constants that are for use with the display ags functions. Denes #dene DISPLAY_ON 0x01 #dene DISPLAY_REFRESH 0x02 #dene DISPLAY_POPUP 0x08 #dene DISPLAY_REFRESH_DISABLED 0x40 #dene DISPLAY_BUSY 0x80 Detailed Description
4.111.1
Constants that are for use with the display ags functions. See also: SetDisplayFlags(), DisplayFlags() 4.111.2 4.111.2.1 Dene Documentation #dene DISPLAY_BUSY 0x80 R - Refresh in progress 4.111.2.2 #dene DISPLAY_ON 0x01 W - Display on
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.112
519
4.111.2.3
4.111.2.4
4.111.2.5
4.112
Constants that are for use with the display contrast API functions. Denes #dene DISPLAY_CONTRAST_DEFAULT 0x5A #dene DISPLAY_CONTRAST_MAX 0x7F 4.112.1 Detailed Description
Constants that are for use with the display contrast API functions. See also: SetDisplayContrast(), DisplayContrast() 4.112.2 4.112.2.1 Dene Documentation #dene DISPLAY_CONTRAST_DEFAULT 0x5A Default display contrast value 4.112.2.2 #dene DISPLAY_CONTRAST_MAX 0x7F Maximum display contrast value
4.113
520
4.113
Constants that are for use with getting/setting display data. Denes #dene TEXTLINE_1 0 #dene TEXTLINE_2 1 #dene TEXTLINE_3 2 #dene TEXTLINE_4 3 #dene TEXTLINE_5 4 #dene TEXTLINE_6 5 #dene TEXTLINE_7 6 #dene TEXTLINE_8 7 #dene TEXTLINES 8 Detailed Description
4.113.1
Constants that are for use with getting/setting display data. See also: SetDisplayNormal(), Popup() 4.113.2 4.113.2.1 GetDisplayNormal(), SetDisplayPopup(), GetDisplay-
4.113.2.2
4.113.2.3
4.113.2.4
4.114
521
4.113.2.5
4.113.2.6
4.113.2.7
4.113.2.8
4.113.2.9
4.114
Constant offsets into the display module IOMAP structure. Denes #dene DisplayOffsetPFunc 0 #dene DisplayOffsetEraseMask 4 #dene DisplayOffsetUpdateMask 8 #dene DisplayOffsetPFont 12 #dene DisplayOffsetPTextLines(p) (((p)4)+16) #dene DisplayOffsetPStatusText 48 #dene DisplayOffsetPStatusIcons 52 #dene DisplayOffsetPScreens(p) (((p)4)+56) #dene DisplayOffsetPBitmaps(p) (((p)4)+68) #dene DisplayOffsetPMenuText 84 #dene DisplayOffsetPMenuIcons(p) (((p)4)+88) #dene DisplayOffsetPStepIcons 100 #dene DisplayOffsetDisplay 104 #dene DisplayOffsetStatusIcons(p) ((p)+108)
4.114
522
#dene DisplayOffsetStepIcons(p) ((p)+112) #dene DisplayOffsetFlags 117 #dene DisplayOffsetTextLinesCenterFlags 118 #dene DisplayOffsetNormal(l, w) (((l)100)+(w)+119) #dene DisplayOffsetPopup(l, w) (((l)100)+(w)+919) #dene DisplayOffsetContrast 1719 Detailed Description
4.114.1
Constant offsets into the display module IOMAP structure. 4.114.2 4.114.2.1 Dene Documentation #dene DisplayOffsetContrast 1719 Adjust the display contrast with this eld 4.114.2.2 #dene DisplayOffsetDisplay 104 Display content copied to physical display every 17 mS 4.114.2.3 #dene DisplayOffsetEraseMask 4 Section erase mask (executed rst) 4.114.2.4 #dene DisplayOffsetFlags 117 Update ags enumerated above 4.114.2.5 #dene DisplayOffsetNormal(l, w) (((l)100)+(w)+119) Raw display memory for normal screen 4.114.2.6 #dene DisplayOffsetPBitmaps(p) (((p)4)+68) Pointer to free bitmap les 4.114.2.7 #dene DisplayOffsetPFont 12 Pointer to font le
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.114
523
4.114.2.8
4.114.2.9
4.114.2.10
4.114.2.11
4.114.2.12
4.114.2.13
4.114.2.14
4.114.2.15
4.114.2.16
4.114.2.17
#dene DisplayOffsetStatusIcons(p) ((p)+108) Index in status icon collection le (index = 0 -> none)
4.115
524
4.114.2.18
#dene DisplayOffsetStepIcons(p) ((p)+112) Index in step icon collection le (index = 0 -> none)
4.114.2.19
4.114.2.20
4.115
Constants that are part of the NXT rmwares Comm module. Modules Mailbox constants
Mailbox number constants should be used to avoid confusing NXT-G users.
4.116
525
Constants for all the Comm module interface functions executable via SysCommExecuteFunction.
4.115.1
Detailed Description
4.116
Miscellaneous constants related to the Comm module. Denes #dene SIZE_OF_USBBUF 64 #dene USB_PROTOCOL_OVERHEAD 2 #dene SIZE_OF_USBDATA 62 #dene SIZE_OF_HSBUF 128 #dene SIZE_OF_BTBUF 128 #dene BT_CMD_BYTE 1 #dene SIZE_OF_BT_DEVICE_TABLE 30 #dene SIZE_OF_BT_CONNECT_TABLE 4 #dene SIZE_OF_BT_NAME 16 #dene SIZE_OF_BRICK_NAME 8 #dene SIZE_OF_CLASS_OF_DEVICE 4 #dene SIZE_OF_BT_PINCODE 16 #dene SIZE_OF_BDADDR 7 #dene MAX_BT_MSG_SIZE 60000 #dene BT_DEFAULT_INQUIRY_MAX 0 #dene BT_DEFAULT_INQUIRY_TIMEOUT_LO 15 Detailed Description
4.116.1
4.116
526
4.116.2 4.116.2.1
4.116.2.2
4.116.2.3
4.116.2.4
4.116.2.5
4.116.2.6
4.116.2.7
#dene SIZE_OF_BT_CONNECT_TABLE 4
Size of Bluetooth connection table -- Index 0 is always incoming connection 4.116.2.8 #dene SIZE_OF_BT_DEVICE_TABLE 30 Size of Bluetooth device table 4.116.2.9 #dene SIZE_OF_BT_NAME 16 Size of Bluetooth name
4.117
527
4.116.2.10
4.116.2.11
4.116.2.12
4.116.2.13
4.116.2.14
4.116.2.15
4.116.2.16
#dene USB_PROTOCOL_OVERHEAD 2 Size of USB Overhead in bytes -- Command type byte + Command
4.117
Constants related to the bluetooth state. Denes #dene BT_ARM_OFF 0 #dene BT_ARM_CMD_MODE 1 #dene BT_ARM_DATA_MODE 2
4.118
528
4.117.1
Detailed Description
Constants related to the bluetooth state. 4.117.2 4.117.2.1 Dene Documentation #dene BT_ARM_CMD_MODE 1 BtState constant bluetooth command mode 4.117.2.2 #dene BT_ARM_DATA_MODE 2 BtState constant bluetooth data mode 4.117.2.3 #dene BT_ARM_OFF 0 BtState constant bluetooth off
4.118
Constants related to the bluetooth state status. Denes #dene BT_BRICK_VISIBILITY 0x01 #dene BT_BRICK_PORT_OPEN 0x02 #dene BT_CONNECTION_0_ENABLE 0x10 #dene BT_CONNECTION_1_ENABLE 0x20 #dene BT_CONNECTION_2_ENABLE 0x40 #dene BT_CONNECTION_3_ENABLE 0x80 Detailed Description
4.118.1
Constants related to the bluetooth state status. 4.118.2 4.118.2.1 Dene Documentation #dene BT_BRICK_PORT_OPEN 0x02 BtStateStatus port open bit
4.119
529
4.118.2.2
4.118.2.3
4.118.2.4
4.118.2.5
4.118.2.6
4.119
Constants related to the bluetooth hardware status. Denes #dene BT_ENABLE 0x00 #dene BT_DISABLE 0x01 4.119.1 Detailed Description
Constants related to the bluetooth hardware status. 4.119.2 4.119.2.1 Dene Documentation #dene BT_DISABLE 0x01 BtHwStatus bluetooth disable
4.120
530
4.119.2.2
4.120
Constants related to the hi-speed port. Modules Hi-speed port ags constants
Constants related to the hi-speed port ags.
4.120.1
Detailed Description
4.121
4.122
531
Constants related to the hi-speed port ags. 4.121.2 4.121.2.1 Dene Documentation #dene HS_UPDATE 1 HsFlags high speed update required
4.122
Constants related to the hi-speed port state. Denes #dene HS_INITIALISE 1 #dene HS_INIT_RECEIVER 2 #dene HS_SEND_DATA 3 #dene HS_DISABLE 4 #dene HS_ENABLE 5 Detailed Description
4.122.1
Constants related to the hi-speed port state. 4.122.2 4.122.2.1 Dene Documentation #dene HS_DISABLE 4 HsState disable 4.122.2.2 #dene HS_ENABLE 5 HsState enable
4.123
532
4.122.2.3
4.122.2.4
4.122.2.5
4.123
Constants for use with the SysCommHSControl API function. Denes #dene HS_CTRL_INIT 0 #dene HS_CTRL_UART 1 #dene HS_CTRL_EXIT 2 4.123.1 Detailed Description
Constants for use with the SysCommHSControl API function. See also: SysCommHSControl() 4.123.2 4.123.2.1 Dene Documentation #dene HS_CTRL_EXIT 2 Ddisable the high speed port 4.123.2.2 #dene HS_CTRL_INIT 0 Enable the high speed port
4.124
533
4.123.2.3
4.124
Constants for conguring the hi-speed port baud rate. Denes #dene HS_BAUD_1200 0 #dene HS_BAUD_2400 1 #dene HS_BAUD_3600 2 #dene HS_BAUD_4800 3 #dene HS_BAUD_7200 4 #dene HS_BAUD_9600 5 #dene HS_BAUD_14400 6 #dene HS_BAUD_19200 7 #dene HS_BAUD_28800 8 #dene HS_BAUD_38400 9 #dene HS_BAUD_57600 10 #dene HS_BAUD_76800 11 #dene HS_BAUD_115200 12 #dene HS_BAUD_230400 13 #dene HS_BAUD_460800 14 #dene HS_BAUD_921600 15 Detailed Description
4.124.1
Constants for conguring the hi-speed port baud rate. 4.124.2 4.124.2.1 Dene Documentation #dene HS_BAUD_115200 12 HsMode 115200 Baud 4.124.2.2 #dene HS_BAUD_1200 0 HsMode 1200 Baud
4.124
534
4.124.2.3
4.124.2.4
4.124.2.5
4.124.2.6
4.124.2.7
4.124.2.8
4.124.2.9
4.124.2.10
4.124.2.11
4.124.2.12
4.125
535
4.124.2.13
4.124.2.14
4.124.2.15
4.124.2.16
4.125
Constants referring to HsMode (number of data bits). Denes #dene HS_MODE_5_DATA 0x0000 #dene HS_MODE_6_DATA 0x0040 #dene HS_MODE_7_DATA 0x0080 #dene HS_MODE_8_DATA 0x00C0 Detailed Description
4.125.1
Constants referring to HsMode (number of data bits). 4.125.2 4.125.2.1 Dene Documentation #dene HS_MODE_5_DATA 0x0000 HsMode 5 data bits 4.125.2.2 #dene HS_MODE_6_DATA 0x0040 HsMode 6 data bits
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.126
536
4.125.2.3
4.125.2.4
4.126
Constants referring to HsMode (number of stop bits). Denes #dene HS_MODE_10_STOP 0x0000 #dene HS_MODE_15_STOP 0x1000 #dene HS_MODE_20_STOP 0x2000 4.126.1 Detailed Description
Constants referring to HsMode (number of stop bits). 4.126.2 4.126.2.1 Dene Documentation #dene HS_MODE_10_STOP 0x0000 HsMode 1 stop bit 4.126.2.2 #dene HS_MODE_15_STOP 0x1000 HsMode 1.5 stop bits 4.126.2.3 #dene HS_MODE_20_STOP 0x2000 HsMode 2 stop bits
4.127
4.128
537
Denes #dene HS_MODE_E_PARITY 0x0000 #dene HS_MODE_O_PARITY 0x0200 #dene HS_MODE_S_PARITY 0x0400 #dene HS_MODE_M_PARITY 0x0600 #dene HS_MODE_N_PARITY 0x0800 Detailed Description
4.127.1
Constants referring to HsMode (parity). 4.127.2 4.127.2.1 Dene Documentation #dene HS_MODE_E_PARITY 0x0000 HsMode Even parity 4.127.2.2 #dene HS_MODE_M_PARITY 0x0600 HsMode Mark parity 4.127.2.3 #dene HS_MODE_N_PARITY 0x0800 HsMode No parity 4.127.2.4 #dene HS_MODE_O_PARITY 0x0200 HsMode Odd parity 4.127.2.5 #dene HS_MODE_S_PARITY 0x0400 HsMode Space parity
4.128
Constants that combine data bits, parity, and stop bits into a single value.
4.129
538
Denes #dene HS_MODE_8N1 (HS_MODE_8_DATA|HS_MODE_N_PARITY|HS_MODE_10_STOP) #dene HS_MODE_7E1 (HS_MODE_7_DATA|HS_MODE_E_PARITY|HS_MODE_10_STOP) 4.128.1 Detailed Description
Constants that combine data bits, parity, and stop bits into a single value. 4.128.2 4.128.2.1 Dene Documentation #dene HS_MODE_7E1 (HS_MODE_7_DATA|HS_MODE_E_PARITY|HS_MODE_10_STOP) HsMode 7 data bits, even parity, 1 stop bit 4.128.2.2 #dene HS_MODE_8N1 (HS_MODE_8_DATA|HS_MODE_N_PARITY|HS_MODE_10_STOP) HsMode 8 data bits, no parity, 1 stop bit
4.129
Constants refering to DeviceStatus within DeviceTable. Denes #dene BT_DEVICE_EMPTY 0x00 #dene BT_DEVICE_UNKNOWN 0x01 #dene BT_DEVICE_KNOWN 0x02 #dene BT_DEVICE_NAME 0x40 #dene BT_DEVICE_AWAY 0x80 Detailed Description
4.129.1
4.130
539
4.129.2 4.129.2.1
4.129.2.2
4.129.2.3
4.129.2.4
4.129.2.5
4.130
Constants for all the Comm module interface functions executable via SysCommExecuteFunction. Denes #dene INTF_SENDFILE 0 #dene INTF_SEARCH 1 #dene INTF_STOPSEARCH 2 #dene INTF_CONNECT 3 #dene INTF_DISCONNECT 4 #dene INTF_DISCONNECTALL 5 #dene INTF_REMOVEDEVICE 6 #dene INTF_VISIBILITY 7 #dene INTF_SETCMDMODE 8 #dene INTF_OPENSTREAM 9 #dene INTF_SENDDATA 10
4.130
540
#dene INTF_FACTORYRESET 11 #dene INTF_BTON 12 #dene INTF_BTOFF 13 #dene INTF_SETBTNAME 14 #dene INTF_EXTREAD 15 #dene INTF_PINREQ 16 #dene INTF_CONNECTREQ 17 #dene INTF_CONNECTBYNAME 18 Detailed Description
4.130.1
Constants for all the Comm module interface functions executable via SysCommExecuteFunction. See also: SysCommExecuteFunction() 4.130.2 4.130.2.1 Dene Documentation #dene INTF_BTOFF 13 Turn off the bluetooth radio 4.130.2.2 #dene INTF_BTON 12 Turn on the bluetooth radio 4.130.2.3 #dene INTF_CONNECT 3 Connect to one of the known devices 4.130.2.4 #dene INTF_CONNECTBYNAME 18 Connect to a bluetooth device by name 4.130.2.5 #dene INTF_CONNECTREQ 17 Connection request from another device
4.130
541
4.130.2.6
4.130.2.7
4.130.2.8
4.130.2.9
4.130.2.10
4.130.2.11
4.130.2.12
4.130.2.13
4.130.2.14
4.130.2.15
4.131
542
4.130.2.16
4.130.2.17
4.130.2.18
4.130.2.19
4.131
Constants for Comm module status codes. Denes #dene LR_SUCCESS 0x50 #dene LR_COULD_NOT_SAVE 0x51 #dene LR_STORE_IS_FULL 0x52 #dene LR_ENTRY_REMOVED 0x53 #dene LR_UNKNOWN_ADDR 0x54 #dene USB_CMD_READY 0x01 #dene BT_CMD_READY 0x02 #dene HS_CMD_READY 0x04 Detailed Description
4.131.1
Constants for Comm module status codes. 4.131.2 4.131.2.1 Dene Documentation #dene BT_CMD_READY 0x02 A constant representing bluetooth direct command
4.132
543
4.131.2.2
4.131.2.3
4.131.2.4
4.131.2.5
4.131.2.6
4.131.2.7
4.131.2.8
4.132
Constant offsets into the Comm module IOMAP structure. Denes #dene CommOffsetPFunc 0 #dene CommOffsetPFuncTwo 4 #dene CommOffsetBtDeviceTableName(p) (((p)31)+8) #dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) #dene CommOffsetBtDeviceTableBdAddr(p) (((p)31)+28)
4.132
544
#dene CommOffsetBtDeviceTableDeviceStatus(p) (((p)31)+35) #dene CommOffsetBtConnectTableName(p) (((p)47)+938) #dene CommOffsetBtConnectTableClassOfDevice(p) (((p)47)+954) #dene CommOffsetBtConnectTablePinCode(p) (((p)47)+958) #dene CommOffsetBtConnectTableBdAddr(p) (((p)47)+974) #dene CommOffsetBtConnectTableHandleNr(p) (((p)47)+981) #dene CommOffsetBtConnectTableStreamStatus(p) (((p)47)+982) #dene CommOffsetBtConnectTableLinkQuality(p) (((p)47)+983) #dene CommOffsetBrickDataName 1126 #dene CommOffsetBrickDataBluecoreVersion 1142 #dene CommOffsetBrickDataBdAddr 1144 #dene CommOffsetBrickDataBtStateStatus 1151 #dene CommOffsetBrickDataBtHwStatus 1152 #dene CommOffsetBrickDataTimeOutValue 1153 #dene CommOffsetBtInBufBuf 1157 #dene CommOffsetBtInBufInPtr 1285 #dene CommOffsetBtInBufOutPtr 1286 #dene CommOffsetBtOutBufBuf 1289 #dene CommOffsetBtOutBufInPtr 1417 #dene CommOffsetBtOutBufOutPtr 1418 #dene CommOffsetHsInBufBuf 1421 #dene CommOffsetHsInBufInPtr 1549 #dene CommOffsetHsInBufOutPtr 1550 #dene CommOffsetHsOutBufBuf 1553 #dene CommOffsetHsOutBufInPtr 1681 #dene CommOffsetHsOutBufOutPtr 1682 #dene CommOffsetUsbInBufBuf 1685 #dene CommOffsetUsbInBufInPtr 1749 #dene CommOffsetUsbInBufOutPtr 1750 #dene CommOffsetUsbOutBufBuf 1753 #dene CommOffsetUsbOutBufInPtr 1817 #dene CommOffsetUsbOutBufOutPtr 1818 #dene CommOffsetUsbPollBufBuf 1821 #dene CommOffsetUsbPollBufInPtr 1885 #dene CommOffsetUsbPollBufOutPtr 1886 #dene CommOffsetBtDeviceCnt 1889 #dene CommOffsetBtDeviceNameCnt 1890 #dene CommOffsetHsFlags 1891 #dene CommOffsetHsSpeed 1892 #dene CommOffsetHsState 1893 #dene CommOffsetUsbState 1894 #dene CommOffsetHsMode 1895
4.132
545
4.132.1
Detailed Description
Constant offsets into the Comm module IOMAP structure. 4.132.2 4.132.2.1 Dene Documentation #dene CommOffsetBrickDataBdAddr 1144 Offset to Bluetooth address (7 bytes) 4.132.2.2 #dene CommOffsetBrickDataBluecoreVersion 1142 Offset to Bluecore version (2 bytes) 4.132.2.3 #dene CommOffsetBrickDataBtHwStatus 1152 Offset to BtHwStatus (1 byte) 4.132.2.4 #dene CommOffsetBrickDataBtStateStatus 1151 Offset to BtStateStatus (1 byte) 4.132.2.5 #dene CommOffsetBrickDataName 1126 Offset to brick name (16 bytes) 4.132.2.6 #dene CommOffsetBrickDataTimeOutValue 1153 Offset to data timeout value (1 byte) 4.132.2.7 #dene CommOffsetBtConnectTableBdAddr(p) (((p)47)+974) Offset to Bluetooth connect table address (7 bytes) 4.132.2.8 #dene CommOffsetBtConnectTableClassOfDevice(p) (((p)47)+954) Offset to Bluetooth connect table device class (4 bytes)
4.132
546
4.132.2.9
4.132.2.10
#dene CommOffsetBtConnectTableLinkQuality(p) (((p)47)+983) Offset to Bluetooth connect table link quality (1 byte)
4.132.2.11
#dene CommOffsetBtConnectTableName(p) (((p)47)+938) Offset to Bluetooth connect table name (16 bytes)
4.132.2.12
#dene CommOffsetBtConnectTablePinCode(p) (((p)47)+958) Offset to Bluetooth connect table pin code (16 bytes)
4.132.2.13
#dene CommOffsetBtConnectTableStreamStatus(p) (((p)47)+982) Offset to Bluetooth connect table stream status (1 byte)
4.132.2.14
4.132.2.15
4.132.2.16
4.132.2.17
#dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) Offset to Bluetooth device table device class (4 bytes)
4.132.2.18
4.132
547
4.132.2.19
4.132.2.20
#dene CommOffsetBtInBufBuf 1157 Offset to Bluetooth input buffer data (128 bytes)
4.132.2.21
#dene CommOffsetBtInBufInPtr 1285 Offset to Bluetooth input buffer front pointer (1 byte)
4.132.2.22
#dene CommOffsetBtInBufOutPtr 1286 Offset to Bluetooth output buffer back pointer (1 byte)
4.132.2.23
#dene CommOffsetBtOutBufBuf 1289 Offset to Bluetooth output buffer offset data (128 bytes)
4.132.2.24
#dene CommOffsetBtOutBufInPtr 1417 Offset to Bluetooth output buffer front pointer (1 byte)
4.132.2.25
#dene CommOffsetBtOutBufOutPtr 1418 Offset to Bluetooth output buffer back pointer (1 byte)
4.132.2.26
4.132.2.27
#dene CommOffsetHsInBufBuf 1421 Offset to High Speed input buffer data (128 bytes)
4.132.2.28
#dene CommOffsetHsInBufInPtr 1549 Offset to High Speed input buffer front pointer (1 byte)
4.132
548
4.132.2.29
#dene CommOffsetHsInBufOutPtr 1550 Offset to High Speed input buffer back pointer (1 byte)
4.132.2.30
4.132.2.31
#dene CommOffsetHsOutBufBuf 1553 Offset to High Speed output buffer data (128 bytes)
4.132.2.32
#dene CommOffsetHsOutBufInPtr 1681 Offset to High Speed output buffer front pointer (1 byte)
4.132.2.33
#dene CommOffsetHsOutBufOutPtr 1682 Offset to High Speed output buffer back pointer (1 byte)
4.132.2.34
4.132.2.35
4.132.2.36
#dene CommOffsetPFunc 0 Offset to the Comm module rst function pointer (4 bytes)
4.132.2.37
#dene CommOffsetPFuncTwo 4 Offset to the Comm module second function pointer (4 bytes)
4.132.2.38
#dene CommOffsetUsbInBufBuf 1685 Offset to Usb input buffer data (64 bytes)
4.132
549
4.132.2.39
#dene CommOffsetUsbInBufInPtr 1749 Offset to Usb input buffer front pointer (1 byte)
4.132.2.40
#dene CommOffsetUsbInBufOutPtr 1750 Offset to Usb input buffer back pointer (1 byte)
4.132.2.41
#dene CommOffsetUsbOutBufBuf 1753 Offset to Usb output buffer data (64 bytes)
4.132.2.42
#dene CommOffsetUsbOutBufInPtr 1817 Offset to Usb output buffer front pointer (1 byte)
4.132.2.43
#dene CommOffsetUsbOutBufOutPtr 1818 Offset to Usb output buffer back pointer (1 byte)
4.132.2.44
#dene CommOffsetUsbPollBufBuf 1821 Offset to Usb Poll buffer data (64 bytes)
4.132.2.45
#dene CommOffsetUsbPollBufInPtr 1885 Offset to Usb Poll buffer front pointer (1 byte)
4.132.2.46
#dene CommOffsetUsbPollBufOutPtr 1886 Offset to Usb Poll buffer back pointer (1 byte)
4.132.2.47
4.133
RCX constants
550
4.133
RCX constants
Constants that are for use with devices that communicate with the RCX or Scout programmable bricks via IR such as the HiTechnic IRLink or the MindSensors nRLink. Modules RCX output constants
Constants for use when choosing RCX outputs.
Scout constants
Constants for use when controlling the Scout brick.
4.133.1
Detailed Description
Constants that are for use with devices that communicate with the RCX or Scout programmable bricks via IR such as the HiTechnic IRLink or the MindSensors nRLink.
4.134
551
4.134
Constants for use when choosing RCX outputs. Denes #dene RCX_OUT_A 0x01 #dene RCX_OUT_B 0x02 #dene RCX_OUT_C 0x04 #dene RCX_OUT_AB 0x03 #dene RCX_OUT_AC 0x05 #dene RCX_OUT_BC 0x06 #dene RCX_OUT_ABC 0x07 Detailed Description
4.134.1
Constants for use when choosing RCX outputs. 4.134.2 4.134.2.1 Dene Documentation #dene RCX_OUT_A 0x01 RCX Output A 4.134.2.2 #dene RCX_OUT_AB 0x03 RCX Outputs A and B 4.134.2.3 #dene RCX_OUT_ABC 0x07 RCX Outputs A, B, and C 4.134.2.4 #dene RCX_OUT_AC 0x05 RCX Outputs A and C 4.134.2.5 #dene RCX_OUT_B 0x02 RCX Output B
4.135
552
4.134.2.6
4.134.2.7
4.135
Constants for use when conguring RCX output mode. Denes #dene RCX_OUT_FLOAT 0 #dene RCX_OUT_OFF 0x40 #dene RCX_OUT_ON 0x80 4.135.1 Detailed Description
Constants for use when conguring RCX output mode. 4.135.2 4.135.2.1 Dene Documentation #dene RCX_OUT_FLOAT 0 Set RCX output to oat 4.135.2.2 #dene RCX_OUT_OFF 0x40 Set RCX output to off 4.135.2.3 #dene RCX_OUT_ON 0x80 Set RCX output to on
4.136
4.137
553
Denes #dene RCX_OUT_REV 0 #dene RCX_OUT_TOGGLE 0x40 #dene RCX_OUT_FWD 0x80 4.136.1 Detailed Description
Constants for use when conguring RCX output direction. 4.136.2 4.136.2.1 Dene Documentation #dene RCX_OUT_FWD 0x80 Set RCX output direction to forward 4.136.2.2 #dene RCX_OUT_REV 0 Set RCX output direction to reverse 4.136.2.3 #dene RCX_OUT_TOGGLE 0x40 Set RCX output direction to toggle
4.137
Constants for use when conguring RCX output power. Denes #dene RCX_OUT_LOW 0 #dene RCX_OUT_HALF 3 #dene RCX_OUT_FULL 7 4.137.1 Detailed Description
4.138
554
4.137.2 4.137.2.1
Dene Documentation #dene RCX_OUT_FULL 7 Set RCX output power level to full
4.137.2.2
4.137.2.3
4.138
Constants for use when simulating RCX IR remote messages. Denes #dene RCX_RemoteKeysReleased 0x0000 #dene RCX_RemotePBMessage1 0x0100 #dene RCX_RemotePBMessage2 0x0200 #dene RCX_RemotePBMessage3 0x0400 #dene RCX_RemoteOutAForward 0x0800 #dene RCX_RemoteOutBForward 0x1000 #dene RCX_RemoteOutCForward 0x2000 #dene RCX_RemoteOutABackward 0x4000 #dene RCX_RemoteOutBBackward 0x8000 #dene RCX_RemoteOutCBackward 0x0001 #dene RCX_RemoteSelProgram1 0x0002 #dene RCX_RemoteSelProgram2 0x0004 #dene RCX_RemoteSelProgram3 0x0008 #dene RCX_RemoteSelProgram4 0x0010 #dene RCX_RemoteSelProgram5 0x0020 #dene RCX_RemoteStopOutOff 0x0040 #dene RCX_RemotePlayASound 0x0080 Detailed Description
4.138.1
4.138
555
4.138.2 4.138.2.1
Dene Documentation #dene RCX_RemoteKeysReleased 0x0000 All remote keys have been released
4.138.2.2
4.138.2.3
4.138.2.4
4.138.2.5
4.138.2.6
4.138.2.7
4.138.2.8
4.138.2.9
4.139
556
4.138.2.10
4.138.2.11
4.138.2.12
4.138.2.13
4.138.2.14
4.138.2.15
4.138.2.16
4.138.2.17
4.139
Constants for use when playing standard RCX and Scout sounds.
4.139
557
Denes #dene SOUND_CLICK 0 #dene SOUND_DOUBLE_BEEP 1 #dene SOUND_DOWN 2 #dene SOUND_UP 3 #dene SOUND_LOW_BEEP 4 #dene SOUND_FAST_UP 5 Detailed Description
4.139.1
Constants for use when playing standard RCX and Scout sounds. 4.139.2 4.139.2.1 Dene Documentation #dene SOUND_CLICK 0 Play the standard key click sound 4.139.2.2 #dene SOUND_DOUBLE_BEEP 1 Play the standard double beep sound 4.139.2.3 #dene SOUND_DOWN 2 Play the standard sweep down sound 4.139.2.4 #dene SOUND_FAST_UP 5 Play the standard fast up sound 4.139.2.5 #dene SOUND_LOW_BEEP 4 Play the standard low beep sound 4.139.2.6 #dene SOUND_UP 3 Play the standard sweep up sound
4.140
Scout constants
558
4.140
Scout constants
Constants for use when controlling the Scout brick. Modules Scout light constants
Constants for use when controlling the Scout light settings.
4.140.1
Detailed Description
4.141
4.142
559
Constants for use when controlling the Scout light settings. 4.141.2 4.141.2.1 Dene Documentation #dene SCOUT_LIGHT_OFF 0 Turn off the scout light 4.141.2.2 #dene SCOUT_LIGHT_ON 0x80 Turn on the scout light
4.142
Constants for use when playing standard Scout sounds. Denes #dene SCOUT_SOUND_REMOTE 6 #dene SCOUT_SOUND_ENTERSA 7 #dene SCOUT_SOUND_KEYERROR 8 #dene SCOUT_SOUND_NONE 9 #dene SCOUT_SOUND_TOUCH1_PRES 10 #dene SCOUT_SOUND_TOUCH1_REL 11 #dene SCOUT_SOUND_TOUCH2_PRES 12 #dene SCOUT_SOUND_TOUCH2_REL 13 #dene SCOUT_SOUND_ENTER_BRIGHT 14 #dene SCOUT_SOUND_ENTER_NORMAL 15 #dene SCOUT_SOUND_ENTER_DARK 16 #dene SCOUT_SOUND_1_BLINK 17 #dene SCOUT_SOUND_2_BLINK 18 #dene SCOUT_SOUND_COUNTER1 19 #dene SCOUT_SOUND_COUNTER2 20 #dene SCOUT_SOUND_TIMER1 21
4.142
560
#dene SCOUT_SOUND_TIMER2 22 #dene SCOUT_SOUND_TIMER3 23 #dene SCOUT_SOUND_MAIL_RECEIVED 24 #dene SCOUT_SOUND_SPECIAL1 25 #dene SCOUT_SOUND_SPECIAL2 26 #dene SCOUT_SOUND_SPECIAL3 27 Detailed Description
4.142.1
Constants for use when playing standard Scout sounds. 4.142.2 4.142.2.1 Dene Documentation #dene SCOUT_SOUND_1_BLINK 17 Play the Scout 1 blink sound 4.142.2.2 #dene SCOUT_SOUND_2_BLINK 18 Play the Scout 2 blink sound 4.142.2.3 #dene SCOUT_SOUND_COUNTER1 19 Play the Scout counter 1 sound 4.142.2.4 #dene SCOUT_SOUND_COUNTER2 20 Play the Scout counter 2 sound 4.142.2.5 #dene SCOUT_SOUND_ENTER_BRIGHT 14 Play the Scout enter bright sound 4.142.2.6 #dene SCOUT_SOUND_ENTER_DARK 16 Play the Scout enter dark sound 4.142.2.7 #dene SCOUT_SOUND_ENTER_NORMAL 15 Play the Scout enter normal sound
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.142
561
4.142.2.8
4.142.2.9
4.142.2.10
4.142.2.11
4.142.2.12
4.142.2.13
4.142.2.14
4.142.2.15
4.142.2.16
4.142.2.17
4.143
562
4.142.2.18
4.142.2.19
4.142.2.20
4.142.2.21
4.142.2.22
4.143
Constants for use when choosing standard Scout sound sets. Denes #dene SCOUT_SNDSET_NONE 0 #dene SCOUT_SNDSET_BASIC 1 #dene SCOUT_SNDSET_BUG 2 #dene SCOUT_SNDSET_ALARM 3 #dene SCOUT_SNDSET_RANDOM 4 #dene SCOUT_SNDSET_SCIENCE 5 Detailed Description
4.143.1
4.144
563
4.143.2 4.143.2.1
4.143.2.2
4.143.2.3
4.143.2.4
4.143.2.5
4.143.2.6
4.144
Constants for use when setting the scout mode. Denes #dene SCOUT_MODE_STANDALONE 0 #dene SCOUT_MODE_POWER 1 4.144.1 Detailed Description
4.145
564
4.144.2 4.144.2.1
4.144.2.2
4.145
Constants for use when setting the scout motion rule. Denes #dene SCOUT_MR_NO_MOTION 0 #dene SCOUT_MR_FORWARD 1 #dene SCOUT_MR_ZIGZAG 2 #dene SCOUT_MR_CIRCLE_RIGHT 3 #dene SCOUT_MR_CIRCLE_LEFT 4 #dene SCOUT_MR_LOOP_A 5 #dene SCOUT_MR_LOOP_B 6 #dene SCOUT_MR_LOOP_AB 7 Detailed Description
4.145.1
Constants for use when setting the scout motion rule. 4.145.2 4.145.2.1 Dene Documentation #dene SCOUT_MR_CIRCLE_LEFT 4 Motion rule circle left 4.145.2.2 #dene SCOUT_MR_CIRCLE_RIGHT 3 Motion rule circle right
4.146
565
4.145.2.3
4.145.2.4
4.145.2.5
4.145.2.6
4.145.2.7
4.145.2.8
4.146
Constants for use when setting the scout touch rule. Denes #dene SCOUT_TR_IGNORE 0 #dene SCOUT_TR_REVERSE 1 #dene SCOUT_TR_AVOID 2 #dene SCOUT_TR_WAIT_FOR 3 #dene SCOUT_TR_OFF_WHEN 4 Detailed Description
4.146.1
4.147
566
4.146.2 4.146.2.1
4.146.2.2
4.146.2.3
4.146.2.4
4.146.2.5
4.147
Constants for use when setting the scout light rule. Denes #dene SCOUT_LR_IGNORE 0 #dene SCOUT_LR_SEEK_LIGHT 1 #dene SCOUT_LR_SEEK_DARK 2 #dene SCOUT_LR_AVOID 3 #dene SCOUT_LR_WAIT_FOR 4 #dene SCOUT_LR_OFF_WHEN 5 Detailed Description
4.147.1
4.148
567
4.147.2 4.147.2.1
4.147.2.2
4.147.2.3
4.147.2.4
4.147.2.5
4.147.2.6
4.148
Constants for use when setting the scout transmit rule. Denes #dene SCOUT_TGS_SHORT 0 #dene SCOUT_TGS_MEDIUM 1 #dene SCOUT_TGS_LONG 2 4.148.1 Detailed Description
4.149
568
4.148.2 4.148.2.1
4.148.2.2
4.148.2.3
4.149
Constants for use when setting the scout special effect. Denes #dene SCOUT_FXR_NONE 0 #dene SCOUT_FXR_BUG 1 #dene SCOUT_FXR_ALARM 2 #dene SCOUT_FXR_RANDOM 3 #dene SCOUT_FXR_SCIENCE 4 Detailed Description
4.149.1
Constants for use when setting the scout special effect. 4.149.2 4.149.2.1 Dene Documentation #dene SCOUT_FXR_ALARM 2 Alarm special effects 4.149.2.2 #dene SCOUT_FXR_BUG 1 Bug special effects
4.150
569
4.149.2.3
4.149.2.4
4.149.2.5
4.150
Constants for use when specifying RCX and Scout sources. Denes #dene RCX_VariableSrc 0 #dene RCX_TimerSrc 1 #dene RCX_ConstantSrc 2 #dene RCX_OutputStatusSrc 3 #dene RCX_RandomSrc 4 #dene RCX_ProgramSlotSrc 8 #dene RCX_InputValueSrc 9 #dene RCX_InputTypeSrc 10 #dene RCX_InputModeSrc 11 #dene RCX_InputRawSrc 12 #dene RCX_InputBooleanSrc 13 #dene RCX_WatchSrc 14 #dene RCX_MessageSrc 15 #dene RCX_GlobalMotorStatusSrc 17 #dene RCX_ScoutRulesSrc 18 #dene RCX_ScoutLightParamsSrc 19 #dene RCX_ScoutTimerLimitSrc 20 #dene RCX_CounterSrc 21 #dene RCX_ScoutCounterLimitSrc 22 #dene RCX_TaskEventsSrc 23 #dene RCX_ScoutEventFBSrc 24 #dene RCX_EventStateSrc 25 #dene RCX_TenMSTimerSrc 26
4.150
570
#dene RCX_ClickCounterSrc 27 #dene RCX_UpperThresholdSrc 28 #dene RCX_LowerThresholdSrc 29 #dene RCX_HysteresisSrc 30 #dene RCX_DurationSrc 31 #dene RCX_UARTSetupSrc 33 #dene RCX_BatteryLevelSrc 34 #dene RCX_FirmwareVersionSrc 35 #dene RCX_IndirectVarSrc 36 #dene RCX_DatalogSrcIndirectSrc 37 #dene RCX_DatalogSrcDirectSrc 38 #dene RCX_DatalogValueIndirectSrc 39 #dene RCX_DatalogValueDirectSrc 40 #dene RCX_DatalogRawIndirectSrc 41 #dene RCX_DatalogRawDirectSrc 42 Detailed Description
4.150.1
Constants for use when specifying RCX and Scout sources. 4.150.2 4.150.2.1 Dene Documentation #dene RCX_BatteryLevelSrc 34 The RCX battery level source 4.150.2.2 #dene RCX_ClickCounterSrc 27 The RCX event click counter source 4.150.2.3 #dene RCX_ConstantSrc 2 The RCX constant value source 4.150.2.4 #dene RCX_CounterSrc 21 The RCX counter source 4.150.2.5 #dene RCX_DatalogRawDirectSrc 42 The RCX direct datalog raw source
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.150
571
4.150.2.6
4.150.2.7
4.150.2.8
4.150.2.9
4.150.2.10
4.150.2.11
4.150.2.12
4.150.2.13
4.150.2.14
4.150.2.15
4.150
572
4.150.2.16
4.150.2.17
4.150.2.18
4.150.2.19
4.150.2.20
4.150.2.21
4.150.2.22
4.150.2.23
4.150.2.24
4.150.2.25
4.150
573
4.150.2.26
4.150.2.27
4.150.2.28
4.150.2.29
4.150.2.30
4.150.2.31
4.150.2.32
4.150.2.33
4.150.2.34
4.150.2.35
4.151
574
4.150.2.36
4.150.2.37
4.150.2.38
4.151
Constants for use when specifying RCX and Scout opcodes. Denes #dene RCX_PingOp 0x10 #dene RCX_BatteryLevelOp 0x30 #dene RCX_DeleteTasksOp 0x40 #dene RCX_StopAllTasksOp 0x50 #dene RCX_PBTurnOffOp 0x60 #dene RCX_DeleteSubsOp 0x70 #dene RCX_ClearSoundOp 0x80 #dene RCX_ClearMsgOp 0x90 #dene RCX_LSCalibrateOp 0xc0 #dene RCX_MuteSoundOp 0xd0 #dene RCX_UnmuteSoundOp 0xe0 #dene RCX_ClearAllEventsOp 0x06 #dene RCX_OnOffFloatOp 0x21 #dene RCX_IRModeOp 0x31 #dene RCX_PlaySoundOp 0x51 #dene RCX_DeleteTaskOp 0x61 #dene RCX_StartTaskOp 0x71 #dene RCX_StopTaskOp 0x81 #dene RCX_SelectProgramOp 0x91 #dene RCX_ClearTimerOp 0xa1 #dene RCX_AutoOffOp 0xb1 #dene RCX_DeleteSubOp 0xc1 #dene RCX_ClearSensorOp 0xd1
4.151
575
#dene RCX_OutputDirOp 0xe1 #dene RCX_PlayToneVarOp 0x02 #dene RCX_PollOp 0x12 #dene RCX_SetWatchOp 0x22 #dene RCX_InputTypeOp 0x32 #dene RCX_InputModeOp 0x42 #dene RCX_SetDatalogOp 0x52 #dene RCX_DatalogOp 0x62 #dene RCX_SendUARTDataOp 0xc2 #dene RCX_RemoteOp 0xd2 #dene RCX_VLLOp 0xe2 #dene RCX_DirectEventOp 0x03 #dene RCX_OutputPowerOp 0x13 #dene RCX_PlayToneOp 0x23 #dene RCX_DisplayOp 0x33 #dene RCX_PollMemoryOp 0x63 #dene RCX_SetFeedbackOp 0x83 #dene RCX_SetEventOp 0x93 #dene RCX_GOutputPowerOp 0xa3 #dene RCX_LSUpperThreshOp 0xb3 #dene RCX_LSLowerThreshOp 0xc3 #dene RCX_LSHysteresisOp 0xd3 #dene RCX_LSBlinkTimeOp 0xe3 #dene RCX_CalibrateEventOp 0x04 #dene RCX_SetVarOp 0x14 #dene RCX_SumVarOp 0x24 #dene RCX_SubVarOp 0x34 #dene RCX_DivVarOp 0x44 #dene RCX_MulVarOp 0x54 #dene RCX_SgnVarOp 0x64 #dene RCX_AbsVarOp 0x74 #dene RCX_AndVarOp 0x84 #dene RCX_OrVarOp 0x94 #dene RCX_UploadDatalogOp 0xa4 #dene RCX_SetTimerLimitOp 0xc4 #dene RCX_SetCounterOp 0xd4 #dene RCX_SetSourceValueOp 0x05 #dene RCX_UnlockOp 0x15 #dene RCX_BootModeOp 0x65 #dene RCX_UnlockFirmOp 0xa5 #dene RCX_ScoutRulesOp 0xd5 #dene RCX_ViewSourceValOp 0xe5 #dene RCX_ScoutOp 0x47
4.151
576
#dene RCX_SoundOp 0x57 #dene RCX_GOutputModeOp 0x67 #dene RCX_GOutputDirOp 0x77 #dene RCX_LightOp 0x87 #dene RCX_IncCounterOp 0x97 #dene RCX_DecCounterOp 0xa7 #dene RCX_ClearCounterOp 0xb7 #dene RCX_SetPriorityOp 0xd7 #dene RCX_MessageOp 0xf7 Detailed Description
4.151.1
Constants for use when specifying RCX and Scout opcodes. 4.151.2 4.151.2.1 Dene Documentation #dene RCX_AbsVarOp 0x74 Absolute value function 4.151.2.2 #dene RCX_AndVarOp 0x84 AND function 4.151.2.3 #dene RCX_AutoOffOp 0xb1 Set auto off timer 4.151.2.4 #dene RCX_BatteryLevelOp 0x30 Read the battery level 4.151.2.5 #dene RCX_BootModeOp 0x65 Set into book mode 4.151.2.6 #dene RCX_CalibrateEventOp 0x04 Calibrate event
4.151
577
4.151.2.7
4.151.2.8
4.151.2.9
4.151.2.10
4.151.2.11
4.151.2.12
4.151.2.13
4.151.2.14
4.151.2.15
4.151.2.16
4.151
578
4.151.2.17
4.151.2.18
4.151.2.19
4.151.2.20
4.151.2.21
4.151.2.22
4.151.2.23
4.151.2.24
4.151.2.25
4.151.2.26
4.151
579
4.151.2.27
4.151.2.28
4.151.2.29
4.151.2.30
4.151.2.31
4.151.2.32
4.151.2.33
4.151.2.34
4.151.2.35
4.151.2.36
4.151
580
4.151.2.37
4.151.2.38
4.151.2.39
4.151.2.40
4.151.2.41
4.151.2.42
4.151.2.43
4.151.2.44
4.151.2.45
4.151.2.46
4.151
581
4.151.2.47
4.151.2.48
4.151.2.49
4.151.2.50
4.151.2.51
4.151.2.52
4.151.2.53
4.151.2.54
4.151.2.55
4.151.2.56
4.151
582
4.151.2.57
4.151.2.58
4.151.2.59
4.151.2.60
4.151.2.61
4.151.2.62
4.151.2.63
4.151.2.64
4.151.2.65
4.151.2.66
4.151
583
4.151.2.67
4.151.2.68
4.151.2.69
4.151.2.70
4.151.2.71
4.151.2.72
4.151.2.73
4.151.2.74
4.151.2.75
4.152
584
4.152
Constants that are for use with the HiTechnic IRLink or mindsensors nRLink in Power Function or IR Train mode. Modules Power Function command constants
Constants that are for sending Power Function commands.
4.152.1
Detailed Description
Constants that are for use with the HiTechnic IRLink or mindsensors nRLink in Power Function or IR Train mode.
4.153
585
4.153
Constants that are for sending Power Function commands. Denes #dene PF_CMD_STOP 0 #dene PF_CMD_FWD 1 #dene PF_CMD_REV 2 #dene PF_CMD_BRAKE 3 Detailed Description
4.153.1
Constants that are for sending Power Function commands. 4.153.2 4.153.2.1 Dene Documentation #dene PF_CMD_BRAKE 3 Power function command brake 4.153.2.2 #dene PF_CMD_FWD 1 Power function command forward 4.153.2.3 #dene PF_CMD_REV 2 Power function command reverse 4.153.2.4 #dene PF_CMD_STOP 0 Power function command stop
4.154
4.155
586
Denes #dene PF_CHANNEL_1 0 #dene PF_CHANNEL_2 1 #dene PF_CHANNEL_3 2 #dene PF_CHANNEL_4 3 Detailed Description
4.154.1
Constants that are for specifying Power Function channels. 4.154.2 4.154.2.1 Dene Documentation #dene PF_CHANNEL_1 0 Power function channel 1 4.154.2.2 #dene PF_CHANNEL_2 1 Power function channel 2 4.154.2.3 #dene PF_CHANNEL_3 2 Power function channel 3 4.154.2.4 #dene PF_CHANNEL_4 3 Power function channel 4
4.155
Constants that are for choosing Power Function modes. Denes #dene PF_MODE_TRAIN 0 #dene PF_MODE_COMBO_DIRECT 1 #dene PF_MODE_SINGLE_PIN_CONT 2 #dene PF_MODE_SINGLE_PIN_TIME 3 #dene PF_MODE_COMBO_PWM 4
4.155
587
Constants that are for choosing Power Function modes. 4.155.2 4.155.2.1 Dene Documentation #dene PF_MODE_COMBO_DIRECT 1 Power function mode combo direct 4.155.2.2 #dene PF_MODE_COMBO_PWM 4 Power function mode combo pulse width modulation (PWM) 4.155.2.3 #dene PF_MODE_SINGLE_OUTPUT_CST 6 Power function mode single output clear, set, toggle (CST) 4.155.2.4 #dene PF_MODE_SINGLE_OUTPUT_PWM 4 Power function mode single output pulse width modulation (PWM) 4.155.2.5 #dene PF_MODE_SINGLE_PIN_CONT 2 Power function mode single pin continuous 4.155.2.6 #dene PF_MODE_SINGLE_PIN_TIME 3 Power function mode single pin timed 4.155.2.7 #dene PF_MODE_TRAIN 0 Power function mode IR Train
4.156
588
4.156
Constants that are for sending PF/IR Train functions. Denes #dene TRAIN_FUNC_STOP 0 #dene TRAIN_FUNC_INCR_SPEED 1 #dene TRAIN_FUNC_DECR_SPEED 2 #dene TRAIN_FUNC_TOGGLE_LIGHT 4 Detailed Description
4.156.1
Constants that are for sending PF/IR Train functions. 4.156.2 4.156.2.1 Dene Documentation #dene TRAIN_FUNC_DECR_SPEED 2 PF/IR Train function decrement speed 4.156.2.2 #dene TRAIN_FUNC_INCR_SPEED 1 PF/IR Train function increment speed 4.156.2.3 #dene TRAIN_FUNC_STOP 0 PF/IR Train function stop 4.156.2.4 #dene TRAIN_FUNC_TOGGLE_LIGHT 4 PF/IR Train function toggle light
4.157
4.158
589
Denes #dene TRAIN_CHANNEL_1 0 #dene TRAIN_CHANNEL_2 1 #dene TRAIN_CHANNEL_3 2 #dene TRAIN_CHANNEL_ALL 3 Detailed Description
4.157.1
Constants that are for specifying IR Train channels. 4.157.2 4.157.2.1 Dene Documentation #dene TRAIN_CHANNEL_1 0 IR Train channel 1 4.157.2.2 #dene TRAIN_CHANNEL_2 1 IR Train channel 2 4.157.2.3 #dene TRAIN_CHANNEL_3 2 IR Train channel 3 4.157.2.4 #dene TRAIN_CHANNEL_ALL 3 IR Train channel all
4.158
Constants that are for choosing a Power Function output. Denes #dene PF_OUT_A 0 #dene PF_OUT_B 1
4.159
590
4.158.1
Detailed Description
Constants that are for choosing a Power Function output. 4.158.2 4.158.2.1 Dene Documentation #dene PF_OUT_A 0 Power function output A 4.158.2.2 #dene PF_OUT_B 1 Power function output B
4.159
Constants that are for choosing a Power Function pin. Denes #dene PF_PIN_C1 0 #dene PF_PIN_C2 1 4.159.1 Detailed Description
Constants that are for choosing a Power Function pin. 4.159.2 4.159.2.1 Dene Documentation #dene PF_PIN_C1 0 Power function pin C1 4.159.2.2 #dene PF_PIN_C2 1 Power function pin C2
4.160
Constants that are for sending Power Function single pin functions.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.161
591
Denes #dene PF_FUNC_NOCHANGE 0 #dene PF_FUNC_CLEAR 1 #dene PF_FUNC_SET 2 #dene PF_FUNC_TOGGLE 3 Detailed Description
4.160.1
Constants that are for sending Power Function single pin functions. 4.160.2 4.160.2.1 Dene Documentation #dene PF_FUNC_CLEAR 1 Power function single pin - clear 4.160.2.2 #dene PF_FUNC_NOCHANGE 0 Power function single pin - no change 4.160.2.3 #dene PF_FUNC_SET 2 Power function single pin - set 4.160.2.4 #dene PF_FUNC_TOGGLE 3 Power function single pin - toggle
4.161
Constants that are for specifying Power Function CST options. Denes #dene PF_CST_CLEAR1_CLEAR2 0 #dene PF_CST_SET1_CLEAR2 1 #dene PF_CST_CLEAR1_SET2 2 #dene PF_CST_SET1_SET2 3 #dene PF_CST_INCREMENT_PWM 4
4.161
592
#dene PF_CST_DECREMENT_PWM 5 #dene PF_CST_FULL_FWD 6 #dene PF_CST_FULL_REV 7 #dene PF_CST_TOGGLE_DIR 8 Detailed Description
4.161.1
Constants that are for specifying Power Function CST options. 4.161.2 4.161.2.1 Dene Documentation #dene PF_CST_CLEAR1_CLEAR2 0 Power function CST clear 1 and clear 2 4.161.2.2 #dene PF_CST_CLEAR1_SET2 2 Power function CST clear 1 and set 2 4.161.2.3 #dene PF_CST_DECREMENT_PWM 5 Power function CST decrement PWM 4.161.2.4 #dene PF_CST_FULL_FWD 6 Power function CST full forward 4.161.2.5 #dene PF_CST_FULL_REV 7 Power function CST full reverse 4.161.2.6 #dene PF_CST_INCREMENT_PWM 4 Power function CST increment PWM 4.161.2.7 #dene PF_CST_SET1_CLEAR2 1 Power function CST set 1 and clear 2
4.162
593
4.161.2.8
4.161.2.9
4.162
Constants that are for specifying Power Function PWM options. Denes #dene PF_PWM_FLOAT 0 #dene PF_PWM_FWD1 1 #dene PF_PWM_FWD2 2 #dene PF_PWM_FWD3 3 #dene PF_PWM_FWD4 4 #dene PF_PWM_FWD5 5 #dene PF_PWM_FWD6 6 #dene PF_PWM_FWD7 7 #dene PF_PWM_BRAKE 8 #dene PF_PWM_REV7 9 #dene PF_PWM_REV6 10 #dene PF_PWM_REV5 11 #dene PF_PWM_REV4 12 #dene PF_PWM_REV3 13 #dene PF_PWM_REV2 14 #dene PF_PWM_REV1 15 Detailed Description
4.162.1
Constants that are for specifying Power Function PWM options. 4.162.2 4.162.2.1 Dene Documentation #dene PF_PWM_BRAKE 8 Power function PWM brake
4.162
594
4.162.2.2
4.162.2.3
4.162.2.4
4.162.2.5
4.162.2.6
4.162.2.7
4.162.2.8
4.162.2.9
4.162.2.10
4.162.2.11
4.163
595
4.162.2.12
4.162.2.13
4.162.2.14
4.162.2.15
4.162.2.16
4.163
Constants that are for use with HiTechnic devices. Modules HiTechnic IRSeeker2 constants
Constants that are for use with the HiTechnic IRSeeker2 device.
4.163.1
Detailed Description
4.164
596
4.164
Constants that are for use with the HiTechnic IRSeeker2 device. Denes #dene HTIR2_MODE_1200 0 #dene HTIR2_MODE_600 1 #dene HTIR2_REG_MODE 0x41 #dene HTIR2_REG_DCDIR 0x42 #dene HTIR2_REG_DC01 0x43 #dene HTIR2_REG_DC02 0x44 #dene HTIR2_REG_DC03 0x45 #dene HTIR2_REG_DC04 0x46 #dene HTIR2_REG_DC05 0x47 #dene HTIR2_REG_DCAVG 0x48 #dene HTIR2_REG_ACDIR 0x49 #dene HTIR2_REG_AC01 0x4A #dene HTIR2_REG_AC02 0x4B #dene HTIR2_REG_AC03 0x4C #dene HTIR2_REG_AC04 0x4D #dene HTIR2_REG_AC05 0x4E Detailed Description
4.164.1
Constants that are for use with the HiTechnic IRSeeker2 device. 4.164.2 4.164.2.1 Dene Documentation #dene HTIR2_MODE_1200 0 Set IRSeeker2 to 1200 mode 4.164.2.2 #dene HTIR2_MODE_600 1 Set IRSeeker2 to 600 mode 4.164.2.3 #dene HTIR2_REG_AC01 0x4A IRSeeker 2 AC 01 register
4.164
597
4.164.2.4
4.164.2.5
4.164.2.6
4.164.2.7
4.164.2.8
4.164.2.9
4.164.2.10
4.164.2.11
4.164.2.12
4.164.2.13
4.165
598
4.164.2.14
4.164.2.15
4.164.2.16
4.165
Constants that are for use with the HiTechnic IRReceiver device. Denes #dene HT_CH1_A 0 #dene HT_CH1_B 1 #dene HT_CH2_A 2 #dene HT_CH2_B 3 #dene HT_CH3_A 4 #dene HT_CH3_B 5 #dene HT_CH4_A 6 #dene HT_CH4_B 7 Detailed Description
4.165.1
Constants that are for use with the HiTechnic IRReceiver device. 4.165.2 4.165.2.1 Dene Documentation #dene HT_CH1_A 0 Use IRReceiver channel 1 output A 4.165.2.2 #dene HT_CH1_B 1 Use IRReceiver channel 1 output B
4.166
599
4.165.2.3
4.165.2.4
4.165.2.5
4.165.2.6
4.165.2.7
4.165.2.8
4.166
Constants that are for use with the HiTechnic Color2 device. Denes #dene HT_CMD_COLOR2_ACTIVE 0x00 #dene HT_CMD_COLOR2_PASSIVE 0x01 #dene HT_CMD_COLOR2_RAW 0x03 #dene HT_CMD_COLOR2_50HZ 0x35 #dene HT_CMD_COLOR2_60HZ 0x36 #dene HT_CMD_COLOR2_BLCAL 0x42 #dene HT_CMD_COLOR2_WBCAL 0x43 #dene HT_CMD_COLOR2_FAR 0x46 #dene HT_CMD_COLOR2_LED_HI 0x48 #dene HT_CMD_COLOR2_LED_LOW 0x4C #dene HT_CMD_COLOR2_NEAR 0x4E
4.166
600
4.166.1
Detailed Description
Constants that are for use with the HiTechnic Color2 device. 4.166.2 4.166.2.1 Dene Documentation #dene HT_CMD_COLOR2_50HZ 0x35 Set the Color2 sensor to 50Hz mode 4.166.2.2 #dene HT_CMD_COLOR2_60HZ 0x36 Set the Color2 sensor to 60Hz mode 4.166.2.3 #dene HT_CMD_COLOR2_ACTIVE 0x00 Set the Color2 sensor to active mode 4.166.2.4 #dene HT_CMD_COLOR2_BLCAL 0x42 Set the Color2 sensor to black level calibration mode 4.166.2.5 #dene HT_CMD_COLOR2_FAR 0x46 Set the Color2 sensor to far mode 4.166.2.6 #dene HT_CMD_COLOR2_LED_HI 0x48 Set the Color2 sensor to LED high mode 4.166.2.7 #dene HT_CMD_COLOR2_LED_LOW 0x4C Set the Color2 sensor to LED low mode 4.166.2.8 #dene HT_CMD_COLOR2_NEAR 0x4E Set the Color2 sensor to near mode
4.167
601
4.166.2.9
4.166.2.10
4.166.2.11
#dene HT_CMD_COLOR2_WBCAL 0x43 Set the Color2 sensor to white level calibration mode
4.167
Constants that are for use with MindSensors devices. Modules MindSensors DIST-Nx constants
Constants that are for use with the MindSensors DIST-Nx device.
Denes #dene MS_CMD_ENERGIZED 0x45 #dene MS_CMD_DEENERGIZED 0x44 #dene MS_CMD_ADPA_ON 0x4E #dene MS_CMD_ADPA_OFF 0x4F Detailed Description
4.167.1
4.168
602
4.167.2 4.167.2.1
Dene Documentation #dene MS_CMD_ADPA_OFF 0x4F Turn MindSensors ADPA mode off
4.167.2.2
4.167.2.3
4.167.2.4
4.168
Constants that are for use with the MindSensors DIST-Nx device. Denes #dene DIST_CMD_GP2D12 0x31 #dene DIST_CMD_GP2D120 0x32 #dene DIST_CMD_GP2YA21 0x33 #dene DIST_CMD_GP2YA02 0x34 #dene DIST_CMD_CUSTOM 0x35 #dene DIST_REG_DIST 0x42 #dene DIST_REG_VOLT 0x44 #dene DIST_REG_MODULE_TYPE 0x50 #dene DIST_REG_NUM_POINTS 0x51 #dene DIST_REG_DIST_MIN 0x52 #dene DIST_REG_DIST_MAX 0x54 #dene DIST_REG_VOLT1 0x56 #dene DIST_REG_DIST1 0x58 Detailed Description
4.168.1
Constants that are for use with the MindSensors DIST-Nx device.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.168
603
4.168.2 4.168.2.1
Dene Documentation #dene DIST_CMD_CUSTOM 0x35 Set the DIST-Nx to a custom mode
4.168.2.2
4.168.2.3
4.168.2.4
4.168.2.5
4.168.2.6
4.168.2.7
4.168.2.8
4.168.2.9
4.169
604
4.168.2.10
4.168.2.11
4.168.2.12
4.168.2.13
4.169
Constants that are for use with the MindSensors PSP-Nx device. Modules MindSensors PSP-Nx button set 1 constants
Constants that are for interpretting MindSensors PSP-Nx button set 1 values.
Denes #dene PSP_CMD_DIGITAL 0x41 #dene PSP_CMD_ANALOG 0x73 #dene PSP_REG_BTNSET1 0x42 #dene PSP_REG_BTNSET2 0x43 #dene PSP_REG_XLEFT 0x44 #dene PSP_REG_YLEFT 0x45 #dene PSP_REG_XRIGHT 0x46 #dene PSP_REG_YRIGHT 0x47
4.169
605
4.169.1
Detailed Description
Constants that are for use with the MindSensors PSP-Nx device. 4.169.2 4.169.2.1 Dene Documentation #dene PSP_CMD_ANALOG 0x73 Set the PSP-Nx to analog mode 4.169.2.2 #dene PSP_CMD_DIGITAL 0x41 Set the PSP-Nx to digital mode 4.169.2.3 #dene PSP_REG_BTNSET1 0x42 The PSP-Nx button set 1 register 4.169.2.4 #dene PSP_REG_BTNSET2 0x43 The PSP-Nx button set 2 register 4.169.2.5 #dene PSP_REG_XLEFT 0x44 The PSP-Nx X left register 4.169.2.6 #dene PSP_REG_XRIGHT 0x46 The PSP-Nx X right register 4.169.2.7 #dene PSP_REG_YLEFT 0x45 The PSP-Nx Y left register 4.169.2.8 #dene PSP_REG_YRIGHT 0x47 The PSP-Nx Y right register
4.170
606
4.170
Constants that are for interpretting MindSensors PSP-Nx button set 1 values. Denes #dene PSP_BTNSET1_LEFT 0x01 #dene PSP_BTNSET1_DOWN 0x02 #dene PSP_BTNSET1_RIGHT 0x04 #dene PSP_BTNSET1_UP 0x08 #dene PSP_BTNSET1_R3 0x20 #dene PSP_BTNSET1_L3 0x40 Detailed Description
4.170.1
Constants that are for interpretting MindSensors PSP-Nx button set 1 values. 4.170.2 4.170.2.1 Dene Documentation #dene PSP_BTNSET1_DOWN 0x02 The PSP-Nx button set 1 down arrow 4.170.2.2 #dene PSP_BTNSET1_L3 0x40 The PSP-Nx button set 1 L3 4.170.2.3 #dene PSP_BTNSET1_LEFT 0x01 The PSP-Nx button set 1 left arrow 4.170.2.4 #dene PSP_BTNSET1_R3 0x20 The PSP-Nx button set 1 R3 4.170.2.5 #dene PSP_BTNSET1_RIGHT 0x04 The PSP-Nx button set 1 right arrow
4.171
607
4.170.2.6
4.171
Constants that are for interpretting MindSensors PSP-Nx button set 2 values. Denes #dene PSP_BTNSET2_SQUARE 0x01 #dene PSP_BTNSET2_CROSS 0x02 #dene PSP_BTNSET2_CIRCLE 0x04 #dene PSP_BTNSET2_TRIANGLE 0x08 #dene PSP_BTNSET2_R1 0x10 #dene PSP_BTNSET2_L1 0x20 #dene PSP_BTNSET2_R2 0x40 #dene PSP_BTNSET2_L2 0x80 Detailed Description
4.171.1
Constants that are for interpretting MindSensors PSP-Nx button set 2 values. 4.171.2 4.171.2.1 Dene Documentation #dene PSP_BTNSET2_CIRCLE 0x04 The PSP-Nx button set 2 circle 4.171.2.2 #dene PSP_BTNSET2_CROSS 0x02 The PSP-Nx button set 2 cross 4.171.2.3 #dene PSP_BTNSET2_L1 0x20 The PSP-Nx button set 2 L1 4.171.2.4 #dene PSP_BTNSET2_L2 0x80 The PSP-Nx button set 2 L2
4.172
608
4.171.2.5
4.171.2.6
4.171.2.7
4.171.2.8
4.172
Constants that are for use with the MindSensors nRLink device. Denes #dene NRLINK_CMD_2400 0x44 #dene NRLINK_CMD_FLUSH 0x46 #dene NRLINK_CMD_4800 0x48 #dene NRLINK_CMD_IR_LONG 0x4C #dene NRLINK_CMD_IR_SHORT 0x53 #dene NRLINK_CMD_RUN_MACRO 0x52 #dene NRLINK_CMD_TX_RAW 0x55 #dene NRLINK_CMD_SET_RCX 0x58 #dene NRLINK_CMD_SET_TRAIN 0x54 #dene NRLINK_CMD_SET_PF 0x50 #dene NRLINK_REG_BYTES 0x40 #dene NRLINK_REG_DATA 0x42 #dene NRLINK_REG_EEPROM 0x50 Detailed Description
4.172.1
Constants that are for use with the MindSensors nRLink device.
4.172
609
4.172.2 4.172.2.1
4.172.2.2
4.172.2.3
4.172.2.4
4.172.2.5
4.172.2.6
4.172.2.7
4.172.2.8
4.172.2.9
4.173
610
4.172.2.10
4.172.2.11
4.172.2.12
4.172.2.13
4.173
Constants that dene various data type limits. Denes #dene CHAR_BIT 8 #dene SCHAR_MIN -127 #dene SCHAR_MAX 127 #dene UCHAR_MAX 255 #dene CHAR_MIN -127 #dene CHAR_MAX 127 #dene SHRT_MIN -32767 #dene SHRT_MAX 32767 #dene USHRT_MAX 65535 #dene INT_MIN -32767 #dene INT_MAX 32767 #dene UINT_MAX 65535 #dene LONG_MIN -2147483647 #dene LONG_MAX 2147483647 #dene ULONG_MAX 4294967295 #dene RAND_MAX 32768
4.173
611
4.173.1
Detailed Description
Constants that dene various data type limits. 4.173.2 4.173.2.1 Dene Documentation #dene CHAR_BIT 8 The number of bits in the char type 4.173.2.2 #dene CHAR_MAX 127 The maximum value of the char type 4.173.2.3 #dene CHAR_MIN -127 The minimum value of the char type 4.173.2.4 #dene INT_MAX 32767 The maximum value of the int type 4.173.2.5 #dene INT_MIN -32767 The minimum value of the int type 4.173.2.6 #dene LONG_MAX 2147483647 The maximum value of the long type 4.173.2.7 #dene LONG_MIN -2147483647 The minimum value of the long type 4.173.2.8 #dene RAND_MAX 32768 The maximum unsigned int random number returned by rand
4.174
612
4.173.2.9
#dene SCHAR_MAX 127 The maximum value of the signed char type
4.173.2.10
#dene SCHAR_MIN -127 The minimum value of the signed char type
4.173.2.11
4.173.2.12
4.173.2.13
#dene UCHAR_MAX 255 The maximum value of the unsigned char type
4.173.2.14
#dene UINT_MAX 65535 The maximum value of the unsigned int type
4.173.2.15
#dene ULONG_MAX 4294967295 The maximum value of the unsigned long type
4.173.2.16
#dene USHRT_MAX 65535 The maximum value of the unsigned short type
4.174
Constants that are used to specify the polygon surface begin mode.
4.175
613
Denes #dene GL_POLYGON 1 #dene GL_LINE 2 #dene GL_POINT 3 #dene GL_CIRCLE 4 Detailed Description
4.174.1
Constants that are used to specify the polygon surface begin mode. 4.174.2 4.174.2.1 Dene Documentation #dene GL_CIRCLE 4 Use circle mode. 4.174.2.2 #dene GL_LINE 2 Use line mode. 4.174.2.3 #dene GL_POINT 3 Use point mode. 4.174.2.4 #dene GL_POLYGON 1 Use polygon mode.
4.175
Constants that are used to specify a graphics library action. Denes #dene GL_TRANSLATE_X 1 #dene GL_TRANSLATE_Y 2 #dene GL_TRANSLATE_Z 3 #dene GL_ROTATE_X 4 #dene GL_ROTATE_Y 5
4.175
614
#dene GL_ROTATE_Z 6 #dene GL_SCALE_X 7 #dene GL_SCALE_Y 8 #dene GL_SCALE_Z 9 Detailed Description
4.175.1
Constants that are used to specify a graphics library action. 4.175.2 4.175.2.1 Dene Documentation #dene GL_ROTATE_X 4 Rotate around the X axis. 4.175.2.2 #dene GL_ROTATE_Y 5 Rotate around the Y axis. 4.175.2.3 #dene GL_ROTATE_Z 6 Rotate around the Z axis. 4.175.2.4 #dene GL_SCALE_X 7 Scale along the X axis. 4.175.2.5 #dene GL_SCALE_Y 8 Scale along the Y axis. 4.175.2.6 #dene GL_SCALE_Z 9 Scale along the Z axis. 4.175.2.7 #dene GL_TRANSLATE_X 1 Translate along the X axis.
4.176
615
4.175.2.8
4.175.2.9
4.176
Constants that are used to congure the graphics library settings. Denes #dene GL_CIRCLE_SIZE 1 #dene GL_CULL_MODE 2 #dene GL_CAMERA_DEPTH 3 #dene GL_ZOOM_FACTOR 4 Detailed Description
4.176.1
Constants that are used to congure the graphics library settings. 4.176.2 4.176.2.1 Dene Documentation #dene GL_CAMERA_DEPTH 3 Set the camera depth. 4.176.2.2 #dene GL_CIRCLE_SIZE 1 Set the circle size. 4.176.2.3 #dene GL_CULL_MODE 2 Set the cull mode. 4.176.2.4 #dene GL_ZOOM_FACTOR 4 Set the zoom factor.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
4.177
616
4.177
Constants to use when setting the graphics library cull mode. Denes #dene GL_CULL_BACK 2 #dene GL_CULL_FRONT 3 #dene GL_CULL_NONE 4 4.177.1 Detailed Description
Constants to use when setting the graphics library cull mode. 4.177.2 4.177.2.1 Dene Documentation #dene GL_CULL_BACK 2 Cull lines in back. 4.177.2.2 #dene GL_CULL_FRONT 3 Cull lines in front. 4.177.2.3 #dene GL_CULL_NONE 4 Do not cull any lines.
5
5.1
File Documentation
NBCAPIDocs.h File Reference
Additional documentation for the NBC API. #include "NXTDefs.h" 5.1.1 Detailed Description
Additional documentation for the NBC API. NBCAPIDocs.h contains additional documentation for the NBC API License:
5.2
617
The contents of this le are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this le 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 specic 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-2010 John Hansen. All Rights Reserved. ---------------------------------------------------------------------------Author: John Hansen (bricxcc_at_comcast.net) Date: 2010-06-28 Version: 3
5.2
Constants and macros common to both NBC and NXC. Denes #dene TRUE 1 #dene FALSE 0 #dene NA 0xFFFF #dene OPARR_SUM 0x00 #dene OPARR_MEAN 0x01 #dene OPARR_SUMSQR 0x02 #dene OPARR_STD 0x03 #dene OPARR_MIN 0x04 #dene OPARR_MAX 0x05 #dene OPARR_SORT 0x06 #dene PI 3.141593 #dene RADIANS_PER_DEGREE PI/180 #dene DEGREES_PER_RADIAN 180/PI #dene FileOpenRead 0 #dene FileOpenWrite 1
5.2
618
#dene FileOpenAppend 2 #dene FileRead 3 #dene FileWrite 4 #dene FileClose 5 #dene FileResolveHandle 6 #dene FileRename 7 #dene FileDelete 8 #dene SoundPlayFile 9 #dene SoundPlayTone 10 #dene SoundGetState 11 #dene SoundSetState 12 #dene DrawText 13 #dene DrawPoint 14 #dene DrawLine 15 #dene DrawCircle 16 #dene DrawRect 17 #dene DrawGraphic 18 #dene SetScreenMode 19 #dene ReadButton 20 #dene CommLSWrite 21 #dene CommLSRead 22 #dene CommLSCheckStatus 23 #dene RandomNumber 24 #dene GetStartTick 25 #dene MessageWrite 26 #dene MessageRead 27 #dene CommBTCheckStatus 28 #dene CommBTWrite 29 #dene CommBTRead 30 #dene KeepAlive 31 #dene IOMapRead 32 #dene IOMapWrite 33 #dene ColorSensorRead 34 #dene CommBTOnOff 35 #dene CommBTConnection 36 #dene CommHSWrite 37 #dene CommHSRead 38 #dene CommHSCheckStatus 39 #dene ReadSemData 40 #dene WriteSemData 41 #dene ComputeCalibValue 42 #dene UpdateCalibCacheInfo 43 #dene DatalogWrite 44
5.2
619
#dene DatalogGetTimes 45 #dene SetSleepTimeoutVal 46 #dene ListFiles 47 #dene IOMapReadByID 78 #dene IOMapWriteByID 79 #dene DisplayExecuteFunction 80 #dene CommExecuteFunction 81 #dene LoaderExecuteFunction 82 #dene FileFindFirst 83 #dene FileFindNext 84 #dene FileOpenWriteLinear 85 #dene FileOpenWriteNonLinear 86 #dene FileOpenReadLinear 87 #dene CommHSControl 88 #dene CommLSWriteEx 89 #dene FileSeek 90 #dene FileResize 91 #dene DrawGraphicArray 92 #dene DrawPolygon 93 #dene DrawEllipse 94 #dene DrawFont 95 #dene LCD_LINE8 0 #dene LCD_LINE7 8 #dene LCD_LINE6 16 #dene LCD_LINE5 24 #dene LCD_LINE4 32 #dene LCD_LINE3 40 #dene LCD_LINE2 48 #dene LCD_LINE1 56 #dene MS_1 1 #dene MS_2 2 #dene MS_3 3 #dene MS_4 4 #dene MS_5 5 #dene MS_6 6 #dene MS_7 7 #dene MS_8 8 #dene MS_9 9 #dene MS_10 10 #dene MS_20 20 #dene MS_30 30 #dene MS_40 40 #dene MS_50 50
5.2
620
#dene MS_60 60 #dene MS_70 70 #dene MS_80 80 #dene MS_90 90 #dene MS_100 100 #dene MS_150 150 #dene MS_200 200 #dene MS_250 250 #dene MS_300 300 #dene MS_350 350 #dene MS_400 400 #dene MS_450 450 #dene MS_500 500 #dene MS_600 600 #dene MS_700 700 #dene MS_800 800 #dene MS_900 900 #dene SEC_1 1000 #dene SEC_2 2000 #dene SEC_3 3000 #dene SEC_4 4000 #dene SEC_5 5000 #dene SEC_6 6000 #dene SEC_7 7000 #dene SEC_8 8000 #dene SEC_9 9000 #dene SEC_10 10000 #dene SEC_15 15000 #dene SEC_20 20000 #dene SEC_30 30000 #dene MIN_1 60000 #dene MAILBOX1 0 #dene MAILBOX2 1 #dene MAILBOX3 2 #dene MAILBOX4 3 #dene MAILBOX5 4 #dene MAILBOX6 5 #dene MAILBOX7 6 #dene MAILBOX8 7 #dene MAILBOX9 8 #dene MAILBOX10 9 #dene CommandModuleName "Command.mod" #dene IOCtrlModuleName "IOCtrl.mod"
5.2
621
#dene LoaderModuleName "Loader.mod" #dene SoundModuleName "Sound.mod" #dene ButtonModuleName "Button.mod" #dene UIModuleName "Ui.mod" #dene InputModuleName "Input.mod" #dene OutputModuleName "Output.mod" #dene LowSpeedModuleName "Low Speed.mod" #dene DisplayModuleName "Display.mod" #dene CommModuleName "Comm.mod" #dene CommandModuleID 0x00010001 #dene IOCtrlModuleID 0x00060001 #dene LoaderModuleID 0x00090001 #dene SoundModuleID 0x00080001 #dene ButtonModuleID 0x00040001 #dene UIModuleID 0x000C0001 #dene InputModuleID 0x00030001 #dene OutputModuleID 0x00020001 #dene LowSpeedModuleID 0x000B0001 #dene DisplayModuleID 0x000A0001 #dene CommModuleID 0x00050001 #dene STAT_MSG_EMPTY_MAILBOX 64 #dene STAT_COMM_PENDING 32 #dene TIMES_UP 6 #dene ROTATE_QUEUE 5 #dene STOP_REQ 4 #dene BREAKOUT_REQ 3 #dene CLUMP_SUSPEND 2 #dene CLUMP_DONE 1 #dene NO_ERR 0 #dene ERR_ARG -1 #dene ERR_INSTR -2 #dene ERR_FILE -3 #dene ERR_VER -4 #dene ERR_MEM -5 #dene ERR_BAD_PTR -6 #dene ERR_CLUMP_COUNT -7 #dene ERR_NO_CODE -8 #dene ERR_INSANE_OFFSET -9 #dene ERR_BAD_POOL_SIZE -10 #dene ERR_LOADER_ERR -11 #dene ERR_SPOTCHECK_FAIL -12 #dene ERR_NO_ACTIVE_CLUMP -13 #dene ERR_DEFAULT_OFFSETS -14
5.2
622
#dene ERR_MEMMGR_FAIL -15 #dene ERR_NON_FATAL -16 #dene ERR_INVALID_PORT -16 #dene ERR_INVALID_FIELD -17 #dene ERR_INVALID_QUEUE -18 #dene ERR_INVALID_SIZE -19 #dene ERR_NO_PROG -20 #dene ERR_COMM_CHAN_NOT_READY -32 #dene ERR_COMM_CHAN_INVALID -33 #dene ERR_COMM_BUFFER_FULL -34 #dene ERR_COMM_BUS_ERR -35 #dene ERR_RC_ILLEGAL_VAL -64 #dene ERR_RC_BAD_PACKET -65 #dene ERR_RC_UNKNOWN_CMD -66 #dene ERR_RC_FAILED -67 #dene PROG_IDLE 0 #dene PROG_OK 1 #dene PROG_RUNNING 2 #dene PROG_ERROR 3 #dene PROG_ABORT 4 #dene PROG_RESET 5 #dene CommandOffsetFormatString 0 #dene CommandOffsetPRCHandler 16 #dene CommandOffsetTick 20 #dene CommandOffsetOffsetDS 24 #dene CommandOffsetOffsetDVA 26 #dene CommandOffsetProgStatus 28 #dene CommandOffsetAwake 29 #dene CommandOffsetActivateFlag 30 #dene CommandOffsetDeactivateFlag 31 #dene CommandOffsetFileName 32 #dene CommandOffsetMemoryPool 52 #dene CommandOffsetSyncTime 32820 #dene CommandOffsetSyncTick 32824 #dene IOCTRL_POWERDOWN 0x5A00 #dene IOCTRL_BOOT 0xA55A #dene IOCtrlOffsetPowerOn 0 #dene LoaderOffsetPFunc 0 #dene LoaderOffsetFreeUserFlash 4 #dene EOF -1 #dene NULL 0 #dene LDR_SUCCESS 0x0000 #dene LDR_INPROGRESS 0x0001
5.2
623
#dene LDR_REQPIN 0x0002 #dene LDR_NOMOREHANDLES 0x8100 #dene LDR_NOSPACE 0x8200 #dene LDR_NOMOREFILES 0x8300 #dene LDR_EOFEXPECTED 0x8400 #dene LDR_ENDOFFILE 0x8500 #dene LDR_NOTLINEARFILE 0x8600 #dene LDR_FILENOTFOUND 0x8700 #dene LDR_HANDLEALREADYCLOSED 0x8800 #dene LDR_NOLINEARSPACE 0x8900 #dene LDR_UNDEFINEDERROR 0x8A00 #dene LDR_FILEISBUSY 0x8B00 #dene LDR_NOWRITEBUFFERS 0x8C00 #dene LDR_APPENDNOTPOSSIBLE 0x8D00 #dene LDR_FILEISFULL 0x8E00 #dene LDR_FILEEXISTS 0x8F00 #dene LDR_MODULENOTFOUND 0x9000 #dene LDR_OUTOFBOUNDARY 0x9100 #dene LDR_ILLEGALFILENAME 0x9200 #dene LDR_ILLEGALHANDLE 0x9300 #dene LDR_BTBUSY 0x9400 #dene LDR_BTCONNECTFAIL 0x9500 #dene LDR_BTTIMEOUT 0x9600 #dene LDR_FILETX_TIMEOUT 0x9700 #dene LDR_FILETX_DSTEXISTS 0x9800 #dene LDR_FILETX_SRCMISSING 0x9900 #dene LDR_FILETX_STREAMERROR 0x9A00 #dene LDR_FILETX_CLOSEERROR 0x9B00 #dene LDR_INVALIDSEEK 0x9C00 #dene LDR_CMD_OPENREAD 0x80 #dene LDR_CMD_OPENWRITE 0x81 #dene LDR_CMD_READ 0x82 #dene LDR_CMD_WRITE 0x83 #dene LDR_CMD_CLOSE 0x84 #dene LDR_CMD_DELETE 0x85 #dene LDR_CMD_FINDFIRST 0x86 #dene LDR_CMD_FINDNEXT 0x87 #dene LDR_CMD_VERSIONS 0x88 #dene LDR_CMD_OPENWRITELINEAR 0x89 #dene LDR_CMD_OPENREADLINEAR 0x8A #dene LDR_CMD_OPENWRITEDATA 0x8B #dene LDR_CMD_OPENAPPENDDATA 0x8C #dene LDR_CMD_CROPDATAFILE 0x8D
5.2
624
#dene LDR_CMD_FINDFIRSTMODULE 0x90 #dene LDR_CMD_FINDNEXTMODULE 0x91 #dene LDR_CMD_CLOSEMODHANDLE 0x92 #dene LDR_CMD_IOMAPREAD 0x94 #dene LDR_CMD_IOMAPWRITE 0x95 #dene LDR_CMD_BOOTCMD 0x97 #dene LDR_CMD_SETBRICKNAME 0x98 #dene LDR_CMD_BTGETADR 0x9A #dene LDR_CMD_DEVICEINFO 0x9B #dene LDR_CMD_DELETEUSERFLASH 0xA0 #dene LDR_CMD_POLLCMDLEN 0xA1 #dene LDR_CMD_POLLCMD 0xA2 #dene LDR_CMD_RENAMEFILE 0xA3 #dene LDR_CMD_BTFACTORYRESET 0xA4 #dene LDR_CMD_RESIZEDATAFILE 0xD0 #dene LDR_CMD_SEEKFROMSTART 0xD1 #dene LDR_CMD_SEEKFROMCURRENT 0xD2 #dene LDR_CMD_SEEKFROMEND 0xD3 #dene SOUND_FLAGS_IDLE 0x00 #dene SOUND_FLAGS_UPDATE 0x01 #dene SOUND_FLAGS_RUNNING 0x02 #dene SOUND_STATE_IDLE 0x00 #dene SOUND_STATE_FILE 0x02 #dene SOUND_STATE_TONE 0x03 #dene SOUND_STATE_STOP 0x04 #dene SOUND_MODE_ONCE 0x00 #dene SOUND_MODE_LOOP 0x01 #dene SOUND_MODE_TONE 0x02 #dene SoundOffsetFreq 0 #dene SoundOffsetDuration 2 #dene SoundOffsetSampleRate 4 #dene SoundOffsetSoundFilename 6 #dene SoundOffsetFlags 26 #dene SoundOffsetState 27 #dene SoundOffsetMode 28 #dene SoundOffsetVolume 29 #dene FREQUENCY_MIN 220 #dene FREQUENCY_MAX 14080 #dene SAMPLERATE_MIN 2000 #dene SAMPLERATE_DEFAULT 8000 #dene SAMPLERATE_MAX 16000 #dene TONE_A3 220 #dene TONE_AS3 233
5.2
625
#dene TONE_B3 247 #dene TONE_C4 262 #dene TONE_CS4 277 #dene TONE_D4 294 #dene TONE_DS4 311 #dene TONE_E4 330 #dene TONE_F4 349 #dene TONE_FS4 370 #dene TONE_G4 392 #dene TONE_GS4 415 #dene TONE_A4 440 #dene TONE_AS4 466 #dene TONE_B4 494 #dene TONE_C5 523 #dene TONE_CS5 554 #dene TONE_D5 587 #dene TONE_DS5 622 #dene TONE_E5 659 #dene TONE_F5 698 #dene TONE_FS5 740 #dene TONE_G5 784 #dene TONE_GS5 831 #dene TONE_A5 880 #dene TONE_AS5 932 #dene TONE_B5 988 #dene TONE_C6 1047 #dene TONE_CS6 1109 #dene TONE_D6 1175 #dene TONE_DS6 1245 #dene TONE_E6 1319 #dene TONE_F6 1397 #dene TONE_FS6 1480 #dene TONE_G6 1568 #dene TONE_GS6 1661 #dene TONE_A6 1760 #dene TONE_AS6 1865 #dene TONE_B6 1976 #dene TONE_C7 2093 #dene TONE_CS7 2217 #dene TONE_D7 2349 #dene TONE_DS7 2489 #dene TONE_E7 2637 #dene TONE_F7 2794
5.2
626
#dene TONE_FS7 2960 #dene TONE_G7 3136 #dene TONE_GS7 3322 #dene TONE_A7 3520 #dene TONE_AS7 3729 #dene TONE_B7 3951 #dene BTN1 0 #dene BTN2 1 #dene BTN3 2 #dene BTN4 3 #dene BTNEXIT BTN1 #dene BTNRIGHT BTN2 #dene BTNLEFT BTN3 #dene BTNCENTER BTN4 #dene NO_OF_BTNS 4 #dene BTNSTATE_PRESSED_EV 0x01 #dene BTNSTATE_SHORT_RELEASED_EV 0x02 #dene BTNSTATE_LONG_PRESSED_EV 0x04 #dene BTNSTATE_LONG_RELEASED_EV 0x08 #dene BTNSTATE_PRESSED_STATE 0x80 #dene BTNSTATE_NONE 0x10 #dene ButtonOffsetPressedCnt(b) (((b)8)+0) #dene ButtonOffsetLongPressCnt(b) (((b)8)+1) #dene ButtonOffsetShortRelCnt(b) (((b)8)+2) #dene ButtonOffsetLongRelCnt(b) (((b)8)+3) #dene ButtonOffsetRelCnt(b) (((b)8)+4) #dene ButtonOffsetState(b) ((b)+32) #dene UI_FLAGS_UPDATE 0x01 #dene UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER 0x02 #dene UI_FLAGS_DISABLE_EXIT 0x04 #dene UI_FLAGS_REDRAW_STATUS 0x08 #dene UI_FLAGS_RESET_SLEEP_TIMER 0x10 #dene UI_FLAGS_EXECUTE_LMS_FILE 0x20 #dene UI_FLAGS_BUSY 0x40 #dene UI_FLAGS_ENABLE_STATUS_UPDATE 0x80 #dene UI_STATE_INIT_DISPLAY 0 #dene UI_STATE_INIT_LOW_BATTERY 1 #dene UI_STATE_INIT_INTRO 2 #dene UI_STATE_INIT_WAIT 3 #dene UI_STATE_INIT_MENU 4 #dene UI_STATE_NEXT_MENU 5 #dene UI_STATE_DRAW_MENU 6 #dene UI_STATE_TEST_BUTTONS 7
5.2
627
#dene UI_STATE_LEFT_PRESSED 8 #dene UI_STATE_RIGHT_PRESSED 9 #dene UI_STATE_ENTER_PRESSED 10 #dene UI_STATE_EXIT_PRESSED 11 #dene UI_STATE_CONNECT_REQUEST 12 #dene UI_STATE_EXECUTE_FILE 13 #dene UI_STATE_EXECUTING_FILE 14 #dene UI_STATE_LOW_BATTERY 15 #dene UI_STATE_BT_ERROR 16 #dene UI_BUTTON_NONE 0 #dene UI_BUTTON_LEFT 1 #dene UI_BUTTON_ENTER 2 #dene UI_BUTTON_RIGHT 3 #dene UI_BUTTON_EXIT 4 #dene UI_BT_STATE_VISIBLE 0x01 #dene UI_BT_STATE_CONNECTED 0x02 #dene UI_BT_STATE_OFF 0x04 #dene UI_BT_ERROR_ATTENTION 0x08 #dene UI_BT_CONNECT_REQUEST 0x40 #dene UI_BT_PIN_REQUEST 0x80 #dene UI_VM_IDLE 0 #dene UI_VM_RUN_FREE 1 #dene UI_VM_RUN_SINGLE 2 #dene UI_VM_RUN_PAUSE 3 #dene UI_VM_RESET1 4 #dene UI_VM_RESET2 5 #dene UIOffsetPMenu 0 #dene UIOffsetBatteryVoltage 4 #dene UIOffsetLMSlename 6 #dene UIOffsetFlags 26 #dene UIOffsetState 27 #dene UIOffsetButton 28 #dene UIOffsetRunState 29 #dene UIOffsetBatteryState 30 #dene UIOffsetBluetoothState 31 #dene UIOffsetUsbState 32 #dene UIOffsetSleepTimeout 33 #dene UIOffsetSleepTimer 34 #dene UIOffsetRechargeable 35 #dene UIOffsetVolume 36 #dene UIOffsetError 37 #dene UIOffsetOBPPointer 38 #dene UIOffsetForceOff 39
5.2
628
#dene UIOffsetAbortFlag 40 #dene IN_1 0x00 #dene IN_2 0x01 #dene IN_3 0x02 #dene IN_4 0x03 #dene IN_TYPE_NO_SENSOR 0x00 #dene IN_TYPE_SWITCH 0x01 #dene IN_TYPE_TEMPERATURE 0x02 #dene IN_TYPE_REFLECTION 0x03 #dene IN_TYPE_ANGLE 0x04 #dene IN_TYPE_LIGHT_ACTIVE 0x05 #dene IN_TYPE_LIGHT_INACTIVE 0x06 #dene IN_TYPE_SOUND_DB 0x07 #dene IN_TYPE_SOUND_DBA 0x08 #dene IN_TYPE_CUSTOM 0x09 #dene IN_TYPE_LOWSPEED 0x0A #dene IN_TYPE_LOWSPEED_9V 0x0B #dene IN_TYPE_HISPEED 0x0C #dene IN_TYPE_COLORFULL 0x0D #dene IN_TYPE_COLORRED 0x0E #dene IN_TYPE_COLORGREEN 0x0F #dene IN_TYPE_COLORBLUE 0x10 #dene IN_TYPE_COLORNONE 0x11 #dene IN_TYPE_COLOREXIT 0x12 #dene IN_MODE_RAW 0x00 #dene IN_MODE_BOOLEAN 0x20 #dene IN_MODE_TRANSITIONCNT 0x40 #dene IN_MODE_PERIODCOUNTER 0x60 #dene IN_MODE_PCTFULLSCALE 0x80 #dene IN_MODE_CELSIUS 0xA0 #dene IN_MODE_FAHRENHEIT 0xC0 #dene IN_MODE_ANGLESTEP 0xE0 #dene IN_MODE_SLOPEMASK 0x1F #dene IN_MODE_MODEMASK 0xE0 #dene Type 0 #dene InputMode 1 #dene RawValue 2 #dene NormalizedValue 3 #dene ScaledValue 4 #dene InvalidData 5 #dene INPUT_DIGI0 1 #dene INPUT_DIGI1 2 #dene INPUT_CUSTOMINACTIVE 0x00
5.2
629
#dene INPUT_CUSTOM9V 0x01 #dene INPUT_CUSTOMACTIVE 0x02 #dene INPUT_INVALID_DATA 0x01 #dene INPUT_RED 0 #dene INPUT_GREEN 1 #dene INPUT_BLUE 2 #dene INPUT_BLANK 3 #dene INPUT_NO_OF_COLORS 4 #dene INPUT_BLACKCOLOR 1 #dene INPUT_BLUECOLOR 2 #dene INPUT_GREENCOLOR 3 #dene INPUT_YELLOWCOLOR 4 #dene INPUT_REDCOLOR 5 #dene INPUT_WHITECOLOR 6 #dene INPUT_SENSORCAL 0x01 #dene INPUT_SENSOROFF 0x02 #dene INPUT_RUNNINGCAL 0x20 #dene INPUT_STARTCAL 0x40 #dene INPUT_RESETCAL 0x80 #dene INPUT_CAL_POINT_0 0 #dene INPUT_CAL_POINT_1 1 #dene INPUT_CAL_POINT_2 2 #dene INPUT_NO_OF_POINTS 3 #dene InputOffsetCustomZeroOffset(p) (((p)20)+0) #dene InputOffsetADRaw(p) (((p)20)+2) #dene InputOffsetSensorRaw(p) (((p)20)+4) #dene InputOffsetSensorValue(p) (((p)20)+6) #dene InputOffsetSensorType(p) (((p)20)+8) #dene InputOffsetSensorMode(p) (((p)20)+9) #dene InputOffsetSensorBoolean(p) (((p)20)+10) #dene InputOffsetDigiPinsDir(p) (((p)20)+11) #dene InputOffsetDigiPinsIn(p) (((p)20)+12) #dene InputOffsetDigiPinsOut(p) (((p)20)+13) #dene InputOffsetCustomPctFullScale(p) (((p)20)+14) #dene InputOffsetCustomActiveStatus(p) (((p)20)+15) #dene InputOffsetInvalidData(p) (((p)20)+16) #dene InputOffsetColorCalibration(p, np, nc) (80+((p)84)+0+((np)16)+((nc)4)) #dene InputOffsetColorCalLimits(p, np) (80+((p)84)+48+((np)2)) #dene InputOffsetColorADRaw(p, nc) (80+((p)84)+52+((nc)2)) #dene InputOffsetColorSensorRaw(p, nc) (80+((p)84)+60+((nc)2)) #dene InputOffsetColorSensorValue(p, nc) (80+((p)84)+68+((nc)2)) #dene InputOffsetColorSensorBoolean(p, nc) (80+((p)84)+76+((nc)2)) #dene InputOffsetColorCalibrationState(p) (80+((p)84)+80)
5.2
630
#dene OUT_A 0x00 #dene OUT_B 0x01 #dene OUT_C 0x02 #dene OUT_AB 0x03 #dene OUT_AC 0x04 #dene OUT_BC 0x05 #dene OUT_ABC 0x06 #dene PID_0 0 #dene PID_1 32 #dene PID_2 64 #dene PID_3 96 #dene PID_4 128 #dene PID_5 160 #dene PID_6 192 #dene PID_7 224 #dene UF_UPDATE_MODE 0x01 #dene UF_UPDATE_SPEED 0x02 #dene UF_UPDATE_TACHO_LIMIT 0x04 #dene UF_UPDATE_RESET_COUNT 0x08 #dene UF_UPDATE_PID_VALUES 0x10 #dene UF_UPDATE_RESET_BLOCK_COUNT 0x20 #dene UF_UPDATE_RESET_ROTATION_COUNT 0x40 #dene UF_PENDING_UPDATES 0x80 #dene RESET_NONE 0x00 #dene RESET_COUNT 0x08 #dene RESET_BLOCK_COUNT 0x20 #dene RESET_ROTATION_COUNT 0x40 #dene RESET_BLOCKANDTACHO 0x28 #dene RESET_ALL 0x68 #dene OUT_MODE_COAST 0x00 #dene OUT_MODE_MOTORON 0x01 #dene OUT_MODE_BRAKE 0x02 #dene OUT_MODE_REGULATED 0x04 #dene OUT_MODE_REGMETHOD 0xF0 #dene OUT_OPTION_HOLDATLIMIT 0x10 #dene OUT_OPTION_RAMPDOWNTOLIMIT 0x20 #dene OUT_RUNSTATE_IDLE 0x00 #dene OUT_RUNSTATE_RAMPUP 0x10 #dene OUT_RUNSTATE_RUNNING 0x20 #dene OUT_RUNSTATE_RAMPDOWN 0x40 #dene OUT_RUNSTATE_HOLD 0x60 #dene OUT_REGMODE_IDLE 0 #dene OUT_REGMODE_SPEED 1
5.2
631
#dene OutputMode 1
Mode eld.
#dene Power 2
Power eld.
#dene ActualSpeed 3
Actual speed eld.
#dene TachoCount 4
Internal tachometer count eld.
#dene TachoLimit 5
Tachometer limit eld.
#dene RunState 6
Run state eld.
#dene TurnRatio 7
Turn ratio eld.
#dene RegMode 8
Regulation mode eld.
#dene Overload 9
Overload eld.
#dene RegPValue 10
Proportional eld.
#dene RegIValue 11
Integral eld.
#dene RegDValue 12
Derivative eld.
#dene BlockTachoCount 13
NXT-G block tachometer count eld.
5.2
632
#dene RotationCount 14
Rotation counter eld.
#dene OutputOptions 15
Options eld.
#dene OutputOffsetTachoCount(p) (((p)32)+0) #dene OutputOffsetBlockTachoCount(p) (((p)32)+4) #dene OutputOffsetRotationCount(p) (((p)32)+8) #dene OutputOffsetTachoLimit(p) (((p)32)+12) #dene OutputOffsetMotorRPM(p) (((p)32)+16) #dene OutputOffsetFlags(p) (((p)32)+18) #dene OutputOffsetMode(p) (((p)32)+19) #dene OutputOffsetSpeed(p) (((p)32)+20) #dene OutputOffsetActualSpeed(p) (((p)32)+21) #dene OutputOffsetRegPParameter(p) (((p)32)+22) #dene OutputOffsetRegIParameter(p) (((p)32)+23) #dene OutputOffsetRegDParameter(p) (((p)32)+24) #dene OutputOffsetRunState(p) (((p)32)+25) #dene OutputOffsetRegMode(p) (((p)32)+26) #dene OutputOffsetOverloaded(p) (((p)32)+27) #dene OutputOffsetSyncTurnParameter(p) (((p)32)+28) #dene OutputOffsetOptions(p) (((p)32)+29) #dene OutputOffsetPwnFreq 96 #dene COM_CHANNEL_NONE_ACTIVE 0x00 #dene COM_CHANNEL_ONE_ACTIVE 0x01 #dene COM_CHANNEL_TWO_ACTIVE 0x02 #dene COM_CHANNEL_THREE_ACTIVE 0x04 #dene COM_CHANNEL_FOUR_ACTIVE 0x08 #dene LOWSPEED_IDLE 0 #dene LOWSPEED_INIT 1 #dene LOWSPEED_LOAD_BUFFER 2 #dene LOWSPEED_COMMUNICATING 3 #dene LOWSPEED_ERROR 4 #dene LOWSPEED_DONE 5 #dene LOWSPEED_TRANSMITTING 1 #dene LOWSPEED_RECEIVING 2 #dene LOWSPEED_DATA_RECEIVED 3 #dene LOWSPEED_NO_ERROR 0 #dene LOWSPEED_CH_NOT_READY 1 #dene LOWSPEED_TX_ERROR 2 #dene LOWSPEED_RX_ERROR 3
5.2
633
#dene LowSpeedOffsetInBufBuf(p) (((p)19)+0) #dene LowSpeedOffsetInBufInPtr(p) (((p)19)+16) #dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) #dene LowSpeedOffsetInBufBytesToRx(p) (((p)19)+18) #dene LowSpeedOffsetOutBufBuf(p) (((p)19)+76) #dene LowSpeedOffsetOutBufInPtr(p) (((p)19)+92) #dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) #dene LowSpeedOffsetOutBufBytesToRx(p) (((p)19)+94) #dene LowSpeedOffsetMode(p) ((p)+152) #dene LowSpeedOffsetChannelState(p) ((p)+156) #dene LowSpeedOffsetErrorType(p) ((p)+160) #dene LowSpeedOffsetState 164 #dene LowSpeedOffsetSpeed 165 #dene LowSpeedOffsetNoRestartOnRead 166 #dene LSREAD_RESTART_ALL 0x00 #dene LSREAD_NO_RESTART_1 0x01 #dene LSREAD_NO_RESTART_2 0x02 #dene LSREAD_NO_RESTART_3 0x04 #dene LSREAD_NO_RESTART_4 0x08 #dene LSREAD_RESTART_NONE 0x0F #dene LSREAD_NO_RESTART_MASK 0x10 #dene I2C_REG_VERSION 0x00 #dene I2C_REG_VENDOR_ID 0x08 #dene I2C_REG_DEVICE_ID 0x10 #dene I2C_REG_CMD 0x41 #dene US_CMD_OFF 0x00 #dene US_CMD_SINGLESHOT 0x01 #dene US_CMD_CONTINUOUS 0x02 #dene US_CMD_EVENTCAPTURE 0x03 #dene US_CMD_WARMRESET 0x04 #dene US_REG_CM_INTERVAL 0x40 #dene US_REG_ACTUAL_ZERO 0x50 #dene US_REG_SCALE_FACTOR 0x51 #dene US_REG_SCALE_DIVISOR 0x52 #dene US_REG_FACTORY_ACTUAL_ZERO 0x11 #dene US_REG_FACTORY_SCALE_FACTOR 0x12 #dene US_REG_FACTORY_SCALE_DIVISOR 0x13 #dene US_REG_MEASUREMENT_UNITS 0x14 #dene TEMP_RES_12BIT 0x60 #dene TEMP_RES_11BIT 0x40 #dene TEMP_RES_10BIT 0x20 #dene TEMP_RES_9BIT 0x00 #dene TEMP_SD_CONTINUOUS 0x00
5.2
634
#dene TEMP_SD_SHUTDOWN 0x01 #dene TEMP_TM_COMPARATOR 0x00 #dene TEMP_TM_INTERRUPT 0x02 #dene TEMP_OS_ONESHOT 0x80 #dene TEMP_FQ_1 0x00 #dene TEMP_FQ_2 0x08 #dene TEMP_FQ_4 0x10 #dene TEMP_FQ_6 0x18 #dene TEMP_POL_LOW 0x00 #dene TEMP_POL_HIGH 0x04 #dene TEMP_I2C_ADDRESS 0x98 #dene TEMP_REG_TEMP 0x00 #dene TEMP_REG_CONFIG 0x01 #dene TEMP_REG_TLOW 0x02 #dene TEMP_REG_THIGH 0x03 #dene DISPLAY_ERASE_ALL 0x00 #dene DISPLAY_PIXEL 0x01 #dene DISPLAY_HORIZONTAL_LINE 0x02 #dene DISPLAY_VERTICAL_LINE 0x03 #dene DISPLAY_CHAR 0x04 #dene DISPLAY_ERASE_LINE 0x05 #dene DISPLAY_FILL_REGION 0x06 #dene DISPLAY_FRAME 0x07 #dene DRAW_OPT_NORMAL (0x0000) #dene DRAW_OPT_CLEAR_WHOLE_SCREEN (0x0001) #dene DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN (0x0002) #dene DRAW_OPT_CLEAR_PIXELS (0x0004) #dene DRAW_OPT_CLEAR (0x0004) #dene DRAW_OPT_INVERT (0x0004) #dene DRAW_OPT_LOGICAL_COPY (0x0000) #dene DRAW_OPT_LOGICAL_AND (0x0008) #dene DRAW_OPT_LOGICAL_OR (0x0010) #dene DRAW_OPT_LOGICAL_XOR (0x0018) #dene DRAW_OPT_FILL_SHAPE (0x0020) #dene DRAW_OPT_CLEAR_SCREEN_MODES (0x0003) #dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) #dene DRAW_OPT_POLYGON_POLYLINE (0x0400) #dene DRAW_OPT_FONT_DIRECTIONS (0x01C0) #dene DRAW_OPT_FONT_WRAP (0x0200) #dene DRAW_OPT_FONT_DIR_L2RB (0x0000) #dene DRAW_OPT_FONT_DIR_L2RT (0x0040) #dene DRAW_OPT_FONT_DIR_R2LB (0x0080) #dene DRAW_OPT_FONT_DIR_R2LT (0x00C0)
5.2
635
#dene DRAW_OPT_FONT_DIR_B2TL (0x0100) #dene DRAW_OPT_FONT_DIR_B2TR (0x0140) #dene DRAW_OPT_FONT_DIR_T2BL (0x0180) #dene DRAW_OPT_FONT_DIR_T2BR (0x01C0) #dene DISPLAY_ON 0x01 #dene DISPLAY_REFRESH 0x02 #dene DISPLAY_POPUP 0x08 #dene DISPLAY_REFRESH_DISABLED 0x40 #dene DISPLAY_BUSY 0x80 #dene DISPLAY_CONTRAST_DEFAULT 0x5A #dene DISPLAY_CONTRAST_MAX 0x7F #dene SCREEN_MODE_RESTORE 0x00 #dene SCREEN_MODE_CLEAR 0x01 #dene DISPLAY_HEIGHT 64 #dene DISPLAY_WIDTH 100 #dene DISPLAY_MENUICONS_Y 40 #dene DISPLAY_MENUICONS_X_OFFS 7 #dene DISPLAY_MENUICONS_X_DIFF 31 #dene TEXTLINE_1 0 #dene TEXTLINE_2 1 #dene TEXTLINE_3 2 #dene TEXTLINE_4 3 #dene TEXTLINE_5 4 #dene TEXTLINE_6 5 #dene TEXTLINE_7 6 #dene TEXTLINE_8 7 #dene TEXTLINES 8 #dene MENUICON_LEFT 0 #dene MENUICON_CENTER 1 #dene MENUICON_RIGHT 2 #dene MENUICONS 3 #dene FRAME_SELECT 0 #dene STATUSTEXT 1 #dene MENUTEXT 2 #dene STEPLINE 3 #dene TOPLINE 4 #dene SPECIALS 5 #dene STATUSICON_BLUETOOTH 0 #dene STATUSICON_USB 1 #dene STATUSICON_VM 2 #dene STATUSICON_BATTERY 3 #dene STATUSICONS 4 #dene SCREEN_BACKGROUND 0
5.2
636
#dene SCREEN_LARGE 1 #dene SCREEN_SMALL 2 #dene SCREENS 3 #dene BITMAP_1 0 #dene BITMAP_2 1 #dene BITMAP_3 2 #dene BITMAP_4 3 #dene BITMAPS 4 #dene STEPICON_1 0 #dene STEPICON_2 1 #dene STEPICON_3 2 #dene STEPICON_4 3 #dene STEPICON_5 4 #dene STEPICONS 5 #dene DisplayOffsetPFunc 0 #dene DisplayOffsetEraseMask 4 #dene DisplayOffsetUpdateMask 8 #dene DisplayOffsetPFont 12 #dene DisplayOffsetPTextLines(p) (((p)4)+16) #dene DisplayOffsetPStatusText 48 #dene DisplayOffsetPStatusIcons 52 #dene DisplayOffsetPScreens(p) (((p)4)+56) #dene DisplayOffsetPBitmaps(p) (((p)4)+68) #dene DisplayOffsetPMenuText 84 #dene DisplayOffsetPMenuIcons(p) (((p)4)+88) #dene DisplayOffsetPStepIcons 100 #dene DisplayOffsetDisplay 104 #dene DisplayOffsetStatusIcons(p) ((p)+108) #dene DisplayOffsetStepIcons(p) ((p)+112) #dene DisplayOffsetFlags 117 #dene DisplayOffsetTextLinesCenterFlags 118 #dene DisplayOffsetNormal(l, w) (((l)100)+(w)+119) #dene DisplayOffsetPopup(l, w) (((l)100)+(w)+919) #dene DisplayOffsetContrast 1719 #dene SIZE_OF_USBBUF 64 #dene USB_PROTOCOL_OVERHEAD 2 #dene SIZE_OF_USBDATA 62 #dene SIZE_OF_HSBUF 128 #dene SIZE_OF_BTBUF 128 #dene BT_CMD_BYTE 1 #dene SIZE_OF_BT_DEVICE_TABLE 30 #dene SIZE_OF_BT_CONNECT_TABLE 4 #dene SIZE_OF_BT_NAME 16
5.2
637
#dene SIZE_OF_BRICK_NAME 8 #dene SIZE_OF_CLASS_OF_DEVICE 4 #dene SIZE_OF_BT_PINCODE 16 #dene SIZE_OF_BDADDR 7 #dene MAX_BT_MSG_SIZE 60000 #dene BT_DEFAULT_INQUIRY_MAX 0 #dene BT_DEFAULT_INQUIRY_TIMEOUT_LO 15 #dene BT_ARM_OFF 0 #dene BT_ARM_CMD_MODE 1 #dene BT_ARM_DATA_MODE 2 #dene BT_BRICK_VISIBILITY 0x01 #dene BT_BRICK_PORT_OPEN 0x02 #dene BT_CONNECTION_0_ENABLE 0x10 #dene BT_CONNECTION_1_ENABLE 0x20 #dene BT_CONNECTION_2_ENABLE 0x40 #dene BT_CONNECTION_3_ENABLE 0x80 #dene BT_ENABLE 0x00 #dene BT_DISABLE 0x01 #dene HS_UPDATE 1 #dene HS_INITIALISE 1 #dene HS_INIT_RECEIVER 2 #dene HS_SEND_DATA 3 #dene HS_DISABLE 4 #dene HS_ENABLE 5 #dene HS_CTRL_INIT 0 #dene HS_CTRL_UART 1 #dene HS_CTRL_EXIT 2 #dene HS_BAUD_1200 0 #dene HS_BAUD_2400 1 #dene HS_BAUD_3600 2 #dene HS_BAUD_4800 3 #dene HS_BAUD_7200 4 #dene HS_BAUD_9600 5 #dene HS_BAUD_14400 6 #dene HS_BAUD_19200 7 #dene HS_BAUD_28800 8 #dene HS_BAUD_38400 9 #dene HS_BAUD_57600 10 #dene HS_BAUD_76800 11 #dene HS_BAUD_115200 12 #dene HS_BAUD_230400 13 #dene HS_BAUD_460800 14 #dene HS_BAUD_921600 15
5.2
638
#dene HS_MODE_5_DATA 0x0000 #dene HS_MODE_6_DATA 0x0040 #dene HS_MODE_7_DATA 0x0080 #dene HS_MODE_8_DATA 0x00C0 #dene HS_MODE_10_STOP 0x0000 #dene HS_MODE_15_STOP 0x1000 #dene HS_MODE_20_STOP 0x2000 #dene HS_MODE_E_PARITY 0x0000 #dene HS_MODE_O_PARITY 0x0200 #dene HS_MODE_S_PARITY 0x0400 #dene HS_MODE_M_PARITY 0x0600 #dene HS_MODE_N_PARITY 0x0800 #dene HS_MODE_8N1 (HS_MODE_8_DATA|HS_MODE_N_PARITY|HS_MODE_10_STOP) #dene HS_MODE_7E1 (HS_MODE_7_DATA|HS_MODE_E_PARITY|HS_MODE_10_STOP) #dene BT_DEVICE_EMPTY 0x00 #dene BT_DEVICE_UNKNOWN 0x01 #dene BT_DEVICE_KNOWN 0x02 #dene BT_DEVICE_NAME 0x40 #dene BT_DEVICE_AWAY 0x80 #dene INTF_SENDFILE 0 #dene INTF_SEARCH 1 #dene INTF_STOPSEARCH 2 #dene INTF_CONNECT 3 #dene INTF_DISCONNECT 4 #dene INTF_DISCONNECTALL 5 #dene INTF_REMOVEDEVICE 6 #dene INTF_VISIBILITY 7 #dene INTF_SETCMDMODE 8 #dene INTF_OPENSTREAM 9 #dene INTF_SENDDATA 10 #dene INTF_FACTORYRESET 11 #dene INTF_BTON 12 #dene INTF_BTOFF 13 #dene INTF_SETBTNAME 14 #dene INTF_EXTREAD 15 #dene INTF_PINREQ 16 #dene INTF_CONNECTREQ 17 #dene INTF_CONNECTBYNAME 18 #dene LR_SUCCESS 0x50 #dene LR_COULD_NOT_SAVE 0x51 #dene LR_STORE_IS_FULL 0x52
5.2
639
#dene LR_ENTRY_REMOVED 0x53 #dene LR_UNKNOWN_ADDR 0x54 #dene USB_CMD_READY 0x01 #dene BT_CMD_READY 0x02 #dene HS_CMD_READY 0x04 #dene CommOffsetPFunc 0 #dene CommOffsetPFuncTwo 4 #dene CommOffsetBtDeviceTableName(p) (((p)31)+8) #dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) #dene CommOffsetBtDeviceTableBdAddr(p) (((p)31)+28) #dene CommOffsetBtDeviceTableDeviceStatus(p) (((p)31)+35) #dene CommOffsetBtConnectTableName(p) (((p)47)+938) #dene CommOffsetBtConnectTableClassOfDevice(p) (((p)47)+954) #dene CommOffsetBtConnectTablePinCode(p) (((p)47)+958) #dene CommOffsetBtConnectTableBdAddr(p) (((p)47)+974) #dene CommOffsetBtConnectTableHandleNr(p) (((p)47)+981) #dene CommOffsetBtConnectTableStreamStatus(p) (((p)47)+982) #dene CommOffsetBtConnectTableLinkQuality(p) (((p)47)+983) #dene CommOffsetBrickDataName 1126 #dene CommOffsetBrickDataBluecoreVersion 1142 #dene CommOffsetBrickDataBdAddr 1144 #dene CommOffsetBrickDataBtStateStatus 1151 #dene CommOffsetBrickDataBtHwStatus 1152 #dene CommOffsetBrickDataTimeOutValue 1153 #dene CommOffsetBtInBufBuf 1157 #dene CommOffsetBtInBufInPtr 1285 #dene CommOffsetBtInBufOutPtr 1286 #dene CommOffsetBtOutBufBuf 1289 #dene CommOffsetBtOutBufInPtr 1417 #dene CommOffsetBtOutBufOutPtr 1418 #dene CommOffsetHsInBufBuf 1421 #dene CommOffsetHsInBufInPtr 1549 #dene CommOffsetHsInBufOutPtr 1550 #dene CommOffsetHsOutBufBuf 1553 #dene CommOffsetHsOutBufInPtr 1681 #dene CommOffsetHsOutBufOutPtr 1682 #dene CommOffsetUsbInBufBuf 1685 #dene CommOffsetUsbInBufInPtr 1749 #dene CommOffsetUsbInBufOutPtr 1750 #dene CommOffsetUsbOutBufBuf 1753 #dene CommOffsetUsbOutBufInPtr 1817 #dene CommOffsetUsbOutBufOutPtr 1818 #dene CommOffsetUsbPollBufBuf 1821
5.2
640
#dene CommOffsetUsbPollBufInPtr 1885 #dene CommOffsetUsbPollBufOutPtr 1886 #dene CommOffsetBtDeviceCnt 1889 #dene CommOffsetBtDeviceNameCnt 1890 #dene CommOffsetHsFlags 1891 #dene CommOffsetHsSpeed 1892 #dene CommOffsetHsState 1893 #dene CommOffsetUsbState 1894 #dene CommOffsetHsMode 1895 #dene RCX_OUT_A 0x01 #dene RCX_OUT_B 0x02 #dene RCX_OUT_C 0x04 #dene RCX_OUT_AB 0x03 #dene RCX_OUT_AC 0x05 #dene RCX_OUT_BC 0x06 #dene RCX_OUT_ABC 0x07 #dene RCX_OUT_FLOAT 0 #dene RCX_OUT_OFF 0x40 #dene RCX_OUT_ON 0x80 #dene RCX_OUT_REV 0 #dene RCX_OUT_TOGGLE 0x40 #dene RCX_OUT_FWD 0x80 #dene RCX_OUT_LOW 0 #dene RCX_OUT_HALF 3 #dene RCX_OUT_FULL 7 #dene RCX_RemoteKeysReleased 0x0000 #dene RCX_RemotePBMessage1 0x0100 #dene RCX_RemotePBMessage2 0x0200 #dene RCX_RemotePBMessage3 0x0400 #dene RCX_RemoteOutAForward 0x0800 #dene RCX_RemoteOutBForward 0x1000 #dene RCX_RemoteOutCForward 0x2000 #dene RCX_RemoteOutABackward 0x4000 #dene RCX_RemoteOutBBackward 0x8000 #dene RCX_RemoteOutCBackward 0x0001 #dene RCX_RemoteSelProgram1 0x0002 #dene RCX_RemoteSelProgram2 0x0004 #dene RCX_RemoteSelProgram3 0x0008 #dene RCX_RemoteSelProgram4 0x0010 #dene RCX_RemoteSelProgram5 0x0020 #dene RCX_RemoteStopOutOff 0x0040 #dene RCX_RemotePlayASound 0x0080 #dene SOUND_CLICK 0
5.2
641
#dene SOUND_DOUBLE_BEEP 1 #dene SOUND_DOWN 2 #dene SOUND_UP 3 #dene SOUND_LOW_BEEP 4 #dene SOUND_FAST_UP 5 #dene SCOUT_LIGHT_ON 0x80 #dene SCOUT_LIGHT_OFF 0 #dene SCOUT_SOUND_REMOTE 6 #dene SCOUT_SOUND_ENTERSA 7 #dene SCOUT_SOUND_KEYERROR 8 #dene SCOUT_SOUND_NONE 9 #dene SCOUT_SOUND_TOUCH1_PRES 10 #dene SCOUT_SOUND_TOUCH1_REL 11 #dene SCOUT_SOUND_TOUCH2_PRES 12 #dene SCOUT_SOUND_TOUCH2_REL 13 #dene SCOUT_SOUND_ENTER_BRIGHT 14 #dene SCOUT_SOUND_ENTER_NORMAL 15 #dene SCOUT_SOUND_ENTER_DARK 16 #dene SCOUT_SOUND_1_BLINK 17 #dene SCOUT_SOUND_2_BLINK 18 #dene SCOUT_SOUND_COUNTER1 19 #dene SCOUT_SOUND_COUNTER2 20 #dene SCOUT_SOUND_TIMER1 21 #dene SCOUT_SOUND_TIMER2 22 #dene SCOUT_SOUND_TIMER3 23 #dene SCOUT_SOUND_MAIL_RECEIVED 24 #dene SCOUT_SOUND_SPECIAL1 25 #dene SCOUT_SOUND_SPECIAL2 26 #dene SCOUT_SOUND_SPECIAL3 27 #dene SCOUT_SNDSET_NONE 0 #dene SCOUT_SNDSET_BASIC 1 #dene SCOUT_SNDSET_BUG 2 #dene SCOUT_SNDSET_ALARM 3 #dene SCOUT_SNDSET_RANDOM 4 #dene SCOUT_SNDSET_SCIENCE 5 #dene SCOUT_MODE_STANDALONE 0 #dene SCOUT_MODE_POWER 1 #dene SCOUT_MR_NO_MOTION 0 #dene SCOUT_MR_FORWARD 1 #dene SCOUT_MR_ZIGZAG 2 #dene SCOUT_MR_CIRCLE_RIGHT 3 #dene SCOUT_MR_CIRCLE_LEFT 4 #dene SCOUT_MR_LOOP_A 5
5.2
642
#dene SCOUT_MR_LOOP_B 6 #dene SCOUT_MR_LOOP_AB 7 #dene SCOUT_TR_IGNORE 0 #dene SCOUT_TR_REVERSE 1 #dene SCOUT_TR_AVOID 2 #dene SCOUT_TR_WAIT_FOR 3 #dene SCOUT_TR_OFF_WHEN 4 #dene SCOUT_LR_IGNORE 0 #dene SCOUT_LR_SEEK_LIGHT 1 #dene SCOUT_LR_SEEK_DARK 2 #dene SCOUT_LR_AVOID 3 #dene SCOUT_LR_WAIT_FOR 4 #dene SCOUT_LR_OFF_WHEN 5 #dene SCOUT_TGS_SHORT 0 #dene SCOUT_TGS_MEDIUM 1 #dene SCOUT_TGS_LONG 2 #dene SCOUT_FXR_NONE 0 #dene SCOUT_FXR_BUG 1 #dene SCOUT_FXR_ALARM 2 #dene SCOUT_FXR_RANDOM 3 #dene SCOUT_FXR_SCIENCE 4 #dene RCX_VariableSrc 0 #dene RCX_TimerSrc 1 #dene RCX_ConstantSrc 2 #dene RCX_OutputStatusSrc 3 #dene RCX_RandomSrc 4 #dene RCX_ProgramSlotSrc 8 #dene RCX_InputValueSrc 9 #dene RCX_InputTypeSrc 10 #dene RCX_InputModeSrc 11 #dene RCX_InputRawSrc 12 #dene RCX_InputBooleanSrc 13 #dene RCX_WatchSrc 14 #dene RCX_MessageSrc 15 #dene RCX_GlobalMotorStatusSrc 17 #dene RCX_ScoutRulesSrc 18 #dene RCX_ScoutLightParamsSrc 19 #dene RCX_ScoutTimerLimitSrc 20 #dene RCX_CounterSrc 21 #dene RCX_ScoutCounterLimitSrc 22 #dene RCX_TaskEventsSrc 23 #dene RCX_ScoutEventFBSrc 24 #dene RCX_EventStateSrc 25
5.2
643
#dene RCX_TenMSTimerSrc 26 #dene RCX_ClickCounterSrc 27 #dene RCX_UpperThresholdSrc 28 #dene RCX_LowerThresholdSrc 29 #dene RCX_HysteresisSrc 30 #dene RCX_DurationSrc 31 #dene RCX_UARTSetupSrc 33 #dene RCX_BatteryLevelSrc 34 #dene RCX_FirmwareVersionSrc 35 #dene RCX_IndirectVarSrc 36 #dene RCX_DatalogSrcIndirectSrc 37 #dene RCX_DatalogSrcDirectSrc 38 #dene RCX_DatalogValueIndirectSrc 39 #dene RCX_DatalogValueDirectSrc 40 #dene RCX_DatalogRawIndirectSrc 41 #dene RCX_DatalogRawDirectSrc 42 #dene RCX_PingOp 0x10 #dene RCX_BatteryLevelOp 0x30 #dene RCX_DeleteTasksOp 0x40 #dene RCX_StopAllTasksOp 0x50 #dene RCX_PBTurnOffOp 0x60 #dene RCX_DeleteSubsOp 0x70 #dene RCX_ClearSoundOp 0x80 #dene RCX_ClearMsgOp 0x90 #dene RCX_LSCalibrateOp 0xc0 #dene RCX_MuteSoundOp 0xd0 #dene RCX_UnmuteSoundOp 0xe0 #dene RCX_ClearAllEventsOp 0x06 #dene RCX_OnOffFloatOp 0x21 #dene RCX_IRModeOp 0x31 #dene RCX_PlaySoundOp 0x51 #dene RCX_DeleteTaskOp 0x61 #dene RCX_StartTaskOp 0x71 #dene RCX_StopTaskOp 0x81 #dene RCX_SelectProgramOp 0x91 #dene RCX_ClearTimerOp 0xa1 #dene RCX_AutoOffOp 0xb1 #dene RCX_DeleteSubOp 0xc1 #dene RCX_ClearSensorOp 0xd1 #dene RCX_OutputDirOp 0xe1 #dene RCX_PlayToneVarOp 0x02 #dene RCX_PollOp 0x12 #dene RCX_SetWatchOp 0x22
5.2
644
#dene RCX_InputTypeOp 0x32 #dene RCX_InputModeOp 0x42 #dene RCX_SetDatalogOp 0x52 #dene RCX_DatalogOp 0x62 #dene RCX_SendUARTDataOp 0xc2 #dene RCX_RemoteOp 0xd2 #dene RCX_VLLOp 0xe2 #dene RCX_DirectEventOp 0x03 #dene RCX_OutputPowerOp 0x13 #dene RCX_PlayToneOp 0x23 #dene RCX_DisplayOp 0x33 #dene RCX_PollMemoryOp 0x63 #dene RCX_SetFeedbackOp 0x83 #dene RCX_SetEventOp 0x93 #dene RCX_GOutputPowerOp 0xa3 #dene RCX_LSUpperThreshOp 0xb3 #dene RCX_LSLowerThreshOp 0xc3 #dene RCX_LSHysteresisOp 0xd3 #dene RCX_LSBlinkTimeOp 0xe3 #dene RCX_CalibrateEventOp 0x04 #dene RCX_SetVarOp 0x14 #dene RCX_SumVarOp 0x24 #dene RCX_SubVarOp 0x34 #dene RCX_DivVarOp 0x44 #dene RCX_MulVarOp 0x54 #dene RCX_SgnVarOp 0x64 #dene RCX_AbsVarOp 0x74 #dene RCX_AndVarOp 0x84 #dene RCX_OrVarOp 0x94 #dene RCX_UploadDatalogOp 0xa4 #dene RCX_SetTimerLimitOp 0xc4 #dene RCX_SetCounterOp 0xd4 #dene RCX_SetSourceValueOp 0x05 #dene RCX_UnlockOp 0x15 #dene RCX_BootModeOp 0x65 #dene RCX_UnlockFirmOp 0xa5 #dene RCX_ScoutRulesOp 0xd5 #dene RCX_ViewSourceValOp 0xe5 #dene RCX_ScoutOp 0x47 #dene RCX_SoundOp 0x57 #dene RCX_GOutputModeOp 0x67 #dene RCX_GOutputDirOp 0x77 #dene RCX_LightOp 0x87
5.2
645
#dene RCX_IncCounterOp 0x97 #dene RCX_DecCounterOp 0xa7 #dene RCX_ClearCounterOp 0xb7 #dene RCX_SetPriorityOp 0xd7 #dene RCX_MessageOp 0xf7 #dene PF_CMD_STOP 0 #dene PF_CMD_FWD 1 #dene PF_CMD_REV 2 #dene PF_CMD_BRAKE 3 #dene PF_CHANNEL_1 0 #dene PF_CHANNEL_2 1 #dene PF_CHANNEL_3 2 #dene PF_CHANNEL_4 3 #dene PF_MODE_TRAIN 0 #dene PF_MODE_COMBO_DIRECT 1 #dene PF_MODE_SINGLE_PIN_CONT 2 #dene PF_MODE_SINGLE_PIN_TIME 3 #dene PF_MODE_COMBO_PWM 4 #dene PF_MODE_SINGLE_OUTPUT_PWM 4 #dene PF_MODE_SINGLE_OUTPUT_CST 6 #dene TRAIN_FUNC_STOP 0 #dene TRAIN_FUNC_INCR_SPEED 1 #dene TRAIN_FUNC_DECR_SPEED 2 #dene TRAIN_FUNC_TOGGLE_LIGHT 4 #dene TRAIN_CHANNEL_1 0 #dene TRAIN_CHANNEL_2 1 #dene TRAIN_CHANNEL_3 2 #dene TRAIN_CHANNEL_ALL 3 #dene PF_OUT_A 0 #dene PF_OUT_B 1 #dene PF_PIN_C1 0 #dene PF_PIN_C2 1 #dene PF_FUNC_NOCHANGE 0 #dene PF_FUNC_CLEAR 1 #dene PF_FUNC_SET 2 #dene PF_FUNC_TOGGLE 3 #dene PF_CST_CLEAR1_CLEAR2 0 #dene PF_CST_SET1_CLEAR2 1 #dene PF_CST_CLEAR1_SET2 2 #dene PF_CST_SET1_SET2 3 #dene PF_CST_INCREMENT_PWM 4 #dene PF_CST_DECREMENT_PWM 5 #dene PF_CST_FULL_FWD 6
5.2
646
#dene PF_CST_FULL_REV 7 #dene PF_CST_TOGGLE_DIR 8 #dene PF_PWM_FLOAT 0 #dene PF_PWM_FWD1 1 #dene PF_PWM_FWD2 2 #dene PF_PWM_FWD3 3 #dene PF_PWM_FWD4 4 #dene PF_PWM_FWD5 5 #dene PF_PWM_FWD6 6 #dene PF_PWM_FWD7 7 #dene PF_PWM_BRAKE 8 #dene PF_PWM_REV7 9 #dene PF_PWM_REV6 10 #dene PF_PWM_REV5 11 #dene PF_PWM_REV4 12 #dene PF_PWM_REV3 13 #dene PF_PWM_REV2 14 #dene PF_PWM_REV1 15 #dene HTIR2_MODE_1200 0 #dene HTIR2_MODE_600 1 #dene HTIR2_REG_MODE 0x41 #dene HTIR2_REG_DCDIR 0x42 #dene HTIR2_REG_DC01 0x43 #dene HTIR2_REG_DC02 0x44 #dene HTIR2_REG_DC03 0x45 #dene HTIR2_REG_DC04 0x46 #dene HTIR2_REG_DC05 0x47 #dene HTIR2_REG_DCAVG 0x48 #dene HTIR2_REG_ACDIR 0x49 #dene HTIR2_REG_AC01 0x4A #dene HTIR2_REG_AC02 0x4B #dene HTIR2_REG_AC03 0x4C #dene HTIR2_REG_AC04 0x4D #dene HTIR2_REG_AC05 0x4E #dene HT_CH1_A 0 #dene HT_CH1_B 1 #dene HT_CH2_A 2 #dene HT_CH2_B 3 #dene HT_CH3_A 4 #dene HT_CH3_B 5 #dene HT_CH4_A 6 #dene HT_CH4_B 7 #dene HT_CMD_COLOR2_ACTIVE 0x00
5.2
647
#dene HT_CMD_COLOR2_PASSIVE 0x01 #dene HT_CMD_COLOR2_RAW 0x03 #dene HT_CMD_COLOR2_50HZ 0x35 #dene HT_CMD_COLOR2_60HZ 0x36 #dene HT_CMD_COLOR2_BLCAL 0x42 #dene HT_CMD_COLOR2_WBCAL 0x43 #dene HT_CMD_COLOR2_FAR 0x46 #dene HT_CMD_COLOR2_LED_HI 0x48 #dene HT_CMD_COLOR2_LED_LOW 0x4C #dene HT_CMD_COLOR2_NEAR 0x4E #dene MS_CMD_ENERGIZED 0x45 #dene MS_CMD_DEENERGIZED 0x44 #dene MS_CMD_ADPA_ON 0x4E #dene MS_CMD_ADPA_OFF 0x4F #dene DIST_CMD_GP2D12 0x31 #dene DIST_CMD_GP2D120 0x32 #dene DIST_CMD_GP2YA21 0x33 #dene DIST_CMD_GP2YA02 0x34 #dene DIST_CMD_CUSTOM 0x35 #dene DIST_REG_DIST 0x42 #dene DIST_REG_VOLT 0x44 #dene DIST_REG_MODULE_TYPE 0x50 #dene DIST_REG_NUM_POINTS 0x51 #dene DIST_REG_DIST_MIN 0x52 #dene DIST_REG_DIST_MAX 0x54 #dene DIST_REG_VOLT1 0x56 #dene DIST_REG_DIST1 0x58 #dene PSP_CMD_DIGITAL 0x41 #dene PSP_CMD_ANALOG 0x73 #dene PSP_REG_BTNSET1 0x42 #dene PSP_REG_BTNSET2 0x43 #dene PSP_REG_XLEFT 0x44 #dene PSP_REG_YLEFT 0x45 #dene PSP_REG_XRIGHT 0x46 #dene PSP_REG_YRIGHT 0x47 #dene PSP_BTNSET1_LEFT 0x01 #dene PSP_BTNSET1_DOWN 0x02 #dene PSP_BTNSET1_RIGHT 0x04 #dene PSP_BTNSET1_UP 0x08 #dene PSP_BTNSET1_R3 0x20 #dene PSP_BTNSET1_L3 0x40 #dene PSP_BTNSET2_SQUARE 0x01 #dene PSP_BTNSET2_CROSS 0x02
5.2
648
#dene PSP_BTNSET2_CIRCLE 0x04 #dene PSP_BTNSET2_TRIANGLE 0x08 #dene PSP_BTNSET2_R1 0x10 #dene PSP_BTNSET2_L1 0x20 #dene PSP_BTNSET2_R2 0x40 #dene PSP_BTNSET2_L2 0x80 #dene NRLINK_CMD_2400 0x44 #dene NRLINK_CMD_FLUSH 0x46 #dene NRLINK_CMD_4800 0x48 #dene NRLINK_CMD_IR_LONG 0x4C #dene NRLINK_CMD_IR_SHORT 0x53 #dene NRLINK_CMD_RUN_MACRO 0x52 #dene NRLINK_CMD_TX_RAW 0x55 #dene NRLINK_CMD_SET_RCX 0x58 #dene NRLINK_CMD_SET_TRAIN 0x54 #dene NRLINK_CMD_SET_PF 0x50 #dene NRLINK_REG_BYTES 0x40 #dene NRLINK_REG_DATA 0x42 #dene NRLINK_REG_EEPROM 0x50 #dene RICImgPoint(_X, _Y) (_X)&0xFF, (_X)>>8, (_Y)&0xFF, (_Y)>>8
Output an RIC ImgPoint structure.
#dene RICOpDescription(_Options, _Width, _Height) 8, 0, 0, 0, (_Options)&0xFF, (_Options)>>8, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Description opcode.
#dene RICOpCopyBits(_CopyOptions, _DataAddr, _SrcRect, _DstPoint) 18, 0, 3, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_DataAddr)&0xFF, (_DataAddr)>>8, _SrcRect, _DstPoint
Output an RIC CopyBits opcode.
#dene RICOpPixel(_CopyOptions, _Point, _Value) 10, 0, 4, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC Pixel opcode.
5.2
649
#dene RICOpRect(_CopyOptions, _Point, _Width, _Height) 12, 0, 6, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Rect opcode.
#dene RICOpCircle(_CopyOptions, _Point, _Radius) 10, 0, 7, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Radius)&0xFF, (_Radius)>>8
Output an RIC Circle opcode.
#dene RICOpNumBox(_CopyOptions, _Point, _Value) 10, 0, 8, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC NumBox opcode.
#dene RICOpSprite(_DataAddr, _Rows, _BytesPerRow, _SpriteData) Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)&0xFF, Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)>>8, 1, 0, DataAddr)&0xFF, (_DataAddr)>>8, (_Rows)&0xFF, (_Rows)>>8, BytesPerRow)&0xFF, (_BytesPerRow)>>8, _SpriteData
Output an RIC Sprite opcode.
((_((_(_(_-
#dene RICOpVarMap(_DataAddr, _MapCount, _MapFunction) ((_MapCount4)+6)&0xFF, ((_MapCount4)+6)>>8, 2, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_MapCount)&0xFF, (_MapCount)>>8, _MapFunction
Output an RIC VarMap opcode.
(_Domain)&0xFF,
(_-
_arg)
((_arg)|0x1000|(((_-
5.2
650
#dene RICOpPolygon(_CopyOptions, _Count, _ThePoints) ((_Count4)+6)&0xFF, ((_Count4)+6)>>8, 10, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_Count)&0xFF, (_Count)>>8, _ThePoints
Output an RIC Polygon opcode.
#dene RICOpEllipse(_CopyOptions, _Point, _RadiusX, _RadiusY) 12, 0, 9, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_RadiusX)&0xFF, (_RadiusX)>>8, (_RadiusY)&0xFF, (_RadiusY)>>8
Output an RIC Ellipse opcode.
#dene CHAR_BIT 8 #dene SCHAR_MIN -127 #dene SCHAR_MAX 127 #dene UCHAR_MAX 255 #dene CHAR_MIN -127 #dene CHAR_MAX 127 #dene SHRT_MIN -32767 #dene SHRT_MAX 32767 #dene USHRT_MAX 65535 #dene INT_MIN -32767 #dene INT_MAX 32767 #dene UINT_MAX 65535 #dene LONG_MIN -2147483647 #dene LONG_MAX 2147483647 #dene ULONG_MAX 4294967295 #dene RAND_MAX 32768 #dene GL_POLYGON 1 #dene GL_LINE 2 #dene GL_POINT 3 #dene GL_CIRCLE 4 #dene GL_TRANSLATE_X 1 #dene GL_TRANSLATE_Y 2 #dene GL_TRANSLATE_Z 3 #dene GL_ROTATE_X 4 #dene GL_ROTATE_Y 5 #dene GL_ROTATE_Z 6 #dene GL_SCALE_X 7
5.2
651
5.2.1
#dene GL_SCALE_Y 8 #dene GL_SCALE_Z 9 #dene GL_CIRCLE_SIZE 1 #dene GL_CULL_MODE 2 #dene GL_CAMERA_DEPTH 3 #dene GL_ZOOM_FACTOR 4 #dene GL_CULL_BACK 2 #dene GL_CULL_FRONT 3 #dene GL_CULL_NONE 4 Detailed Description
Constants and macros common to both NBC and NXC. NBCCommon.h contains declarations for the NBC and NXC NXT API functions. License: The contents of this le are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this le 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 specic 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-2010 John Hansen. All Rights Reserved. ---------------------------------------------------------------------------Author: John Hansen (bricxcc_at_comcast.net) Date: 2010-06-28 Version: 54 5.2.2 5.2.2.1 Dene Documentation #dene ActualSpeed 3
5.2
652
Actual speed eld. Contains the actual power level (-100 to 100). Read only. Return the percent of full power the rmware is applying to the output. This may vary from the Power value when auto-regulation code in the rmware responds to a load on the output. 5.2.2.2 #dene BITMAP_1 0 Bitmap 1 5.2.2.3 #dene BITMAP_2 1 Bitmap 2 5.2.2.4 #dene BITMAP_3 2 Bitmap 3 5.2.2.5 #dene BITMAP_4 3 Bitmap 4 5.2.2.6 #dene BITMAPS 4 The number of bitmap bits 5.2.2.7 #dene BlockTachoCount 13
NXT-G block tachometer count eld. Contains the current NXT-G block tachometer count. Read only. Return the block-relative position counter value for the specied port. Refer to the UpdateFlags description for information about how to use blockrelative position counts. Set the UF_UPDATE_RESET_BLOCK_COUNT ag in UpdateFlags to request that the rmware reset the BlockTachoCount. The sign of BlockTachoCount indicates the direction of rotation. Positive values indicate forward rotation and negative values indicate reverse rotation. Forward and reverse depend on the orientation of the motor. 5.2.2.8 #dene BREAKOUT_REQ 3 VM should break out of current thread
5.2
653
5.2.2.9
5.2.2.10
5.2.2.11
5.2.2.12
5.2.2.13
5.2.2.14
5.2.2.15
5.2.2.16
5.2.2.17
5.2.2.18
5.2
654
5.2.2.19
5.2.2.20
5.2.2.21
5.2.2.22
5.2.2.23
5.2.2.24
5.2.2.25
5.2.2.26
5.2.2.27
5.2.2.28
5.2
655
5.2.2.29
5.2.2.30
5.2.2.31
5.2.2.32
5.2.2.33
5.2.2.34
5.2.2.35
5.2.2.36
5.2.2.37
5.2.2.38
5.2
656
5.2.2.39
5.2.2.40
5.2.2.41
5.2.2.42
5.2.2.43
5.2.2.44
5.2.2.45
#dene ButtonOffsetLongPressCnt(b) (((b)8)+1) Offset to the LongPressCnt eld. This eld stores the long press count.
5.2.2.46
#dene ButtonOffsetLongRelCnt(b) (((b)8)+3) Offset to the LongRelCnt eld. This eld stores the long release count.
5.2.2.47
#dene ButtonOffsetPressedCnt(b) (((b)8)+0) Offset to the PressedCnt eld. This eld stores the press count.
5.2.2.48
#dene ButtonOffsetRelCnt(b) (((b)8)+4) Offset to the RelCnt eld. This eld stores the release count.
5.2
657
5.2.2.49
#dene ButtonOffsetShortRelCnt(b) (((b)8)+2) Offset to the ShortRelCnt eld. This eld stores the short release count.
5.2.2.50
#dene ButtonOffsetState(b) ((b)+32) Offset to the State eld. This eld stores the current button state.
5.2.2.51
5.2.2.52
5.2.2.53
5.2.2.54
5.2.2.55
5.2.2.56
#dene ColorSensorRead 34 Read data from the NXT 2.0 color sensor
5.2.2.57
5.2.2.58
#dene COM_CHANNEL_NONE_ACTIVE 0x00 None of the low speed channels are active
5.2
658
5.2.2.59
5.2.2.60
5.2.2.61
5.2.2.62
5.2.2.63
5.2.2.64
5.2.2.65
5.2.2.66
5.2.2.67
5.2.2.68
5.2
659
5.2.2.69
5.2.2.70
5.2.2.71
#dene CommandOffsetOffsetDVA 26 Offset to the running programs DOPE vector address (DVA)
5.2.2.72
5.2.2.73
5.2.2.74
5.2.2.75
5.2.2.76
5.2.2.77
5.2.2.78
5.2
660
5.2.2.79
5.2.2.80
5.2.2.81
5.2.2.82
5.2.2.83
5.2.2.84
5.2.2.85
5.2.2.86
5.2.2.87
5.2.2.88
5.2
661
5.2.2.89
5.2.2.90
#dene CommLSWriteEx 89 Write to a lowspeed (aka I2C) device with optional restart on read
5.2.2.91
5.2.2.92
5.2.2.93
5.2.2.94
5.2.2.95
5.2.2.96
5.2.2.97
5.2.2.98
5.2
662
5.2.2.99
5.2.2.100
#dene CommOffsetBtConnectTableClassOfDevice(p) (((p)47)+954) Offset to Bluetooth connect table device class (4 bytes)
5.2.2.101
5.2.2.102
#dene CommOffsetBtConnectTableLinkQuality(p) (((p)47)+983) Offset to Bluetooth connect table link quality (1 byte)
5.2.2.103
#dene CommOffsetBtConnectTableName(p) (((p)47)+938) Offset to Bluetooth connect table name (16 bytes)
5.2.2.104
#dene CommOffsetBtConnectTablePinCode(p) (((p)47)+958) Offset to Bluetooth connect table pin code (16 bytes)
5.2.2.105
#dene CommOffsetBtConnectTableStreamStatus(p) (((p)47)+982) Offset to Bluetooth connect table stream status (1 byte)
5.2.2.106
5.2.2.107
5.2.2.108
5.2
663
5.2.2.109
#dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) Offset to Bluetooth device table device class (4 bytes)
5.2.2.110
5.2.2.111
5.2.2.112
#dene CommOffsetBtInBufBuf 1157 Offset to Bluetooth input buffer data (128 bytes)
5.2.2.113
#dene CommOffsetBtInBufInPtr 1285 Offset to Bluetooth input buffer front pointer (1 byte)
5.2.2.114
#dene CommOffsetBtInBufOutPtr 1286 Offset to Bluetooth output buffer back pointer (1 byte)
5.2.2.115
#dene CommOffsetBtOutBufBuf 1289 Offset to Bluetooth output buffer offset data (128 bytes)
5.2.2.116
#dene CommOffsetBtOutBufInPtr 1417 Offset to Bluetooth output buffer front pointer (1 byte)
5.2.2.117
#dene CommOffsetBtOutBufOutPtr 1418 Offset to Bluetooth output buffer back pointer (1 byte)
5.2.2.118
5.2
664
5.2.2.119
#dene CommOffsetHsInBufBuf 1421 Offset to High Speed input buffer data (128 bytes)
5.2.2.120
#dene CommOffsetHsInBufInPtr 1549 Offset to High Speed input buffer front pointer (1 byte)
5.2.2.121
#dene CommOffsetHsInBufOutPtr 1550 Offset to High Speed input buffer back pointer (1 byte)
5.2.2.122
5.2.2.123
#dene CommOffsetHsOutBufBuf 1553 Offset to High Speed output buffer data (128 bytes)
5.2.2.124
#dene CommOffsetHsOutBufInPtr 1681 Offset to High Speed output buffer front pointer (1 byte)
5.2.2.125
#dene CommOffsetHsOutBufOutPtr 1682 Offset to High Speed output buffer back pointer (1 byte)
5.2.2.126
5.2.2.127
5.2.2.128
#dene CommOffsetPFunc 0 Offset to the Comm module rst function pointer (4 bytes)
5.2
665
5.2.2.129
#dene CommOffsetPFuncTwo 4 Offset to the Comm module second function pointer (4 bytes)
5.2.2.130
#dene CommOffsetUsbInBufBuf 1685 Offset to Usb input buffer data (64 bytes)
5.2.2.131
#dene CommOffsetUsbInBufInPtr 1749 Offset to Usb input buffer front pointer (1 byte)
5.2.2.132
#dene CommOffsetUsbInBufOutPtr 1750 Offset to Usb input buffer back pointer (1 byte)
5.2.2.133
#dene CommOffsetUsbOutBufBuf 1753 Offset to Usb output buffer data (64 bytes)
5.2.2.134
#dene CommOffsetUsbOutBufInPtr 1817 Offset to Usb output buffer front pointer (1 byte)
5.2.2.135
#dene CommOffsetUsbOutBufOutPtr 1818 Offset to Usb output buffer back pointer (1 byte)
5.2.2.136
#dene CommOffsetUsbPollBufBuf 1821 Offset to Usb Poll buffer data (64 bytes)
5.2.2.137
#dene CommOffsetUsbPollBufInPtr 1885 Offset to Usb Poll buffer front pointer (1 byte)
5.2.2.138
#dene CommOffsetUsbPollBufOutPtr 1886 Offset to Usb Poll buffer back pointer (1 byte)
5.2
666
5.2.2.139
5.2.2.140
5.2.2.141
5.2.2.142
5.2.2.143
5.2.2.144
5.2.2.145
5.2.2.146
5.2.2.147
5.2.2.148
5.2
667
5.2.2.149
5.2.2.150
5.2.2.151
5.2.2.152
5.2.2.153
5.2.2.154
#dene DISPLAY_MENUICONS_X_DIFF 31
5.2.2.155
#dene DISPLAY_MENUICONS_X_OFFS 7
5.2.2.156
#dene DISPLAY_MENUICONS_Y 40
5.2.2.157
5.2.2.158
5.2
668
5.2.2.159
5.2.2.160
5.2.2.161
5.2.2.162
5.2.2.163
5.2.2.164
5.2.2.165
5.2.2.166
5.2.2.167
#dene DisplayOffsetContrast 1719 Adjust the display contrast with this eld
5.2.2.168
5.2
669
5.2.2.169
5.2.2.170
5.2.2.171
5.2.2.172
5.2.2.173
5.2.2.174
5.2.2.175
5.2.2.176
5.2.2.177
5.2.2.178
5.2
670
5.2.2.179
5.2.2.180
5.2.2.181
5.2.2.182
5.2.2.183
#dene DisplayOffsetStatusIcons(p) ((p)+108) Index in status icon collection le (index = 0 -> none)
5.2.2.184
#dene DisplayOffsetStepIcons(p) ((p)+112) Index in step icon collection le (index = 0 -> none)
5.2.2.185
5.2.2.186
5.2.2.187
5.2.2.188
5.2
671
5.2.2.189
5.2.2.190
5.2.2.191
5.2.2.192
5.2.2.193
5.2.2.194
5.2.2.195
5.2.2.196
5.2.2.197
5.2.2.198
5.2
672
5.2.2.199
5.2.2.200
#dene DRAW_OPT_CLEAR (0x0004) Clear pixels while drawing (aka draw in white)
5.2.2.201
#dene DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN (0x0002) Clear the screen except for the status line before drawing
5.2.2.202
#dene DRAW_OPT_CLEAR_PIXELS (0x0004) Clear pixels while drawing (aka draw in white)
5.2.2.203
#dene DRAW_OPT_CLEAR_SCREEN_MODES (0x0003) Bit mask for the clear screen modes
5.2.2.204
5.2.2.205
#dene DRAW_OPT_FILL_SHAPE (0x0020) Fill the shape while drawing (rectangle, circle, ellipses, and polygon)
5.2.2.206
5.2.2.207
5.2.2.208
5.2
673
5.2.2.209
5.2.2.210
5.2.2.211
5.2.2.212
5.2.2.213
5.2.2.214
#dene DRAW_OPT_FONT_DIRECTIONS (0x01C0) Bit mask for the font direction bits
5.2.2.215
#dene DRAW_OPT_FONT_WRAP (0x0200) Option to have text wrap in FontNumOut and FontTextOut calls
5.2.2.216
5.2.2.217
5.2.2.218
5.2
674
5.2.2.219
#dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) Bit mask for the logical drawing operations
5.2.2.220
5.2.2.221
5.2.2.222
5.2.2.223
#dene DRAW_OPT_POLYGON_POLYLINE (0x0400) When drawing polygons, do not close (i.e., draw a polyline instead)
5.2.2.224
5.2.2.225
5.2.2.226
#dene DrawFont 95 Draw text using a custom RIC-based font to the LCD screen
5.2.2.227
5.2.2.228
#dene DrawGraphicArray 92 Draw a graphic image from a byte array to the LCD screen
5.2
675
5.2.2.229
5.2.2.230
5.2.2.231
5.2.2.232
5.2.2.233
5.2.2.234
5.2.2.235
5.2.2.236
5.2.2.237
5.2.2.238
5.2
676
5.2.2.239
5.2.2.240
#dene ERR_COMM_BUS_ERR -35 0xDD Something went wrong on the communications bus
5.2.2.241
5.2.2.242
5.2.2.243
0xF2 (DefaultsOffset != FileOffsets.DynamicDefaults) || (DefaultsOffset + FileOffsets.DynamicDefaultsSize != FileOffsets.DSDefaultsSize) 5.2.2.244 #dene ERR_FILE -3 0xFD Malformed le contents 5.2.2.245 #dene ERR_INSANE_OFFSET -9 0xF7 CurrOffset != (DataSize - VarsCmd.CodespaceCount 2) 5.2.2.246 #dene ERR_INSTR -2 0xFE Illegal bytecode instruction 5.2.2.247 #dene ERR_INVALID_FIELD -17 0xEF Attempted to access invalid eld of a structure 5.2.2.248 #dene ERR_INVALID_PORT -16 0xF0 Bad input or output port specied
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
677
5.2.2.249
5.2.2.250
5.2.2.251
0xF5 LOADER_ERR(LStatus) != SUCCESS || pData == NULL || DataSize == 0 5.2.2.252 #dene ERR_MEM -5 0xFB Insufcient memory available 5.2.2.253 #dene ERR_MEMMGR_FAIL -15
0xF1 (UBYTE )VarsCmd.MemMgr.pDopeVectorArray != VarsCmd.pDataspace + DV_ARRAY[0].Offset 5.2.2.254 #dene ERR_NO_ACTIVE_CLUMP -13 0xF3 VarsCmd.RunQ.Head == NOT_A_CLUMP 5.2.2.255 #dene ERR_NO_CODE -8 0xF8 VarsCmd.CodespaceCount == 0 5.2.2.256 #dene ERR_NO_PROG -20 0xEC No active program 5.2.2.257 #dene ERR_NON_FATAL -16 Fatal errors are greater than this value 5.2.2.258 #dene ERR_RC_BAD_PACKET -65 0xBF Clearly insane packet
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
678
5.2.2.259
#dene ERR_RC_FAILED -67 0xBD Request failed (i.e. specied le not found)
5.2.2.260
5.2.2.261
5.2.2.262
5.2.2.263
5.2.2.264
5.2.2.265
5.2.2.266
5.2.2.267
5.2.2.268
5.2
679
5.2.2.269
5.2.2.270
5.2.2.271
5.2.2.272
5.2.2.273
5.2.2.274
5.2.2.275
5.2.2.276
5.2.2.277
5.2.2.278
#dene FileResolveHandle 6 Get a le handle for the specied lename if it is already open
5.2
680
5.2.2.279
5.2.2.280
5.2.2.281
5.2.2.282
5.2.2.283
5.2.2.284
5.2.2.285
5.2.2.286
5.2.2.287
5.2.2.288
5.2
681
5.2.2.289
5.2.2.290
5.2.2.291
5.2.2.292
5.2.2.293
5.2.2.294
5.2.2.295
5.2.2.296
5.2.2.297
5.2.2.298
5.2
682
5.2.2.299
5.2.2.300
5.2.2.301
5.2.2.302
5.2.2.303
5.2.2.304
5.2.2.305
5.2.2.306
5.2.2.307
5.2.2.308
5.2
683
5.2.2.309
5.2.2.310
5.2.2.311
5.2.2.312
5.2.2.313
5.2.2.314
5.2.2.315
5.2.2.316
5.2.2.317
5.2.2.318
5.2
684
5.2.2.319
5.2.2.320
5.2.2.321
5.2.2.322
5.2.2.323
5.2.2.324
5.2.2.325
5.2.2.326
5.2.2.327
5.2.2.328
5.2
685
5.2.2.329
5.2.2.330
5.2.2.331
5.2.2.332
5.2.2.333
5.2.2.334
5.2.2.335
#dene HS_MODE_7E1 (HS_MODE_7_DATA|HS_MODE_E_PARITY|HS_MODE_10_STOP) HsMode 7 data bits, even parity, 1 stop bit
5.2.2.336
5.2.2.337
5.2
686
5.2.2.338
5.2.2.339
5.2.2.340
5.2.2.341
5.2.2.342
5.2.2.343
5.2.2.344
5.2.2.345
5.2.2.346
5.2.2.347
5.2
687
5.2.2.348
5.2.2.349
5.2.2.350
5.2.2.351
5.2.2.352
5.2.2.353
5.2.2.354
5.2.2.355
5.2.2.356
#dene HT_CMD_COLOR2_BLCAL 0x42 Set the Color2 sensor to black level calibration mode
5.2.2.357
5.2
688
5.2.2.358
#dene HT_CMD_COLOR2_LED_HI 0x48 Set the Color2 sensor to LED high mode
5.2.2.359
#dene HT_CMD_COLOR2_LED_LOW 0x4C Set the Color2 sensor to LED low mode
5.2.2.360
5.2.2.361
5.2.2.362
5.2.2.363
#dene HT_CMD_COLOR2_WBCAL 0x43 Set the Color2 sensor to white level calibration mode
5.2.2.364
5.2.2.365
5.2.2.366
5.2.2.367
5.2
689
5.2.2.368
5.2.2.369
5.2.2.370
5.2.2.371
5.2.2.372
5.2.2.373
5.2.2.374
5.2.2.375
5.2.2.376
5.2.2.377
5.2
690
5.2.2.378
5.2.2.379
5.2.2.380
5.2.2.381
5.2.2.382
5.2.2.383
5.2.2.384
5.2.2.385
5.2.2.386
5.2.2.387
5.2
691
5.2.2.388
#dene IN_MODE_ANGLESTEP 0xE0 RCX rotation sensor (16 ticks per revolution)
5.2.2.389
5.2.2.390
5.2.2.391
5.2.2.392
#dene IN_MODE_MODEMASK 0xE0 Mask for the mode without any slope value
5.2.2.393
5.2.2.394
5.2.2.395
5.2.2.396
5.2.2.397
5.2
692
5.2.2.398
5.2.2.399
#dene IN_TYPE_COLORBLUE 0x10 NXT 2.0 color sensor with blue light
5.2.2.400
5.2.2.401
#dene IN_TYPE_COLORFULL 0x0D NXT 2.0 color sensor in full color mode
5.2.2.402
#dene IN_TYPE_COLORGREEN 0x0F NXT 2.0 color sensor with green light
5.2.2.403
5.2.2.404
#dene IN_TYPE_COLORRED 0x0E NXT 2.0 color sensor with red light
5.2.2.405
5.2.2.406
5.2.2.407
5.2
693
5.2.2.408
5.2.2.409
5.2.2.410
5.2.2.411
5.2.2.412
5.2.2.413
5.2.2.414
5.2.2.415
5.2.2.416
5.2.2.417
5.2
694
5.2.2.418
#dene INPUT_BLANK 3 Access the blank value from color sensor value arrays
5.2.2.419
#dene INPUT_BLUE 2 Access the blue value from color sensor value arrays
5.2.2.420
5.2.2.421
5.2.2.422
5.2.2.423
5.2.2.424
5.2.2.425
5.2.2.426
5.2.2.427
5.2
695
5.2.2.428
5.2.2.429
#dene INPUT_GREEN 1 Access the green value from color sensor value arrays
5.2.2.430
5.2.2.431
5.2.2.432
#dene INPUT_NO_OF_COLORS 4 The number of entries in the color sensor value arrays
5.2.2.433
5.2.2.434
#dene INPUT_RED 0 Access the red value from color sensor value arrays
5.2.2.435
5.2.2.436
5.2.2.437
5.2
696
5.2.2.438
#dene INPUT_SENSORCAL 0x01 The state returned while the color sensor is calibrating
5.2.2.439
#dene INPUT_SENSOROFF 0x02 The state returned once calibration has completed
5.2.2.440
5.2.2.441
5.2.2.442
5.2.2.443
#dene InputMode 1 Input mode eld. Contains one of the sensor mode constants. Read/write.
5.2.2.444
5.2.2.445
5.2.2.446
#dene InputOffsetADRaw(p) (((p)20)+2) Read the AD raw sensor value (2 bytes) uword
5.2.2.447
5.2
697
5.2.2.448
#dene InputOffsetColorCalibration(p, np, nc) (80+((p)84)+0+((np)16)+((nc)4)) Read/write color calibration point values
5.2.2.449
5.2.2.450
5.2.2.451
5.2.2.452
5.2.2.453
5.2.2.454
#dene InputOffsetCustomActiveStatus(p) (((p)20)+15) Read/write the active or inactive state of the custom sensor
5.2.2.455
#dene InputOffsetCustomPctFullScale(p) (((p)20)+14) Read/write the Pct full scale of the custom sensor
5.2.2.456
#dene InputOffsetCustomZeroOffset(p) (((p)20)+0) Read/write the zero offset of a custom sensor (2 bytes) uword
5.2
698
5.2.2.457
#dene InputOffsetDigiPinsDir(p) (((p)20)+11) Read/write the direction of the Digital pins (1 is output, 0 is input)
5.2.2.458
5.2.2.459
#dene InputOffsetDigiPinsOut(p) (((p)20)+13) Read/write the output level of the digital pins
5.2.2.460
#dene InputOffsetInvalidData(p) (((p)20)+16) Indicates whether data is invalid (1) or valid (0)
5.2.2.461
5.2.2.462
5.2.2.463
#dene InputOffsetSensorRaw(p) (((p)20)+4) Read the raw sensor value (2 bytes) uword
5.2.2.464
5.2.2.465
#dene InputOffsetSensorValue(p) (((p)20)+6) Read/write the scaled sensor value (2 bytes) sword
5.2.2.466
5.2
699
5.2.2.467
5.2.2.468
5.2.2.469
5.2.2.470
5.2.2.471
5.2.2.472
5.2.2.473
5.2.2.474
5.2.2.475
5.2.2.476
5.2
700
5.2.2.477
5.2.2.478
5.2.2.479
5.2.2.480
5.2.2.481
5.2.2.482
5.2.2.483
5.2.2.484
5.2.2.485
5.2.2.486
5.2
701
5.2.2.487
#dene InvalidData 5
Invalid data eld. Contains a boolean value indicating whether the sensor data is valid or not. Read/write. 5.2.2.488 #dene IOCTRL_BOOT 0xA55A Reboot the NXT into SAMBA mode 5.2.2.489 #dene IOCTRL_POWERDOWN 0x5A00 Power down the NXT 5.2.2.490 #dene IOCtrlModuleID 0x00060001 The IOCtrl module ID 5.2.2.491 #dene IOCtrlModuleName "IOCtrl.mod" The IOCtrl module name 5.2.2.492 #dene IOCtrlOffsetPowerOn 0 Offset to power on eld 5.2.2.493 #dene IOMapRead 32
Read data from one of the rmware modules IOMap structures using the modules name 5.2.2.494 #dene IOMapReadByID 78
Read data from one of the rmware modules IOMap structures using the modules ID 5.2.2.495 #dene IOMapWrite 33
Write data to one of the rmware modules IOMap structures using the modules name
5.2
702
5.2.2.496
#dene IOMapWriteByID 79
Write data to one of the rmware modules IOMap structures using the modules ID 5.2.2.497 #dene KeepAlive 31 Reset the NXT sleep timer 5.2.2.498 #dene LCD_LINE1 56 The 1st line of the LCD screen 5.2.2.499 #dene LCD_LINE2 48 The 2nd line of the LCD screen 5.2.2.500 #dene LCD_LINE3 40 The 3rd line of the LCD screen 5.2.2.501 #dene LCD_LINE4 32 The 4th line of the LCD screen 5.2.2.502 #dene LCD_LINE5 24 The 5th line of the LCD screen 5.2.2.503 #dene LCD_LINE6 16 The 6th line of the LCD screen 5.2.2.504 #dene LCD_LINE7 8 The 7th line of the LCD screen 5.2.2.505 #dene LCD_LINE8 0 The 8th line of the LCD screen
5.2
703
5.2.2.506
5.2.2.507
5.2.2.508
5.2.2.509
5.2.2.510
5.2.2.511
5.2.2.512
5.2.2.513
5.2.2.514
5.2.2.515
5.2
704
5.2.2.516
5.2.2.517
#dene LDR_CMD_DELETEUSERFLASH 0xA0 Delete all les from user ash memory
5.2.2.518
5.2.2.519
#dene LDR_CMD_FINDFIRST 0x86 Find the rst le matching the specied pattern
5.2.2.520
#dene LDR_CMD_FINDFIRSTMODULE 0x90 Find the rst module matching the specied pattern
5.2.2.521
#dene LDR_CMD_FINDNEXT 0x87 Find the next le matching the specied pattern
5.2.2.522
#dene LDR_CMD_FINDNEXTMODULE 0x91 Find the next module matching the specied pattern
5.2.2.523
5.2.2.524
5.2.2.525
5.2
705
5.2.2.526
5.2.2.527
5.2.2.528
5.2.2.529
5.2.2.530
5.2.2.531
5.2.2.532
5.2.2.533
5.2.2.534
5.2.2.535
5.2
706
5.2.2.536
5.2.2.537
5.2.2.538
5.2.2.539
5.2.2.540
5.2.2.541
5.2.2.542
5.2.2.543
5.2.2.544
5.2.2.545
5.2
707
5.2.2.546
5.2.2.547
5.2.2.548
5.2.2.549
5.2.2.550
5.2.2.551
5.2.2.552
5.2.2.553
5.2.2.554
Filename length to long or attempted open a system le (.rxe, .rtm, or .sys) for writing as a datale. 5.2.2.555 #dene LDR_ILLEGALHANDLE 0x9300 Invalid le handle.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
708
5.2.2.556
#dene LDR_INPROGRESS 0x0001 The function is executing but has not yet completed.
5.2.2.557
5.2.2.558
5.2.2.559
5.2.2.560
#dene LDR_NOMOREFILES 0x8300 The maximum number of les has been reached.
5.2.2.561
5.2.2.562
#dene LDR_NOSPACE 0x8200 Not enough free ash memory for the specied le size.
5.2.2.563
5.2.2.564
5.2.2.565
#dene LDR_OUTOFBOUNDARY 0x9100 Specied IOMap offset is outside the bounds of the IOMap.
5.2
709
5.2.2.566
5.2.2.567
5.2.2.568
5.2.2.569
#dene ListFiles 47 List les that match the specied lename pattern
5.2.2.570
5.2.2.571
5.2.2.572
5.2.2.573
5.2.2.574
5.2.2.575
5.2
710
5.2.2.576
5.2.2.577
5.2.2.578
5.2.2.579
5.2.2.580
5.2.2.581
5.2.2.582
5.2.2.583
5.2.2.584
5.2.2.585
5.2
711
5.2.2.586
5.2.2.587
5.2.2.588
5.2.2.589
5.2.2.590
5.2.2.591
5.2.2.592
5.2.2.593
5.2.2.594
#dene LowSpeedOffsetInBufBuf(p) (((p)19)+0) RW - Input buffer data buffer eld offset (16 bytes)
5.2.2.595
#dene LowSpeedOffsetInBufBytesToRx(p) (((p)19)+18) RW - Input buffer bytes to receive eld offset (1 byte)
5.2
712
5.2.2.596
5.2.2.597
#dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) RW - Input buffer out pointer eld offset (1 byte)
5.2.2.598
5.2.2.599
#dene LowSpeedOffsetNoRestartOnRead 166 RW - Lowspeed option for no restart on read (all channels) (NBC/NXC)
5.2.2.600
#dene LowSpeedOffsetOutBufBuf(p) (((p)19)+76) RW - Output buffer data buffer eld offset (16 bytes)
5.2.2.601
#dene LowSpeedOffsetOutBufBytesToRx(p) (((p)19)+94) RW - Output buffer bytes to receive eld offset (1 byte)
5.2.2.602
5.2.2.603
#dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) RW - Output buffer out pointer eld offset (1 byte)
5.2.2.604
5.2.2.605
5.2
713
5.2.2.606
5.2.2.607
5.2.2.608
5.2.2.609
5.2.2.610
5.2.2.611
5.2.2.612
5.2.2.613
5.2.2.614
5.2.2.615
5.2
714
5.2.2.616
5.2.2.617
5.2.2.618
5.2.2.619
5.2.2.620
5.2.2.621
5.2.2.622
5.2.2.623
5.2.2.624
5.2.2.625
5.2
715
5.2.2.626
5.2.2.627
5.2.2.628
5.2.2.629
5.2.2.630
5.2.2.631
5.2.2.632
5.2.2.633
5.2.2.634
5.2.2.635
5.2
716
5.2.2.636
5.2.2.637
5.2.2.638
5.2.2.639
5.2.2.640
5.2.2.641
5.2.2.642
5.2.2.643
5.2.2.644
5.2.2.645
5.2
717
5.2.2.646
5.2.2.647
5.2.2.648
5.2.2.649
5.2.2.650
5.2.2.651
5.2.2.652
5.2.2.653
5.2.2.654
5.2.2.655
5.2
718
5.2.2.656
5.2.2.657
5.2.2.658
5.2.2.659
5.2.2.660
5.2.2.661
5.2.2.662
5.2.2.663
5.2.2.664
5.2.2.665
5.2
719
5.2.2.666
5.2.2.667
5.2.2.668
5.2.2.669
5.2.2.670
5.2.2.671
5.2.2.672
#dene NA 0xFFFF The specied argument does not apply (aka unwired)
5.2.2.673
5.2.2.674
5.2.2.675
#dene NormalizedValue 3
Normalized value eld. Contains the current normalized analog sensor value. Read only.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
720
5.2.2.676
5.2.2.677
5.2.2.678
5.2.2.679
5.2.2.680
5.2.2.681
5.2.2.682
5.2.2.683
5.2.2.684
5.2.2.685
5.2
721
5.2.2.686
5.2.2.687
5.2.2.688
5.2.2.689
5.2.2.690
#dene OPARR_MAX 0x05 Calculate the maximum value of the elements in the numeric input array
5.2.2.691
#dene OPARR_MEAN 0x01 Calculate the mean value for the elements in the numeric input array
5.2.2.692
#dene OPARR_MIN 0x04 Calculate the minimum value of the elements in the numeric input array
5.2.2.693
#dene OPARR_SORT 0x06 Sort the elements in the numeric input array
5.2.2.694
#dene OPARR_STD 0x03 Calculate the standard deviation of the elements in the numeric input array
5.2.2.695
#dene OPARR_SUM 0x00 Calculate the sum of the elements in the numeric input array
5.2
722
5.2.2.696
#dene OPARR_SUMSQR 0x02 Calculate the sum of the squares of the elements in the numeric input array
5.2.2.697
5.2.2.698
5.2.2.699
5.2.2.700
5.2.2.701
5.2.2.702
5.2.2.703
5.2.2.704
5.2.2.705
5.2
723
5.2.2.706
#dene OUT_MODE_MOTORON 0x01 Enables PWM power to the outputs given the Power setting
5.2.2.707
5.2.2.708
#dene OUT_MODE_REGULATED 0x04 Enables active power regulation using the RegMode value
5.2.2.709
Option to have the rmware hold the motor when it reaches the tachometer limit 5.2.2.710 #dene OUT_OPTION_RAMPDOWNTOLIMIT 0x20
Option to have the rmware rampdown the motor power as it approaches the tachometer limit (not implemented yet) 5.2.2.711 #dene OUT_REGMODE_IDLE 0 No motor regulation. 5.2.2.712 #dene OUT_REGMODE_SPEED 1 Regulate a motors speed (Power). 5.2.2.713 #dene OUT_REGMODE_SYNC 2 Synchronize the rotation of two motors. 5.2.2.714 #dene OUT_RUNSTATE_HOLD 0x60 Set motor run state to hold at the current position. 5.2.2.715 #dene OUT_RUNSTATE_IDLE 0x00 Disable all power to motors.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
724
5.2.2.716
Enable ramping down from a current Power to a new (lower) Power over a specied TachoLimit goal. 5.2.2.717 #dene OUT_RUNSTATE_RAMPUP 0x10
Enable ramping up from a current Power to a new (higher) Power over a specied TachoLimit goal. 5.2.2.718 #dene OUT_RUNSTATE_RUNNING 0x20 Enable power to motors at the specied Power level. 5.2.2.719 #dene OutputMode 1
Mode eld. Contains a combination of the output mode constants. Read/write. The OUT_MODE_MOTORON bit must be set in order for power to be applied to the motors. Add OUT_MODE_BRAKE to enable electronic braking. Braking means that the output voltage is not allowed to oat between active PWM pulses. It improves the accuracy of motor output but uses more battery power. To use motor regulation include OUT_MODE_REGULATED in the OutputMode value. Use UF_UPDATE_MODE with UpdateFlags to commit changes to this eld. 5.2.2.720 #dene OutputModuleID 0x00020001 The output module ID 5.2.2.721 #dene OutputModuleName "Output.mod" The output module name 5.2.2.722 #dene OutputOffsetActualSpeed(p) (((p)32)+21) R - Holds the current motor speed (1 byte) sbyte 5.2.2.723 #dene OutputOffsetBlockTachoCount(p) (((p)32)+4)
R - Holds current number of counts for the current output block (4 bytes) slong
5.2
725
5.2.2.724
#dene OutputOffsetFlags(p) (((p)32)+18) RW - Holds ags for which data should be updated (1 byte) ubyte
5.2.2.725
#dene OutputOffsetMode(p) (((p)32)+19) RW - Holds motor mode: Run, Break, regulated, ... (1 byte) ubyte
5.2.2.726
#dene OutputOffsetMotorRPM(p) (((p)32)+16) Not updated, will be removed later !! (2 bytes) sword
5.2.2.727
RW - holds extra motor options related to the tachometer limit (1 byte) ubyte (NBC/NXC) 5.2.2.728 #dene OutputOffsetOverloaded(p) (((p)32)+27)
R - True if the motor has been overloaded within speed control regulation (1 byte) ubyte 5.2.2.729 #dene OutputOffsetPwnFreq 96 use for frequency of checking regulation mode (1 byte) ubyte (NBC/NXC) 5.2.2.730 #dene OutputOffsetRegDParameter(p) (((p)32)+24) RW - Holds the D-constant used in the regulation (1 byte) ubyte 5.2.2.731 #dene OutputOffsetRegIParameter(p) (((p)32)+23) RW - Holds the I-constant used in the regulation (1 byte) ubyte 5.2.2.732 #dene OutputOffsetRegMode(p) (((p)32)+26) RW - Tells which regulation mode should be used (1 byte) ubyte
5.2
726
5.2.2.733
#dene OutputOffsetRegPParameter(p) (((p)32)+22) RW - Holds the P-constant used in the regulation (1 byte) ubyte
5.2.2.734
R - Holds current number of counts for the rotation counter to the output (4 bytes) slong 5.2.2.735 #dene OutputOffsetRunState(p) (((p)32)+25) RW - Holds the current RunState in the output module (1 byte) ubyte 5.2.2.736 #dene OutputOffsetSpeed(p) (((p)32)+20) RW - Holds the wanted speed (1 byte) sbyte 5.2.2.737 #dene OutputOffsetSyncTurnParameter(p) (((p)32)+28) RW - Holds the turning parameter need within MoveBlock (1 byte) sbyte 5.2.2.738 #dene OutputOffsetTachoCount(p) (((p)32)+0)
R - Holds current number of counts, since last reset, updated every 1 mS (4 bytes) slong 5.2.2.739 #dene OutputOffsetTachoLimit(p) (((p)32)+12) RW - Holds number of counts to travel, 0 => Run forever (4 bytes) ulong 5.2.2.740 #dene OutputOptions 15
Options eld. Contains a combination of the output options constants. Read/write. Set options for how the output module will act when a tachometer limit is reached. Option constants can be combined with bitwise OR. Use OUT_OPTION_HOLDATLIMIT to have the output module hold the motor when it reaches the tachometer limit. Use OUT_OPTION_RAMPDOWNTOLIMIT to have the output module ramp down the motor power as it approaches the tachometer limit (not yet implemented).
5.2
727
5.2.2.741
#dene Overload 9
Overload eld. Contains a boolean value which is TRUE if the motor is overloaded. Read only. This eld will have a value of 1 (true) if the rmware speed regulation cannot overcome a physical load on the motor. In other words, the motor is turning more slowly than expected. If the motor speed can be maintained in spite of loading then this eld value is zero (false). In order to use this eld the motor must have a nonidle RunState, an OutputMode which includes OUT_MODE_MOTORON and OUT_MODE_REGULATED, and its RegMode must be set to OUT_REGMODE_SPEED.
5.2.2.742
5.2.2.743
5.2.2.744
5.2.2.745
5.2.2.746
5.2.2.747
5.2.2.748
5.2
728
5.2.2.749
5.2.2.750
5.2.2.751
5.2.2.752
5.2.2.753
5.2.2.754
5.2.2.755
5.2.2.756
5.2.2.757
5.2.2.758
5.2
729
5.2.2.759
5.2.2.760
5.2.2.761
5.2.2.762
5.2.2.763
5.2.2.764
#dene PF_MODE_COMBO_PWM 4 Power function mode combo pulse width modulation (PWM)
5.2.2.765
#dene PF_MODE_SINGLE_OUTPUT_CST 6 Power function mode single output clear, set, toggle (CST)
5.2.2.766
#dene PF_MODE_SINGLE_OUTPUT_PWM 4 Power function mode single output pulse width modulation (PWM)
5.2.2.767
5.2.2.768
5.2
730
5.2.2.769
5.2.2.770
5.2.2.771
5.2.2.772
5.2.2.773
5.2.2.774
5.2.2.775
5.2.2.776
5.2.2.777
5.2.2.778
5.2
731
5.2.2.779
5.2.2.780
5.2.2.781
5.2.2.782
5.2.2.783
5.2.2.784
5.2.2.785
5.2.2.786
5.2.2.787
5.2.2.788
5.2
732
5.2.2.789
5.2.2.790
5.2.2.791
5.2.2.792
5.2.2.793
5.2.2.794
5.2.2.795
5.2.2.796
5.2.2.797
5.2.2.798
5.2
733
5.2.2.799
#dene Power 2
Power eld. Contains the desired power level (-100 to 100). Read/write. Specify the power level of the output. The absolute value of Power is a percentage of the full power of the motor. The sign of Power controls the rotation direction. Positive values tell the rmware to turn the motor forward, while negative values turn the motor backward. Use UF_UPDATE_SPEED with UpdateFlags to commit changes to this eld. 5.2.2.800 #dene PROG_ABORT 4 Program has been aborted 5.2.2.801 #dene PROG_ERROR 3 A program error has occurred 5.2.2.802 #dene PROG_IDLE 0 Program state is idle 5.2.2.803 #dene PROG_OK 1 Program state is okay 5.2.2.804 #dene PROG_RESET 5 Program has been reset 5.2.2.805 #dene PROG_RUNNING 2 Program is running 5.2.2.806 #dene PSP_BTNSET1_DOWN 0x02 The PSP-Nx button set 1 down arrow 5.2.2.807 #dene PSP_BTNSET1_L3 0x40 The PSP-Nx button set 1 L3
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
734
5.2.2.808
5.2.2.809
5.2.2.810
5.2.2.811
5.2.2.812
5.2.2.813
5.2.2.814
5.2.2.815
5.2.2.816
5.2.2.817
5.2
735
5.2.2.818
5.2.2.819
5.2.2.820
5.2.2.821
5.2.2.822
5.2.2.823
5.2.2.824
5.2.2.825
5.2.2.826
5.2.2.827
5.2
736
5.2.2.828
5.2.2.829
#dene RAND_MAX 32768 The maximum unsigned int random number returned by rand
5.2.2.830
5.2.2.831
#dene RawValue 2 Raw value eld. Contains the current raw analog sensor value. Read only.
5.2.2.832
5.2.2.833
5.2.2.834
5.2.2.835
5.2.2.836
5.2.2.837
5.2
737
5.2.2.838
5.2.2.839
5.2.2.840
5.2.2.841
5.2.2.842
5.2.2.843
5.2.2.844
5.2.2.845
5.2.2.846
5.2.2.847
5.2
738
5.2.2.848
5.2.2.849
5.2.2.850
5.2.2.851
5.2.2.852
5.2.2.853
5.2.2.854
5.2.2.855
5.2.2.856
5.2.2.857
5.2
739
5.2.2.858
5.2.2.859
5.2.2.860
5.2.2.861
5.2.2.862
5.2.2.863
5.2.2.864
5.2.2.865
5.2.2.866
5.2.2.867
5.2
740
5.2.2.868
5.2.2.869
5.2.2.870
5.2.2.871
5.2.2.872
5.2.2.873
5.2.2.874
5.2.2.875
5.2.2.876
5.2.2.877
5.2
741
5.2.2.878
5.2.2.879
5.2.2.880
5.2.2.881
5.2.2.882
5.2.2.883
5.2.2.884
5.2.2.885
5.2.2.886
5.2.2.887
5.2
742
5.2.2.888
5.2.2.889
5.2.2.890
5.2.2.891
5.2.2.892
5.2.2.893
5.2.2.894
5.2.2.895
5.2.2.896
5.2.2.897
5.2
743
5.2.2.898
5.2.2.899
5.2.2.900
5.2.2.901
5.2.2.902
5.2.2.903
5.2.2.904
5.2.2.905
5.2.2.906
5.2.2.907
5.2
744
5.2.2.908
5.2.2.909
5.2.2.910
5.2.2.911
5.2.2.912
5.2.2.913
5.2.2.914
5.2.2.915
5.2.2.916
5.2.2.917
5.2
745
5.2.2.918
5.2.2.919
5.2.2.920
5.2.2.921
5.2.2.922
5.2.2.923
5.2.2.924
5.2.2.925
5.2.2.926
5.2.2.927
5.2
746
5.2.2.928
5.2.2.929
5.2.2.930
5.2.2.931
5.2.2.932
5.2.2.933
5.2.2.934
5.2.2.935
5.2.2.936
5.2.2.937
5.2
747
5.2.2.938
5.2.2.939
5.2.2.940
5.2.2.941
5.2.2.942
5.2.2.943
5.2.2.944
5.2.2.945
5.2.2.946
5.2.2.947
5.2
748
5.2.2.948
5.2.2.949
5.2.2.950
5.2.2.951
5.2.2.952
5.2.2.953
5.2.2.954
5.2.2.955
5.2.2.956
5.2.2.957
5.2
749
5.2.2.958
5.2.2.959
5.2.2.960
5.2.2.961
5.2.2.962
5.2.2.963
5.2.2.964
5.2.2.965
5.2.2.966
5.2.2.967
5.2
750
5.2.2.968
5.2.2.969
5.2.2.970
5.2.2.971
5.2.2.972
5.2.2.973
5.2.2.974
5.2.2.975
5.2.2.976
5.2.2.977
5.2
751
5.2.2.978
5.2.2.979
5.2.2.980
#dene RegDValue 12
Derivative eld. Contains the derivative constant for the PID motor controller. Read/write. This eld species the derivative term used in the internal proportionalintegral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously. 5.2.2.981 #dene RegIValue 11
Integral eld. Contains the integral constant for the PID motor controller. Read/write. This eld species the integral term used in the internal proportional-integral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously. 5.2.2.982 #dene RegMode 8
Regulation mode eld. Contains one of the regulation mode constants. Read/write. This eld species the regulation mode to use with the specied port(s). It is ignored if the OUT_MODE_REGULATED bit is not set in the OutputMode eld. Unlike the OutputMode eld, RegMode is not a biteld. Only one RegMode value can be set at a time. Speed regulation means that the rmware tries to maintain a certain speed based on the Power setting. The rmware adjusts the PWM duty cycle if the motor is affected by a physical load. This adjustment is reected by the value of the ActualSpeed property. When using speed regulation, do not set Power to its maximum value since the rmware cannot adjust to higher power levels in that situation. Synchronization means the rmware tries to keep two motors in sync regardless of physical loads. Use this mode to maintain a straight path for a mobile robot automatically. Also use this mode with the TurnRatio property to provide proportional turning. Set OUT_REGMODE_SYNC on at least two motor ports in order for synchronization to
5.2
752
function. Setting OUT_REGMODE_SYNC on all three motor ports will result in only the rst two (OUT_A and OUT_B) being synchronized. 5.2.2.983 #dene RegPValue 10
Proportional eld. Contains the proportional constant for the PID motor controller. Read/write. This eld species the proportional term used in the internal proportionalintegral-derivative (PID) control algorithm. Set UF_UPDATE_PID_VALUES to commit changes to RegPValue, RegIValue, and RegDValue simultaneously. 5.2.2.984 #dene RESET_ALL 0x68 Reset all three tachometer counters 5.2.2.985 #dene RESET_BLOCK_COUNT 0x20 Reset the NXT-G block tachometer counter 5.2.2.986 #dene RESET_BLOCKANDTACHO 0x28 Reset both the internal counter and the NXT-G block counter 5.2.2.987 #dene RESET_COUNT 0x08 Reset the internal tachometer counter 5.2.2.988 #dene RESET_NONE 0x00 No counters will be reset 5.2.2.989 #dene RESET_ROTATION_COUNT 0x40 Reset the rotation counter 5.2.2.990 #dene RICArg(_arg) ((_arg)|0x1000)
5.2
753
5.2.2.991
5.2.2.992
Output an RIC ImgRect structure. Parameters: _Pt An ImgPoint. See RICImgPoint. _W The rectangle width. _H The rectangle height.
5.2.2.993
Output an RIC parameterized and mapped argument. Parameters: _mapidx The varmap data address. _arg The parameterized argument you want to pass through a varmap.
5.2
754
5.2.2.994
Output an RIC map element. Parameters: _Domain The map element domain. _Range The map element range.
5.2.2.995
Output an RIC VarMap function. Parameters: _MapElement An entry in the varmap function. At least 2 elements are required. See RICMapElement.
5.2.2.996
#dene RICOpCircle(_CopyOptions, _Point, _Radius) 10, 0, 7, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Radius)&0xFF, (_Radius)>>8
Output an RIC Circle opcode. Parameters: _CopyOptions Circle copy options. See Drawing option constants. _Point The circles center point. See RICImgPoint. _Radius The circles radius.
5.2.2.997
#dene RICOpCopyBits(_CopyOptions, _DataAddr, _SrcRect, _DstPoint) 18, 0, 3, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_DataAddr)&0xFF, (_DataAddr)>>8, _SrcRect, _DstPoint
5.2
755
Parameters: _CopyOptions CopyBits copy options. See Drawing option constants. _DataAddr The address of the sprite from which to copy data. _SrcRect The rectangular portion of the sprite to copy. See RICImgRect. _DstPoint The LCD coordinate to which to copy the data. See RICImgPoint.
5.2.2.998
#dene RICOpDescription(_Options, _Width, _Height) 8, 0, 0, 0, (_Options)&0xFF, (_Options)>>8, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Description opcode. Parameters: _Options RIC options. _Width The total RIC width. _Height The total RIC height.
5.2.2.999
#dene RICOpEllipse(_CopyOptions, _Point, _RadiusX, _RadiusY) 12, 0, 9, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_RadiusX)&0xFF, (_RadiusX)>>8, (_RadiusY)&0xFF, (_RadiusY)>>8
Output an RIC Ellipse opcode. Parameters: _CopyOptions Ellipse copy options. See Drawing option constants. _Point The center of the ellipse. See RICImgPoint. _RadiusX The x-axis radius of the ellipse. _RadiusY The y-axis radius of the ellipse.
5.2.2.1000
5.2
756
Parameters: _CopyOptions Line copy options. See Drawing option constants. _Point1 The starting point of the line. See RICImgPoint. _Point2 The ending point of the line. See RICImgPoint.
5.2.2.1001
#dene RICOpNumBox(_CopyOptions, _Point, _Value) 10, 0, 8, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC NumBox opcode. Parameters: _CopyOptions NumBox copy options. See Drawing option constants. _Point The numbox bottom left corner. See RICImgPoint. _Value The number to draw.
5.2.2.1002
#dene RICOpPixel(_CopyOptions, _Point, _Value) 10, 0, 4, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Value)&0xFF, (_Value)>>8
Output an RIC Pixel opcode. Parameters: _CopyOptions Pixel copy options. See Drawing option constants. _Point The pixel coordinate. See RICImgPoint. _Value The pixel value (unused).
5.2.2.1003
#dene RICOpPolygon(_CopyOptions, _Count, _ThePoints) ((_Count4)+6)&0xFF, ((_Count4)+6)>>8, 10, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, (_Count)&0xFF, (_Count)>>8, _ThePoints
5.2
757
Parameters: _CopyOptions Polygon copy options. See Drawing option constants. _Count The number of points in the polygon. _ThePoints The list of polygon points. See RICPolygonPoints.
5.2.2.1004
#dene RICOpRect(_CopyOptions, _Point, _Width, _Height) 12, 0, 6, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point, (_Width)&0xFF, (_Width)>>8, (_Height)&0xFF, (_Height)>>8
Output an RIC Rect opcode. Parameters: _CopyOptions Rect copy options. See Drawing option constants. _Point The rectangles top left corner. See RICImgPoint. _Width The rectangles width. _Height The rectangles height.
5.2.2.1005
#dene RICOpSprite(_DataAddr, _Rows, _BytesPerRow, _SpriteData) ((_Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)&0xFF, ((_Rows_BytesPerRow)+((_Rows_BytesPerRow)%2)+8)>>8, 1, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_Rows)&0xFF, (_Rows)>>8, (_BytesPerRow)&0xFF, (_BytesPerRow)>>8, _SpriteData
Output an RIC Sprite opcode. Parameters: _DataAddr The address of the sprite. _Rows The number of rows of data. _BytesPerRow The number of bytes per row. _SpriteData The actual sprite data. See RICSpriteData.
5.2
758
5.2.2.1006
#dene RICOpVarMap(_DataAddr, _MapCount, _MapFunction) ((_MapCount4)+6)&0xFF, ((_MapCount4)+6)>>8, 2, 0, (_DataAddr)&0xFF, (_DataAddr)>>8, (_MapCount)&0xFF, (_MapCount)>>8, _MapFunction
Output an RIC VarMap opcode. Parameters: _DataAddr The address of the varmap. _MapCount The number of points in the function. _MapFunction The denition of the varmap function. See RICMapFunction.
5.2.2.1007
Output RIC polygon points. Parameters: _pPoint1 The rst polygon point. See RICImgPoint. _pPoint2 The second polygon point (at least 3 points are required). See RICImgPoint.
5.2.2.1008
Output RIC sprite data. 5.2.2.1009 #dene ROTATE_QUEUE 5 VM should rotate queue 5.2.2.1010 #dene RotationCount 14
5.2
759
Rotation counter eld. Contains the current rotation count. Read only. Return the program-relative position counter value for the specied port. Refer to the UpdateFlags description for information about how to use program-relative position counts. Set the UF_UPDATE_RESET_ROTATION_COUNT ag in UpdateFlags to request that the rmware reset the RotationCount. The sign of RotationCount indicates the direction of rotation. Positive values indicate forward rotation and negative values indicate reverse rotation. Forward and reverse depend on the orientation of the motor. 5.2.2.1011 #dene RunState 6
Run state eld. Contains one of the run state constants. Read/write. Use this eld to specify the running state of an output. Set the RunState to OUT_RUNSTATE_RUNNING to enable power to any output. Use OUT_RUNSTATE_RAMPUP to enable automatic ramping to a new Power level greater than the current Power level. Use OUT_RUNSTATE_RAMPDOWN to enable automatic ramping to a new Power level less than the current Power level. Both the rampup and rampdown bits must be used in conjunction with appropriate TachoLimit and Power values. In this case the rmware smoothly increases or decreases the actual power to the new Power level over the total number of degrees of rotation specied in TachoLimit. 5.2.2.1012 #dene SAMPLERATE_DEFAULT 8000 Default sample rate [sps] 5.2.2.1013 #dene SAMPLERATE_MAX 16000 Max sample rate [sps] 5.2.2.1014 #dene SAMPLERATE_MIN 2000 Min sample rate [sps] 5.2.2.1015 #dene ScaledValue 4
Scaled value eld. Contains the current scaled analog sensor value. Read/write. 5.2.2.1016 #dene SCHAR_MAX 127 The maximum value of the signed char type
5.2
760
5.2.2.1017
#dene SCHAR_MIN -127 The minimum value of the signed char type
5.2.2.1018
5.2.2.1019
5.2.2.1020
5.2.2.1021
5.2.2.1022
5.2.2.1023
5.2.2.1024
5.2.2.1025
5.2.2.1026
5.2
761
5.2.2.1027
5.2.2.1028
5.2.2.1029
5.2.2.1030
5.2.2.1031
5.2.2.1032
5.2.2.1033
5.2.2.1034
5.2.2.1035
5.2.2.1036
5.2
762
5.2.2.1037
5.2.2.1038
5.2.2.1039
5.2.2.1040
5.2.2.1041
5.2.2.1042
5.2.2.1043
5.2.2.1044
5.2.2.1045
5.2.2.1046
5.2
763
5.2.2.1047
5.2.2.1048
5.2.2.1049
5.2.2.1050
5.2.2.1051
5.2.2.1052
5.2.2.1053
5.2.2.1054
5.2.2.1055
5.2.2.1056
5.2
764
5.2.2.1057
5.2.2.1058
5.2.2.1059
5.2.2.1060
5.2.2.1061
5.2.2.1062
5.2.2.1063
5.2.2.1064
5.2.2.1065
5.2.2.1066
5.2
765
5.2.2.1067
5.2.2.1068
5.2.2.1069
5.2.2.1070
5.2.2.1071
5.2.2.1072
5.2.2.1073
5.2.2.1074
5.2.2.1075
5.2.2.1076
5.2
766
5.2.2.1077
5.2.2.1078
5.2.2.1079
5.2.2.1080
5.2.2.1081
5.2.2.1082
5.2.2.1083
5.2.2.1084
5.2
767
5.2.2.1085
5.2.2.1086
5.2.2.1087
5.2.2.1088
5.2.2.1089
5.2.2.1090
5.2.2.1091
5.2.2.1092
5.2.2.1093
5.2.2.1094
5.2
768
5.2.2.1095
5.2.2.1096
5.2.2.1097
5.2.2.1098
5.2.2.1099
5.2.2.1100
5.2.2.1101
5.2.2.1102
#dene SIZE_OF_BT_CONNECT_TABLE 4
Size of Bluetooth connection table -- Index 0 is always incoming connection 5.2.2.1103 #dene SIZE_OF_BT_DEVICE_TABLE 30 Size of Bluetooth device table 5.2.2.1104 #dene SIZE_OF_BT_NAME 16 Size of Bluetooth name
5.2
769
5.2.2.1105
5.2.2.1106
5.2.2.1107
5.2.2.1108
5.2.2.1109
5.2.2.1110
5.2.2.1111
5.2.2.1112
5.2.2.1113
5.2.2.1114
5.2
770
5.2.2.1115
5.2.2.1116
5.2.2.1117
5.2.2.1118
5.2.2.1119
5.2.2.1120
5.2.2.1121
5.2.2.1122
5.2.2.1123
5.2.2.1124
5.2
771
5.2.2.1125
5.2.2.1126
5.2.2.1127
5.2.2.1128
5.2.2.1129
5.2.2.1130
5.2.2.1131
5.2.2.1132
5.2.2.1133
5.2.2.1134
5.2
772
5.2.2.1135
5.2.2.1136
5.2.2.1137
5.2.2.1138
5.2.2.1139
#dene SoundPlayTone 10 Play a simple tone with the specied frequency and duration
5.2.2.1140
5.2.2.1141
5.2.2.1142
5.2.2.1143
5.2.2.1144
5.2
773
5.2.2.1145
5.2.2.1146
5.2.2.1147
5.2.2.1148
5.2.2.1149
5.2.2.1150
5.2.2.1151
#dene STEPICON_2 1
5.2.2.1152
#dene STEPICON_3 2
5.2.2.1153
#dene STEPICON_4 3
5.2.2.1154
5.2
774
5.2.2.1155
#dene STEPICONS 5
5.2.2.1156
5.2.2.1157
5.2.2.1158
#dene TachoCount 4
Internal tachometer count eld. Contains the current internal tachometer count. Read only. Return the internal position counter value for the specied output. The internal count is reset automatically when a new goal is set using the TachoLimit and the UF_UPDATE_TACHO_LIMIT ag. Set the UF_UPDATE_RESET_COUNT ag in UpdateFlags to reset TachoCount and cancel any TachoLimit. The sign of TachoCount indicates the motor rotation direction. 5.2.2.1159 #dene TachoLimit 5
Tachometer limit eld. Contains the current tachometer limit. Read/write. Specify the number of degrees the motor should rotate. Use UF_UPDATE_TACHO_LIMIT with the UpdateFlags eld to commit changes to the TachoLimit. The value of this eld is a relative distance from the current motor position at the moment when the UF_UPDATE_TACHO_LIMIT ag is processed. 5.2.2.1160 #dene TEMP_FQ_1 0x00 Set fault queue 1 5.2.2.1161 #dene TEMP_FQ_2 0x08 Set fault queue 2
5.2
775
5.2.2.1162
5.2.2.1163
5.2.2.1164
5.2.2.1165
5.2.2.1166
5.2.2.1167
5.2.2.1168
#dene TEMP_REG_CONFIG 0x01 The register for reading/writing sensor conguration values
5.2.2.1169
#dene TEMP_REG_TEMP 0x00 The register where temperature values can be read
5.2.2.1170
#dene TEMP_REG_THIGH 0x03 The register where temperature high values can be read
5.2.2.1171
#dene TEMP_REG_TLOW 0x02 The register where temperature low values can be read
5.2
776
5.2.2.1172
5.2.2.1173
5.2.2.1174
5.2.2.1175
5.2.2.1176
5.2.2.1177
5.2.2.1178
5.2.2.1179
5.2.2.1180
5.2.2.1181
5.2
777
5.2.2.1182
5.2.2.1183
5.2.2.1184
5.2.2.1185
5.2.2.1186
5.2.2.1187
5.2.2.1188
5.2.2.1189
5.2.2.1190
5.2.2.1191
5.2
778
5.2.2.1192
5.2.2.1193
5.2.2.1194
5.2.2.1195
5.2.2.1196
5.2.2.1197
5.2.2.1198
5.2.2.1199
5.2.2.1200
5.2.2.1201
5.2
779
5.2.2.1202
5.2.2.1203
5.2.2.1204
5.2.2.1205
5.2.2.1206
5.2.2.1207
5.2.2.1208
5.2.2.1209
5.2.2.1210
5.2.2.1211
5.2
780
5.2.2.1212
5.2.2.1213
5.2.2.1214
5.2.2.1215
5.2.2.1216
5.2.2.1217
5.2.2.1218
5.2.2.1219
5.2.2.1220
5.2.2.1221
5.2
781
5.2.2.1222
5.2.2.1223
5.2.2.1224
5.2.2.1225
5.2.2.1226
5.2.2.1227
5.2.2.1228
5.2.2.1229
5.2.2.1230
5.2.2.1231
5.2
782
5.2.2.1232
5.2.2.1233
5.2.2.1234
5.2.2.1235
5.2.2.1236
5.2.2.1237
5.2.2.1238
5.2.2.1239
5.2.2.1240
5.2.2.1241
5.2
783
5.2.2.1242
5.2.2.1243
5.2.2.1244
5.2.2.1245
5.2.2.1246
5.2.2.1247
5.2.2.1248
5.2.2.1249
5.2.2.1250
5.2
784
5.2.2.1251
#dene TurnRatio 7
Turn ratio eld. Contains the current turn ratio. Only applicable when synchronizing multiple motors. Read/write. Use this eld to specify a proportional turning ratio. This eld must be used in conjunction with other eld values: OutputMode must include OUT_MODE_MOTORON and OUT_MODE_REGULATED, RegMode must be set to OUT_REGMODE_SYNC, RunState must not be OUT_RUNSTATE_IDLE, and Power must be non-zero. There are only three valid combinations of left and right motors for use with TurnRatio: OUT_AB, OUT_BC, and OUT_AC. In each of these three options the rst motor listed is considered to be the left motor and the second motor is the right motor, regardless of the physical conguration of the robot. Negative TurnRatio values shift power toward the left motor while positive values shift power toward the right motor. An absolute value of 50 usually results in one motor stopping. An absolute value of 100 usually results in two motors turning in opposite directions at equal power. 5.2.2.1252 #dene Type 0 Type eld. Contains one of the sensor type constants. Read/write. 5.2.2.1253 #dene UCHAR_MAX 255 The maximum value of the unsigned char type 5.2.2.1254 #dene UF_PENDING_UPDATES 0x80 Are there any pending motor updates? 5.2.2.1255 #dene UF_UPDATE_MODE 0x01 Commits changes to the OutputMode output property 5.2.2.1256 #dene UF_UPDATE_PID_VALUES 0x10 Commits changes to the PID motor regulation properties 5.2.2.1257 #dene UF_UPDATE_RESET_BLOCK_COUNT 0x20 Resets the NXT-G block-relative rotation counter
5.2
785
5.2.2.1258
Resets all rotation counters, cancels the current goal, and resets the rotation error-correction system 5.2.2.1259 #dene UF_UPDATE_RESET_ROTATION_COUNT 0x40 Resets the program-relative (user) rotation counter 5.2.2.1260 #dene UF_UPDATE_SPEED 0x02 Commits changes to the Power output property 5.2.2.1261 #dene UF_UPDATE_TACHO_LIMIT 0x04 Commits changes to the TachoLimit output property 5.2.2.1262 #dene UI_BT_CONNECT_REQUEST 0x40 RW - BT get connect accept in progress 5.2.2.1263 #dene UI_BT_ERROR_ATTENTION 0x08 W - BT error attention 5.2.2.1264 #dene UI_BT_PIN_REQUEST 0x80 RW - BT get pin code 5.2.2.1265 #dene UI_BT_STATE_CONNECTED 0x02 RW - BT connected to something 5.2.2.1266 #dene UI_BT_STATE_OFF 0x04 RW - BT power off 5.2.2.1267 #dene UI_BT_STATE_VISIBLE 0x01 RW - BT visible
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
786
5.2.2.1268
5.2.2.1269
5.2.2.1270
5.2.2.1271
5.2.2.1272
5.2.2.1273
5.2.2.1274
5.2.2.1275
5.2.2.1276
5.2.2.1277
5.2
787
5.2.2.1278
5.2.2.1279
5.2.2.1280
5.2.2.1281
5.2.2.1282
5.2.2.1283
5.2.2.1284
5.2.2.1285
5.2.2.1286
5.2.2.1287
5.2
788
5.2.2.1288
5.2.2.1289
5.2.2.1290
5.2.2.1291
5.2.2.1292
5.2.2.1293
5.2.2.1294
5.2.2.1295
5.2.2.1296
5.2.2.1297
5.2
789
5.2.2.1298
#dene UI_VM_IDLE 0
VM_IDLE: Just sitting around. Request to run program will lead to ONE of the VM_RUN states. 5.2.2.1299 #dene UI_VM_RESET1 4 VM_RESET2: Final clean up and return to IDLE 5.2.2.1300 #dene UI_VM_RESET2 5
VM_RESET1: Initialize state variables and some I/O devices -- executed when programs end 5.2.2.1301 #dene UI_VM_RUN_FREE 1
VM_RUN_FREE: Attempt to run as many instructions as possible within our timeslice 5.2.2.1302 #dene UI_VM_RUN_PAUSE 3
VM_RUN_PAUSE: Program still "active", but someone has asked us to pause 5.2.2.1303 #dene UI_VM_RUN_SINGLE 2 VM_RUN_SINGLE: Run exactly one instruction per timeslice 5.2.2.1304 #dene UIModuleID 0x000C0001 The Ui module ID 5.2.2.1305 #dene UIModuleName "Ui.mod" The Ui module name 5.2.2.1306 #dene UINT_MAX 65535 The maximum value of the unsigned int type
5.2
790
5.2.2.1307
#dene UIOffsetAbortFlag 40 RW - Long Abort (true == use long press to abort) (1 byte)
5.2.2.1308
5.2.2.1309
5.2.2.1310
#dene UIOffsetBluetoothState 31
W - Bluetooth state (0=on, 1=visible, 2=conn, 3=conn.visible, 4=off, 5=dfu) (1 byte) 5.2.2.1311 #dene UIOffsetButton 28 RW - Insert button (buttons enumerated above) (1 byte) 5.2.2.1312 #dene UIOffsetError 37 W - Error code (1 byte) 5.2.2.1313 #dene UIOffsetFlags 26 RW - Update command ags (ags enumerated above) (1 byte) 5.2.2.1314 #dene UIOffsetForceOff 39 W - Force off (> 0 = off) (1 byte) 5.2.2.1315 #dene UIOffsetLMSlename 6 W - LMS lename to execute (Try It) (20 bytes) 5.2.2.1316 #dene UIOffsetOBPPointer 38 W - Actual OBP step (0 - 4) (1 byte)
5.2
791
5.2.2.1317
5.2.2.1318
5.2.2.1319
5.2.2.1320
5.2.2.1321
5.2.2.1322
5.2.2.1323
5.2.2.1324
5.2.2.1325
#dene ULONG_MAX 4294967295 The maximum value of the unsigned long type
5.2.2.1326
5.2
792
5.2.2.1327
#dene UpdateFlags 0
Update ags eld. Contains a combination of the update ag constants. Read/write. Use UF_UPDATE_MODE, UF_UPDATE_SPEED, UF_UPDATE_TACHO_LIMIT, and UF_UPDATE_PID_VALUES along with other elds to commit changes to the state of outputs. Set the appropriate ags after setting one or more of the output elds in order for the changes to actually go into affect. 5.2.2.1328 #dene US_CMD_CONTINUOUS 0x02
Command to put the ultrasonic sensor into continuous polling mode (default) 5.2.2.1329 #dene US_CMD_EVENTCAPTURE 0x03 Command to put the ultrasonic sensor into event capture mode 5.2.2.1330 #dene US_CMD_OFF 0x00 Command to turn off the ultrasonic sensor 5.2.2.1331 #dene US_CMD_SINGLESHOT 0x01 Command to put the ultrasonic sensor into single shot mode 5.2.2.1332 #dene US_CMD_WARMRESET 0x04 Command to warm reset the ultrasonic sensor 5.2.2.1333 #dene US_REG_ACTUAL_ZERO 0x50 The register address used to store the actual zero value 5.2.2.1334 #dene US_REG_CM_INTERVAL 0x40 The register address used to store the CM interval 5.2.2.1335 #dene US_REG_FACTORY_ACTUAL_ZERO 0x11
The register address containing the factory setting for the actual zero value
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
5.2
793
5.2.2.1336
The register address containing the factory setting for the scale divisor value 5.2.2.1337 #dene US_REG_FACTORY_SCALE_FACTOR 0x12
The register address containing the factory setting for the scale factor value 5.2.2.1338 #dene US_REG_MEASUREMENT_UNITS 0x14 The register address containing the measurement units (degrees C or F) 5.2.2.1339 #dene US_REG_SCALE_DIVISOR 0x52 The register address used to store the scale divisor value 5.2.2.1340 #dene US_REG_SCALE_FACTOR 0x51 The register address used to store the scale factor value 5.2.2.1341 #dene USB_CMD_READY 0x01 A constant representing usb direct command 5.2.2.1342 #dene USB_PROTOCOL_OVERHEAD 2 Size of USB Overhead in bytes -- Command type byte + Command 5.2.2.1343 #dene USHRT_MAX 65535 The maximum value of the unsigned short type 5.2.2.1344 #dene WriteSemData 41 Write motor semaphore data
Index
A simple 3D graphics library, 217 ActualSpeed NBCCommon.h, 651 OutputFieldConstants, 486 Array operation constants, 395 ArrayOpConstants OPARR_MAX, 395 OPARR_MEAN, 395 OPARR_MIN, 395 OPARR_SORT, 395 OPARR_STD, 396 OPARR_SUM, 396 OPARR_SUMSQR, 396 bcd2dec cmathAPI, 394 BITMAP_1 DisplayModuleConstants, 508 NBCCommon.h, 652 BITMAP_2 DisplayModuleConstants, 508 NBCCommon.h, 652 BITMAP_3 DisplayModuleConstants, 508 NBCCommon.h, 652 BITMAP_4 DisplayModuleConstants, 508 NBCCommon.h, 652 BITMAPS DisplayModuleConstants, 509 NBCCommon.h, 652 BlockTachoCount NBCCommon.h, 652 OutputFieldConstants, 486 Bluetooth hardware status constants, 529 Bluetooth State constants, 527 Bluetooth state status constants, 528 BluetoothState constants, 457 BluetoothStatus CommModuleFunctions, 347 BluetoothWrite CommModuleFunctions, 347 BREAKOUT_REQ CommandVMState, 414 NBCCommon.h, 652 BT_ARM_CMD_MODE CommBtStateConstants, 528 NBCCommon.h, 652 BT_ARM_DATA_MODE CommBtStateConstants, 528 NBCCommon.h, 653 BT_ARM_OFF CommBtStateConstants, 528 NBCCommon.h, 653 BT_BRICK_PORT_OPEN CommBtStateStatusConstants, 528 NBCCommon.h, 653 BT_BRICK_VISIBILITY CommBtStateStatusConstants, 528 NBCCommon.h, 653 BT_CMD_BYTE CommMiscConstants, 526 NBCCommon.h, 653 BT_CMD_READY CommStatusCodesConstants, 542 NBCCommon.h, 653 BT_CONNECTION_0_ENABLE CommBtStateStatusConstants, 529 NBCCommon.h, 653 BT_CONNECTION_1_ENABLE CommBtStateStatusConstants, 529 NBCCommon.h, 653 BT_CONNECTION_2_ENABLE CommBtStateStatusConstants, 529 NBCCommon.h, 653 BT_CONNECTION_3_ENABLE CommBtStateStatusConstants, 529 NBCCommon.h, 653 BT_DEFAULT_INQUIRY_MAX CommMiscConstants, 526 NBCCommon.h, 654 BT_DEFAULT_INQUIRY_TIMEOUT_LO CommMiscConstants, 526 NBCCommon.h, 654
INDEX
795
BT_DEVICE_AWAY CommDeviceStatusConstants, 539 NBCCommon.h, 654 BT_DEVICE_EMPTY CommDeviceStatusConstants, 539 NBCCommon.h, 654 BT_DEVICE_KNOWN CommDeviceStatusConstants, 539 NBCCommon.h, 654 BT_DEVICE_NAME CommDeviceStatusConstants, 539 NBCCommon.h, 654 BT_DEVICE_UNKNOWN CommDeviceStatusConstants, 539 NBCCommon.h, 654 BT_DISABLE CommBtHwStatusConstants, 529 NBCCommon.h, 654 BT_ENABLE CommBtHwStatusConstants, 529 NBCCommon.h, 654 BTN1 ButtonNameConstants, 448 NBCCommon.h, 654 BTN2 ButtonNameConstants, 448 NBCCommon.h, 655 BTN3 ButtonNameConstants, 448 NBCCommon.h, 655 BTN4 ButtonNameConstants, 448 NBCCommon.h, 655 BTNCENTER ButtonNameConstants, 448 NBCCommon.h, 655 BTNEXIT ButtonNameConstants, 448 NBCCommon.h, 655 BTNLEFT ButtonNameConstants, 448 NBCCommon.h, 655 BTNRIGHT ButtonNameConstants, 448 NBCCommon.h, 655 BTNSTATE_LONG_PRESSED_EV
ButtonStateConstants, 449 NBCCommon.h, 655 BTNSTATE_LONG_RELEASED_EV ButtonStateConstants, 449 NBCCommon.h, 655 BTNSTATE_NONE ButtonStateConstants, 449 NBCCommon.h, 655 BTNSTATE_PRESSED_EV ButtonStateConstants, 449 NBCCommon.h, 656 BTNSTATE_PRESSED_STATE ButtonStateConstants, 450 NBCCommon.h, 656 BTNSTATE_SHORT_RELEASED_EV ButtonStateConstants, 450 NBCCommon.h, 656 Button module, 82 Button module constants, 447 Button module functions, 324 Button module IOMAP offsets, 450 Button name constants, 447 ButtonIOMAP ButtonOffsetLongPressCnt, 450 ButtonOffsetLongRelCnt, 450 ButtonOffsetPressedCnt, 450 ButtonOffsetRelCnt, 451 ButtonOffsetShortRelCnt, 451 ButtonOffsetState, 451 ButtonModuleFunctions GetButtonLongPressCount, 326 GetButtonLongReleaseCount, 326 GetButtonPressCount, 326 GetButtonReleaseCount, 326 GetButtonShortReleaseCount, 327 GetButtonState, 327 ReadButtonEx, 327 SetButtonLongPressCount, 327 SetButtonLongReleaseCount, 328 SetButtonPressCount, 328 SetButtonReleaseCount, 328 SetButtonShortReleaseCount, 328 SetButtonState, 329 ButtonModuleID ModuleIDConstants, 213 NBCCommon.h, 656
INDEX
796
ButtonModuleName ModuleNameConstants, 212 NBCCommon.h, 656 ButtonNameConstants BTN1, 448 BTN2, 448 BTN3, 448 BTN4, 448 BTNCENTER, 448 BTNEXIT, 448 BTNLEFT, 448 BTNRIGHT, 448 NO_OF_BTNS, 448 ButtonOffsetLongPressCnt ButtonIOMAP, 450 NBCCommon.h, 656 ButtonOffsetLongRelCnt ButtonIOMAP, 450 NBCCommon.h, 656 ButtonOffsetPressedCnt ButtonIOMAP, 450 NBCCommon.h, 656 ButtonOffsetRelCnt ButtonIOMAP, 451 NBCCommon.h, 656 ButtonOffsetShortRelCnt ButtonIOMAP, 451 NBCCommon.h, 656 ButtonOffsetState ButtonIOMAP, 451 NBCCommon.h, 657 ButtonState constants, 449 ButtonStateConstants BTNSTATE_LONG_PRESSED_EV, 449 BTNSTATE_LONG_RELEASED_EV, 449 BTNSTATE_NONE, 449 BTNSTATE_PRESSED_EV, 449 BTNSTATE_PRESSED_STATE, 450 BTNSTATE_SHORT_RELEASED_EV, 450 CHAR_BIT NBCCommon.h, 657
NXTLimits, 611 CHAR_MAX NBCCommon.h, 657 NXTLimits, 611 CHAR_MIN NBCCommon.h, 657 NXTLimits, 611 CircleOut DisplayModuleFunctions, 281 CircleOutEx DisplayModuleFunctions, 281 ClearLine DisplayModuleFunctions, 282 ClearScreen DisplayModuleFunctions, 282 ClearSensor InputModuleFunctions, 248 CloseFile LoaderModuleFunctions, 384 CLUMP_DONE CommandVMState, 414 NBCCommon.h, 657 CLUMP_SUSPEND CommandVMState, 414 NBCCommon.h, 657 cmath API, 394 cmathAPI bcd2dec, 394 cmpconst EQ, 72 GT, 72 GTEQ, 72 LT, 73 LTEQ, 73 NEQ, 73 Coast OutputModuleFunctions, 228 CoastEx OutputModuleFunctions, 229 Color calibration constants, 471 Color calibration state constants, 470 Color sensor array indices, 468 Color values, 469 ColorSensorRead NBCCommon.h, 657 SysCallConstants, 398
INDEX
797
COM_CHANNEL_FOUR_ACTIVE LowSpeedStateConstants, 494 NBCCommon.h, 657 COM_CHANNEL_NONE_ACTIVE LowSpeedStateConstants, 494 NBCCommon.h, 657 COM_CHANNEL_ONE_ACTIVE LowSpeedStateConstants, 494 NBCCommon.h, 657 COM_CHANNEL_THREE_ACTIVE LowSpeedStateConstants, 494 NBCCommon.h, 658 COM_CHANNEL_TWO_ACTIVE LowSpeedStateConstants, 494 NBCCommon.h, 658 Comm module, 81 Comm module constants, 524 Comm module functions, 338 Comm module interface function constants, 539 Comm module IOMAP offsets, 543 Comm module status code constants, 542 Command module, 79 Command module constants, 80 Command module functions, 305 Command module IOMAP offsets, 421 CommandCommErrors ERR_COMM_BUFFER_FULL, 419 ERR_COMM_BUS_ERR, 419 ERR_COMM_CHAN_INVALID, 419 ERR_COMM_CHAN_NOT_READY, 419 CommandFatalErrors ERR_ARG, 415 ERR_BAD_POOL_SIZE, 415 ERR_BAD_PTR, 416 ERR_CLUMP_COUNT, 416 ERR_DEFAULT_OFFSETS, 416 ERR_FILE, 416 ERR_INSANE_OFFSET, 416 ERR_INSTR, 416 ERR_LOADER_ERR, 416 ERR_MEM, 416 ERR_MEMMGR_FAIL, 416
ERR_NO_ACTIVE_CLUMP, 417 ERR_NO_CODE, 417 ERR_NON_FATAL, 417 ERR_SPOTCHECK_FAIL, 417 ERR_VER, 417 CommandFlags constants, 452 CommandGenErrors ERR_INVALID_FIELD, 418 ERR_INVALID_PORT, 418 ERR_INVALID_QUEUE, 418 ERR_INVALID_SIZE, 418 ERR_NO_PROG, 418 CommandIOMAP CommandOffsetActivateFlag, 422 CommandOffsetAwake, 422 CommandOffsetDeactivateFlag, 422 CommandOffsetFileName, 422 CommandOffsetFormatString, 422 CommandOffsetMemoryPool, 422 CommandOffsetOffsetDS, 422 CommandOffsetOffsetDVA, 422 CommandOffsetPRCHandler, 422 CommandOffsetProgStatus, 422 CommandOffsetSyncTick, 423 CommandOffsetSyncTime, 423 CommandOffsetTick, 423 CommandModuleConstants NO_ERR, 81 STAT_COMM_PENDING, 81 STAT_MSG_EMPTY_MAILBOX, 81 CommandModuleFunctions GetButtonModuleValue, 309 GetCommandModuleBytes, 309 GetCommandModuleValue, 309 GetCommModuleBytes, 310 GetCommModuleValue, 310 GetDisplayModuleBytes, 310 GetDisplayModuleValue, 311 GetFirstTick, 311 GetInputModuleValue, 311 GetIOMapBytes, 312 GetIOMapBytesByID, 312 GetIOMapValue, 313 GetIOMapValueByID, 313 GetLoaderModuleValue, 314
INDEX
798
GetLowSpeedModuleBytes, 314 GetLowSpeedModuleValue, 314 GetOutputModuleValue, 315 GetSoundModuleValue, 315 GetUIModuleValue, 316 ResetSleepTimer, 316 SetButtonModuleValue, 316 SetCommandModuleBytes, 316 SetCommandModuleValue, 317 SetCommModuleBytes, 317 SetCommModuleValue, 318 SetDisplayModuleBytes, 318 SetDisplayModuleValue, 318 SetInputModuleValue, 319 SetIOCtrlModuleValue, 319 SetIOMapBytes, 320 SetIOMapBytesByID, 320 SetIOMapValue, 321 SetIOMapValueByID, 321 SetLoaderModuleValue, 321 SetLowSpeedModuleBytes, 322 SetLowSpeedModuleValue, 322 SetOutputModuleValue, 323 SetSoundModuleValue, 323 SetUIModuleValue, 323 Wait, 324 CommandModuleID ModuleIDConstants, 213 NBCCommon.h, 658 CommandModuleName ModuleNameConstants, 212 NBCCommon.h, 658 CommandOffsetActivateFlag CommandIOMAP, 422 NBCCommon.h, 658 CommandOffsetAwake CommandIOMAP, 422 NBCCommon.h, 658 CommandOffsetDeactivateFlag CommandIOMAP, 422 NBCCommon.h, 658 CommandOffsetFileName CommandIOMAP, 422 NBCCommon.h, 658 CommandOffsetFormatString CommandIOMAP, 422
NBCCommon.h, 658 CommandOffsetMemoryPool CommandIOMAP, 422 NBCCommon.h, 658 CommandOffsetOffsetDS CommandIOMAP, 422 NBCCommon.h, 659 CommandOffsetOffsetDVA CommandIOMAP, 422 NBCCommon.h, 659 CommandOffsetPRCHandler CommandIOMAP, 422 NBCCommon.h, 659 CommandOffsetProgStatus CommandIOMAP, 422 NBCCommon.h, 659 CommandOffsetSyncTick CommandIOMAP, 423 NBCCommon.h, 659 CommandOffsetSyncTime CommandIOMAP, 423 NBCCommon.h, 659 CommandOffsetTick CommandIOMAP, 423 NBCCommon.h, 659 CommandProgStatus PROG_ABORT, 420 PROG_ERROR, 420 PROG_IDLE, 420 PROG_OK, 421 PROG_RESET, 421 PROG_RUNNING, 421 CommandRCErrors ERR_RC_BAD_PACKET, 419 ERR_RC_FAILED, 419 ERR_RC_ILLEGAL_VAL, 420 ERR_RC_UNKNOWN_CMD, 420 CommandVMState BREAKOUT_REQ, 414 CLUMP_DONE, 414 CLUMP_SUSPEND, 414 ROTATE_QUEUE, 414 STOP_REQ, 414 TIMES_UP, 415 CommBTCheckStatus NBCCommon.h, 659
INDEX
799
SysCallConstants, 398 CommBTConnection NBCCommon.h, 659 SysCallConstants, 398 CommBtHwStatusConstants BT_DISABLE, 529 BT_ENABLE, 529 CommBTOnOff NBCCommon.h, 659 SysCallConstants, 398 CommBTRead NBCCommon.h, 660 SysCallConstants, 398 CommBtStateConstants BT_ARM_CMD_MODE, 528 BT_ARM_DATA_MODE, 528 BT_ARM_OFF, 528 CommBtStateStatusConstants BT_BRICK_PORT_OPEN, 528 BT_BRICK_VISIBILITY, 528 BT_CONNECTION_0_ENABLE, 529 BT_CONNECTION_1_ENABLE, 529 BT_CONNECTION_2_ENABLE, 529 BT_CONNECTION_3_ENABLE, 529 CommBTWrite NBCCommon.h, 660 SysCallConstants, 398 CommDeviceStatusConstants BT_DEVICE_AWAY, 539 BT_DEVICE_EMPTY, 539 BT_DEVICE_KNOWN, 539 BT_DEVICE_NAME, 539 BT_DEVICE_UNKNOWN, 539 CommExecuteFunction NBCCommon.h, 660 SysCallConstants, 398 CommHiSpeedBaudConstants HS_BAUD_115200, 533 HS_BAUD_1200, 533 HS_BAUD_14400, 533 HS_BAUD_19200, 534 HS_BAUD_230400, 534
HS_BAUD_2400, 534 HS_BAUD_28800, 534 HS_BAUD_3600, 534 HS_BAUD_38400, 534 HS_BAUD_460800, 534 HS_BAUD_4800, 534 HS_BAUD_57600, 534 HS_BAUD_7200, 534 HS_BAUD_76800, 535 HS_BAUD_921600, 535 HS_BAUD_9600, 535 CommHiSpeedCombinedConstants HS_MODE_7E1, 538 HS_MODE_8N1, 538 CommHiSpeedCtrlConstants HS_CTRL_EXIT, 532 HS_CTRL_INIT, 532 HS_CTRL_UART, 532 CommHiSpeedDataBitsConstants HS_MODE_5_DATA, 535 HS_MODE_6_DATA, 535 HS_MODE_7_DATA, 535 HS_MODE_8_DATA, 536 CommHiSpeedFlagsConstants HS_UPDATE, 531 CommHiSpeedParityConstants HS_MODE_E_PARITY, 537 HS_MODE_M_PARITY, 537 HS_MODE_N_PARITY, 537 HS_MODE_O_PARITY, 537 HS_MODE_S_PARITY, 537 CommHiSpeedStateConstants HS_DISABLE, 531 HS_ENABLE, 531 HS_INIT_RECEIVER, 531 HS_INITIALISE, 532 HS_SEND_DATA, 532 CommHiSpeedStopBitsConstants HS_MODE_10_STOP, 536 HS_MODE_15_STOP, 536 HS_MODE_20_STOP, 536 CommHSCheckStatus NBCCommon.h, 660 SysCallConstants, 398 CommHSControl NBCCommon.h, 660
INDEX
800
SysCallConstants, 399 CommHSRead NBCCommon.h, 660 SysCallConstants, 399 CommHSWrite NBCCommon.h, 660 SysCallConstants, 399 CommInterfaceConstants INTF_BTOFF, 540 INTF_BTON, 540 INTF_CONNECT, 540 INTF_CONNECTBYNAME, 540 INTF_CONNECTREQ, 540 INTF_DISCONNECT, 540 INTF_DISCONNECTALL, 541 INTF_EXTREAD, 541 INTF_FACTORYRESET, 541 INTF_OPENSTREAM, 541 INTF_PINREQ, 541 INTF_REMOVEDEVICE, 541 INTF_SEARCH, 541 INTF_SENDDATA, 541 INTF_SENDFILE, 541 INTF_SETBTNAME, 541 INTF_SETCMDMODE, 542 INTF_STOPSEARCH, 542 INTF_VISIBILITY, 542 CommIOMAP CommOffsetBrickDataBdAddr, 545 CommOffsetBrickDataBluecoreVersion, 545 CommOffsetBrickDataBtHwStatus, 545 CommOffsetBrickDataBtStateStatus, 545 CommOffsetBrickDataName, 545 CommOffsetBrickDataTimeOutValue, 545 CommOffsetBtConnectTableBdAddr, 545 CommOffsetBtConnectTableClassOfDevice, 545 CommOffsetBtConnectTableHandleNr, 545 CommOffsetBtConnectTableLinkQuality, 546
CommOffsetBtConnectTableName, 546 CommOffsetBtConnectTablePinCode, 546 CommOffsetBtConnectTableStreamStatus, 546 CommOffsetBtDeviceCnt, 546 CommOffsetBtDeviceNameCnt, 546 CommOffsetBtDeviceTableBdAddr, 546 CommOffsetBtDeviceTableClassOfDevice, 546 CommOffsetBtDeviceTableDeviceStatus, 546 CommOffsetBtDeviceTableName, 546 CommOffsetBtInBufBuf, 547 CommOffsetBtInBufInPtr, 547 CommOffsetBtInBufOutPtr, 547 CommOffsetBtOutBufBuf, 547 CommOffsetBtOutBufInPtr, 547 CommOffsetBtOutBufOutPtr, 547 CommOffsetHsFlags, 547 CommOffsetHsInBufBuf, 547 CommOffsetHsInBufInPtr, 547 CommOffsetHsInBufOutPtr, 547 CommOffsetHsMode, 548 CommOffsetHsOutBufBuf, 548 CommOffsetHsOutBufInPtr, 548 CommOffsetHsOutBufOutPtr, 548 CommOffsetHsSpeed, 548 CommOffsetHsState, 548 CommOffsetPFunc, 548 CommOffsetPFuncTwo, 548 CommOffsetUsbInBufBuf, 548 CommOffsetUsbInBufInPtr, 548 CommOffsetUsbInBufOutPtr, 549 CommOffsetUsbOutBufBuf, 549 CommOffsetUsbOutBufInPtr, 549 CommOffsetUsbOutBufOutPtr, 549 CommOffsetUsbPollBufBuf, 549 CommOffsetUsbPollBufInPtr, 549 CommOffsetUsbPollBufOutPtr, 549 CommOffsetUsbState, 549 CommLSCheckStatus NBCCommon.h, 660
INDEX
801
SysCallConstants, 399 CommLSRead NBCCommon.h, 660 SysCallConstants, 399 CommLSWrite NBCCommon.h, 660 SysCallConstants, 399 CommLSWriteEx NBCCommon.h, 661 SysCallConstants, 399 CommMiscConstants BT_CMD_BYTE, 526 BT_DEFAULT_INQUIRY_MAX, 526 BT_DEFAULT_INQUIRY_TIMEOUT_LO, 526 MAX_BT_MSG_SIZE, 526 SIZE_OF_BDADDR, 526 SIZE_OF_BRICK_NAME, 526 SIZE_OF_BT_CONNECT_TABLE, 526 SIZE_OF_BT_DEVICE_TABLE, 526 SIZE_OF_BT_NAME, 526 SIZE_OF_BT_PINCODE, 526 SIZE_OF_BTBUF, 527 SIZE_OF_CLASS_OF_DEVICE, 527 SIZE_OF_HSBUF, 527 SIZE_OF_USBBUF, 527 SIZE_OF_USBDATA, 527 USB_PROTOCOL_OVERHEAD, 527 CommModuleFunctions BluetoothStatus, 347 BluetoothWrite, 347 GetBrickDataAddress, 347 GetBrickDataBluecoreVersion, 347 GetBrickDataBtHardwareStatus, 348 GetBrickDataBtStateStatus, 348 GetBrickDataName, 348 GetBrickDataTimeoutValue, 349 GetBTConnectionAddress, 349 GetBTConnectionClass, 349 GetBTConnectionHandleNum, 349
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
GetBTConnectionLinkQuality, 350 GetBTConnectionName, 350 GetBTConnectionPinCode, 350 GetBTConnectionStreamStatus, 351 GetBTDeviceAddress, 351 GetBTDeviceClass, 351 GetBTDeviceCount, 352 GetBTDeviceName, 352 GetBTDeviceNameCount, 352 GetBTDeviceStatus, 352 GetBTInputBuffer, 353 GetBTInputBufferInPtr, 353 GetBTInputBufferOutPtr, 353 GetBTOutputBuffer, 354 GetBTOutputBufferInPtr, 354 GetBTOutputBufferOutPtr, 354 GetHSFlags, 355 GetHSInputBuffer, 355 GetHSInputBufferInPtr, 355 GetHSInputBufferOutPtr, 356 GetHSMode, 356 GetHSOutputBuffer, 356 GetHSOutputBufferInPtr, 356 GetHSOutputBufferOutPtr, 357 GetHSSpeed, 357 GetHSState, 357 GetUSBInputBuffer, 358 GetUSBInputBufferInPtr, 358 GetUSBInputBufferOutPtr, 358 GetUSBOutputBuffer, 359 GetUSBOutputBufferInPtr, 359 GetUSBOutputBufferOutPtr, 359 GetUSBPollBuffer, 360 GetUSBPollBufferInPtr, 360 GetUSBPollBufferOutPtr, 360 GetUSBState, 361 ReceiveMessage, 361 ReceiveRemoteBool, 361 ReceiveRemoteMessageEx, 362 ReceiveRemoteNumber, 362 ReceiveRemoteString, 363 RemoteKeepAlive, 363 RemoteMessageRead, 364 RemoteMessageWrite, 364 RemotePlaySoundFile, 364 RemotePlayTone, 365
INDEX
802
RemoteResetMotorPosition, 365 RemoteResetScaledValue, 365 RemoteSetInputMode, 366 RemoteSetOutputState, 366 RemoteStartProgram, 367 RemoteStopProgram, 367 RemoteStopSound, 367 RS485Control, 368 RS485Exit, 368 RS485Init, 369 RS485Read, 369 RS485Status, 369 RS485Uart, 370 RS485Write, 370 SendMessage, 370 SendRemoteBool, 371 SendRemoteNumber, 371 SendRemoteString, 371 SendResponseBool, 372 SendResponseNumber, 372 SendResponseString, 372 SendRS485Bool, 373 SendRS485Number, 373 SendRS485String, 373 SetBTInputBuffer, 374 SetBTInputBufferInPtr, 374 SetBTInputBufferOutPtr, 374 SetBTOutputBuffer, 375 SetBTOutputBufferInPtr, 375 SetBTOutputBufferOutPtr, 375 SetHSFlags, 375 SetHSInputBuffer, 376 SetHSInputBufferInPtr, 376 SetHSInputBufferOutPtr, 376 SetHSMode, 376 SetHSOutputBuffer, 377 SetHSOutputBufferInPtr, 377 SetHSOutputBufferOutPtr, 377 SetHSSpeed, 377 SetHSState, 378 SetUSBInputBuffer, 378 SetUSBInputBufferInPtr, 378 SetUSBInputBufferOutPtr, 378 SetUSBOutputBuffer, 379 SetUSBOutputBufferInPtr, 379 SetUSBOutputBufferOutPtr, 379
SetUSBPollBuffer, 379 SetUSBPollBufferInPtr, 380 SetUSBPollBufferOutPtr, 380 SetUSBState, 380 CommModuleID ModuleIDConstants, 214 NBCCommon.h, 661 CommModuleName ModuleNameConstants, 212 NBCCommon.h, 661 CommOffsetBrickDataBdAddr CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBrickDataBluecoreVersion CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBrickDataBtHwStatus CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBrickDataBtStateStatus CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBrickDataName CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBrickDataTimeOutValue CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBtConnectTableBdAddr CommIOMAP, 545 NBCCommon.h, 661 CommOffsetBtConnectTableClassOfDevice CommIOMAP, 545 NBCCommon.h, 662 CommOffsetBtConnectTableHandleNr CommIOMAP, 545 NBCCommon.h, 662 CommOffsetBtConnectTableLinkQuality CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtConnectTableName CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtConnectTablePinCode CommIOMAP, 546 NBCCommon.h, 662
INDEX
803
CommOffsetBtConnectTableStreamStatus CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtDeviceCnt CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtDeviceNameCnt CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtDeviceTableBdAddr CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtDeviceTableClassOfDevice CommIOMAP, 546 NBCCommon.h, 662 CommOffsetBtDeviceTableDeviceStatus CommIOMAP, 546 NBCCommon.h, 663 CommOffsetBtDeviceTableName CommIOMAP, 546 NBCCommon.h, 663 CommOffsetBtInBufBuf CommIOMAP, 547 NBCCommon.h, 663 CommOffsetBtInBufInPtr CommIOMAP, 547 NBCCommon.h, 663 CommOffsetBtInBufOutPtr CommIOMAP, 547 NBCCommon.h, 663 CommOffsetBtOutBufBuf CommIOMAP, 547 NBCCommon.h, 663 CommOffsetBtOutBufInPtr CommIOMAP, 547 NBCCommon.h, 663 CommOffsetBtOutBufOutPtr CommIOMAP, 547 NBCCommon.h, 663 CommOffsetHsFlags CommIOMAP, 547 NBCCommon.h, 663 CommOffsetHsInBufBuf CommIOMAP, 547 NBCCommon.h, 663 CommOffsetHsInBufInPtr
CommIOMAP, 547 NBCCommon.h, 664 CommOffsetHsInBufOutPtr CommIOMAP, 547 NBCCommon.h, 664 CommOffsetHsMode CommIOMAP, 548 NBCCommon.h, 664 CommOffsetHsOutBufBuf CommIOMAP, 548 NBCCommon.h, 664 CommOffsetHsOutBufInPtr CommIOMAP, 548 NBCCommon.h, 664 CommOffsetHsOutBufOutPtr CommIOMAP, 548 NBCCommon.h, 664 CommOffsetHsSpeed CommIOMAP, 548 NBCCommon.h, 664 CommOffsetHsState CommIOMAP, 548 NBCCommon.h, 664 CommOffsetPFunc CommIOMAP, 548 NBCCommon.h, 664 CommOffsetPFuncTwo CommIOMAP, 548 NBCCommon.h, 664 CommOffsetUsbInBufBuf CommIOMAP, 548 NBCCommon.h, 665 CommOffsetUsbInBufInPtr CommIOMAP, 548 NBCCommon.h, 665 CommOffsetUsbInBufOutPtr CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbOutBufBuf CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbOutBufInPtr CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbOutBufOutPtr CommIOMAP, 549
INDEX
804
NBCCommon.h, 665 CommOffsetUsbPollBufBuf CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbPollBufInPtr CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbPollBufOutPtr CommIOMAP, 549 NBCCommon.h, 665 CommOffsetUsbState CommIOMAP, 549 NBCCommon.h, 665 CommStatusCodesConstants BT_CMD_READY, 542 HS_CMD_READY, 542 LR_COULD_NOT_SAVE, 543 LR_ENTRY_REMOVED, 543 LR_STORE_IS_FULL, 543 LR_SUCCESS, 543 LR_UNKNOWN_ADDR, 543 USB_CMD_READY, 543 Communications specic errors, 418 Comparison Constants, 72 ComputeCalibValue NBCCommon.h, 666 SysCallConstants, 399 CreateFile LoaderModuleFunctions, 384 CreateFileLinear LoaderModuleFunctions, 384 CreateFileNonLinear LoaderModuleFunctions, 385 cstdlib API, 393 cstdlibAPI Random, 394 SignedRandom, 394 Data type limits, 610 DatalogGetTimes NBCCommon.h, 666 SysCallConstants, 399 DatalogWrite NBCCommon.h, 666 SysCallConstants, 399 DEGREES_PER_RADIAN
MiscConstants, 215 NBCCommon.h, 666 DeleteFile LoaderModuleFunctions, 385 Device status constants, 538 Display contrast constants, 519 Display ags, 518 Display module, 87 Display module constants, 506 Display module functions, 277 Display module IOMAP offsets, 521 DISPLAY_BUSY DisplayFlagsGroup, 518 NBCCommon.h, 666 DISPLAY_CHAR DisplayExecuteFunctionConstants, 513 NBCCommon.h, 666 DISPLAY_CONTRAST_DEFAULT DisplayContrastConstants, 519 NBCCommon.h, 666 DISPLAY_CONTRAST_MAX DisplayContrastConstants, 519 NBCCommon.h, 666 DISPLAY_ERASE_ALL DisplayExecuteFunctionConstants, 513 NBCCommon.h, 666 DISPLAY_ERASE_LINE DisplayExecuteFunctionConstants, 513 NBCCommon.h, 666 DISPLAY_FILL_REGION DisplayExecuteFunctionConstants, 513 NBCCommon.h, 667 DISPLAY_FRAME DisplayExecuteFunctionConstants, 513 NBCCommon.h, 667 DISPLAY_HEIGHT DisplayModuleConstants, 509 NBCCommon.h, 667 DISPLAY_HORIZONTAL_LINE DisplayExecuteFunctionConstants, 513
INDEX
805
NBCCommon.h, 667 DISPLAY_MENUICONS_X_DIFF DisplayModuleConstants, 509 NBCCommon.h, 667 DISPLAY_MENUICONS_X_OFFS DisplayModuleConstants, 509 NBCCommon.h, 667 DISPLAY_MENUICONS_Y DisplayModuleConstants, 509 NBCCommon.h, 667 DISPLAY_ON DisplayFlagsGroup, 518 NBCCommon.h, 667 DISPLAY_PIXEL DisplayExecuteFunctionConstants, 513 NBCCommon.h, 667 DISPLAY_POPUP DisplayFlagsGroup, 518 NBCCommon.h, 667 DISPLAY_REFRESH DisplayFlagsGroup, 519 NBCCommon.h, 668 DISPLAY_REFRESH_DISABLED DisplayFlagsGroup, 519 NBCCommon.h, 668 DISPLAY_VERTICAL_LINE DisplayExecuteFunctionConstants, 513 NBCCommon.h, 668 DISPLAY_WIDTH DisplayModuleConstants, 509 NBCCommon.h, 668 DisplayContrastConstants DISPLAY_CONTRAST_DEFAULT, 519 DISPLAY_CONTRAST_MAX, 519 DisplayDrawOptionConstants DRAW_OPT_CLEAR, 515 DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN, 515 DRAW_OPT_CLEAR_PIXELS, 515 DRAW_OPT_CLEAR_SCREEN_MODES, 515
DRAW_OPT_CLEAR_WHOLE_SCREEN, 515 DRAW_OPT_FILL_SHAPE, 515 DRAW_OPT_INVERT, 515 DRAW_OPT_LOGICAL_AND, 515 DRAW_OPT_LOGICAL_COPY, 515 DRAW_OPT_LOGICAL_OPERATIONS, 516 DRAW_OPT_LOGICAL_OR, 516 DRAW_OPT_LOGICAL_XOR, 516 DRAW_OPT_NORMAL, 516 DRAW_OPT_POLYGON_POLYLINE, 516 DisplayExecuteFunction NBCCommon.h, 668 SysCallConstants, 400 DisplayExecuteFunction constants, 512 DisplayExecuteFunctionConstants DISPLAY_CHAR, 513 DISPLAY_ERASE_ALL, 513 DISPLAY_ERASE_LINE, 513 DISPLAY_FILL_REGION, 513 DISPLAY_FRAME, 513 DISPLAY_HORIZONTAL_LINE, 513 DISPLAY_PIXEL, 513 DISPLAY_VERTICAL_LINE, 513 DisplayFlagsGroup DISPLAY_BUSY, 518 DISPLAY_ON, 518 DISPLAY_POPUP, 518 DISPLAY_REFRESH, 519 DISPLAY_REFRESH_DISABLED, 519 DisplayFontDrawOptionConstants DRAW_OPT_FONT_DIR_B2TL, 517 DRAW_OPT_FONT_DIR_B2TR, 517 DRAW_OPT_FONT_DIR_L2RB, 517 DRAW_OPT_FONT_DIR_L2RT, 517
INDEX
806
DRAW_OPT_FONT_DIR_R2LB, 517 DRAW_OPT_FONT_DIR_R2LT, 517 DRAW_OPT_FONT_DIR_T2BL, 517 DRAW_OPT_FONT_DIR_T2BR, 517 DRAW_OPT_FONT_DIRECTIONS, 518 DRAW_OPT_FONT_WRAP, 518 DisplayIOMAP DisplayOffsetContrast, 522 DisplayOffsetDisplay, 522 DisplayOffsetEraseMask, 522 DisplayOffsetFlags, 522 DisplayOffsetNormal, 522 DisplayOffsetPBitmaps, 522 DisplayOffsetPFont, 522 DisplayOffsetPFunc, 522 DisplayOffsetPMenuIcons, 523 DisplayOffsetPMenuText, 523 DisplayOffsetPopup, 523 DisplayOffsetPScreens, 523 DisplayOffsetPStatusIcons, 523 DisplayOffsetPStatusText, 523 DisplayOffsetPStepIcons, 523 DisplayOffsetPTextLines, 523 DisplayOffsetStatusIcons, 523 DisplayOffsetStepIcons, 523 DisplayOffsetTextLinesCenterFlags, 524 DisplayOffsetUpdateMask, 524 DisplayModuleConstants BITMAP_1, 508 BITMAP_2, 508 BITMAP_3, 508 BITMAP_4, 508 BITMAPS, 509 DISPLAY_HEIGHT, 509 DISPLAY_MENUICONS_X_DIFF, 509 DISPLAY_MENUICONS_X_OFFS, 509 DISPLAY_MENUICONS_Y, 509 DISPLAY_WIDTH, 509
FRAME_SELECT, 509 MENUICON_CENTER, 509 MENUICON_LEFT, 509 MENUICON_RIGHT, 509 MENUICONS, 510 MENUTEXT, 510 SCREEN_BACKGROUND, 510 SCREEN_LARGE, 510 SCREEN_MODE_CLEAR, 510 SCREEN_MODE_RESTORE, 510 SCREEN_SMALL, 510 SCREENS, 510 SPECIALS, 511 STATUSICON_BATTERY, 511 STATUSICON_BLUETOOTH, 511 STATUSICON_USB, 511 STATUSICON_VM, 511 STATUSICONS, 511 STATUSTEXT, 511 STEPICON_1, 511 STEPICON_2, 511 STEPICON_3, 511 STEPICON_4, 512 STEPICON_5, 512 STEPICONS, 512 STEPLINE, 512 TOPLINE, 512 DisplayModuleFunctions CircleOut, 281 CircleOutEx, 281 ClearLine, 282 ClearScreen, 282 EllipseOut, 282 EllipseOutEx, 283 FontNumOut, 283 FontNumOutEx, 284 FontTextOut, 284 FontTextOutEx, 285 GetDisplayContrast, 285 GetDisplayDisplay, 286 GetDisplayEraseMask, 286 GetDisplayFlags, 286 GetDisplayFont, 286 GetDisplayNormal, 287 GetDisplayPopup, 287
INDEX
807
GetDisplayTextLinesCenterFlags, 287 GetDisplayUpdateMask, 288 GraphicArrayOut, 288 GraphicArrayOutEx, 288 GraphicOut, 289 GraphicOutEx, 289 LineOut, 290 LineOutEx, 290 NumOut, 291 NumOutEx, 291 PointOut, 291 PointOutEx, 292 PolyOut, 292 PolyOutEx, 293 RectOut, 293 RectOutEx, 293 SetDisplayContrast, 294 SetDisplayDisplay, 294 SetDisplayEraseMask, 294 SetDisplayFlags, 295 SetDisplayFont, 295 SetDisplayNormal, 295 SetDisplayPopup, 296 SetDisplayTextLinesCenterFlags, 296 SetDisplayUpdateMask, 296 TextOut, 296 TextOutEx, 297 DisplayModuleID ModuleIDConstants, 214 NBCCommon.h, 668 DisplayModuleName ModuleNameConstants, 212 NBCCommon.h, 668 DisplayOffsetContrast DisplayIOMAP, 522 NBCCommon.h, 668 DisplayOffsetDisplay DisplayIOMAP, 522 NBCCommon.h, 668 DisplayOffsetEraseMask DisplayIOMAP, 522 NBCCommon.h, 668 DisplayOffsetFlags DisplayIOMAP, 522
NBCCommon.h, 669 DisplayOffsetNormal DisplayIOMAP, 522 NBCCommon.h, 669 DisplayOffsetPBitmaps DisplayIOMAP, 522 NBCCommon.h, 669 DisplayOffsetPFont DisplayIOMAP, 522 NBCCommon.h, 669 DisplayOffsetPFunc DisplayIOMAP, 522 NBCCommon.h, 669 DisplayOffsetPMenuIcons DisplayIOMAP, 523 NBCCommon.h, 669 DisplayOffsetPMenuText DisplayIOMAP, 523 NBCCommon.h, 669 DisplayOffsetPopup DisplayIOMAP, 523 NBCCommon.h, 669 DisplayOffsetPScreens DisplayIOMAP, 523 NBCCommon.h, 669 DisplayOffsetPStatusIcons DisplayIOMAP, 523 NBCCommon.h, 669 DisplayOffsetPStatusText DisplayIOMAP, 523 NBCCommon.h, 670 DisplayOffsetPStepIcons DisplayIOMAP, 523 NBCCommon.h, 670 DisplayOffsetPTextLines DisplayIOMAP, 523 NBCCommon.h, 670 DisplayOffsetStatusIcons DisplayIOMAP, 523 NBCCommon.h, 670 DisplayOffsetStepIcons DisplayIOMAP, 523 NBCCommon.h, 670 DisplayOffsetTextLinesCenterFlags DisplayIOMAP, 524 NBCCommon.h, 670
INDEX
808
DisplayOffsetUpdateMask DisplayIOMAP, 524 NBCCommon.h, 670 DisplayTextLineConstants TEXTLINE_1, 520 TEXTLINE_2, 520 TEXTLINE_3, 520 TEXTLINE_4, 520 TEXTLINE_5, 520 TEXTLINE_6, 521 TEXTLINE_7, 521 TEXTLINE_8, 521 TEXTLINES, 521 DIST_CMD_CUSTOM MSDistNX, 603 NBCCommon.h, 670 DIST_CMD_GP2D12 MSDistNX, 603 NBCCommon.h, 670 DIST_CMD_GP2D120 MSDistNX, 603 NBCCommon.h, 670 DIST_CMD_GP2YA02 MSDistNX, 603 NBCCommon.h, 671 DIST_CMD_GP2YA21 MSDistNX, 603 NBCCommon.h, 671 DIST_REG_DIST MSDistNX, 603 NBCCommon.h, 671 DIST_REG_DIST1 MSDistNX, 603 NBCCommon.h, 671 DIST_REG_DIST_MAX MSDistNX, 603 NBCCommon.h, 671 DIST_REG_DIST_MIN MSDistNX, 603 NBCCommon.h, 671 DIST_REG_MODULE_TYPE MSDistNX, 603 NBCCommon.h, 671 DIST_REG_NUM_POINTS MSDistNX, 604 NBCCommon.h, 671
DIST_REG_VOLT MSDistNX, 604 NBCCommon.h, 671 DIST_REG_VOLT1 MSDistNX, 604 NBCCommon.h, 671 DISTNxGP2D12 MindSensorsAPI, 145 DISTNxGP2D120 MindSensorsAPI, 145 DISTNxGP2D120Ex MindSensorsAPI, 145 DISTNxGP2D12Ex MindSensorsAPI, 146 DISTNxGP2YA02 MindSensorsAPI, 146 DISTNxGP2YA02Ex MindSensorsAPI, 146 DISTNxGP2YA21 MindSensorsAPI, 147 DISTNxGP2YA21Ex MindSensorsAPI, 147 DRAW_OPT_CLEAR DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_CLEAR_PIXELS DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_CLEAR_SCREEN_MODES DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_CLEAR_WHOLE_SCREEN DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_FILL_SHAPE DisplayDrawOptionConstants, 515 NBCCommon.h, 672 DRAW_OPT_FONT_DIR_B2TL DisplayFontDrawOptionConstants, 517
INDEX
809
NBCCommon.h, 672 DRAW_OPT_FONT_DIR_B2TR DisplayFontDrawOptionConstants, 517 NBCCommon.h, 672 DRAW_OPT_FONT_DIR_L2RB DisplayFontDrawOptionConstants, 517 NBCCommon.h, 672 DRAW_OPT_FONT_DIR_L2RT DisplayFontDrawOptionConstants, 517 NBCCommon.h, 672 DRAW_OPT_FONT_DIR_R2LB DisplayFontDrawOptionConstants, 517 NBCCommon.h, 673 DRAW_OPT_FONT_DIR_R2LT DisplayFontDrawOptionConstants, 517 NBCCommon.h, 673 DRAW_OPT_FONT_DIR_T2BL DisplayFontDrawOptionConstants, 517 NBCCommon.h, 673 DRAW_OPT_FONT_DIR_T2BR DisplayFontDrawOptionConstants, 517 NBCCommon.h, 673 DRAW_OPT_FONT_DIRECTIONS DisplayFontDrawOptionConstants, 518 NBCCommon.h, 673 DRAW_OPT_FONT_WRAP DisplayFontDrawOptionConstants, 518 NBCCommon.h, 673 DRAW_OPT_INVERT DisplayDrawOptionConstants, 515 NBCCommon.h, 673 DRAW_OPT_LOGICAL_AND DisplayDrawOptionConstants, 515 NBCCommon.h, 673 DRAW_OPT_LOGICAL_COPY DisplayDrawOptionConstants, 515 NBCCommon.h, 673
DRAW_OPT_LOGICAL_OPERATIONS DisplayDrawOptionConstants, 516 NBCCommon.h, 673 DRAW_OPT_LOGICAL_OR DisplayDrawOptionConstants, 516 NBCCommon.h, 674 DRAW_OPT_LOGICAL_XOR DisplayDrawOptionConstants, 516 NBCCommon.h, 674 DRAW_OPT_NORMAL DisplayDrawOptionConstants, 516 NBCCommon.h, 674 DRAW_OPT_POLYGON_POLYLINE DisplayDrawOptionConstants, 516 NBCCommon.h, 674 DrawCircle NBCCommon.h, 674 SysCallConstants, 400 DrawEllipse NBCCommon.h, 674 SysCallConstants, 400 DrawFont NBCCommon.h, 674 SysCallConstants, 400 DrawGraphic NBCCommon.h, 674 SysCallConstants, 400 DrawGraphicArray NBCCommon.h, 674 SysCallConstants, 400 Drawing option constants, 514 DrawLine NBCCommon.h, 674 SysCallConstants, 400 DrawPoint NBCCommon.h, 675 SysCallConstants, 400 DrawPolygon NBCCommon.h, 675 SysCallConstants, 400 DrawRect NBCCommon.h, 675 SysCallConstants, 400 DrawText NBCCommon.h, 675
INDEX
810
SysCallConstants, 401 EllipseOut DisplayModuleFunctions, 282 EllipseOutEx DisplayModuleFunctions, 283 EOF LoaderModuleConstants, 425 NBCCommon.h, 675 EQ cmpconst, 72 ERR_ARG CommandFatalErrors, 415 NBCCommon.h, 675 ERR_BAD_POOL_SIZE CommandFatalErrors, 415 NBCCommon.h, 675 ERR_BAD_PTR CommandFatalErrors, 416 NBCCommon.h, 675 ERR_CLUMP_COUNT CommandFatalErrors, 416 NBCCommon.h, 675 ERR_COMM_BUFFER_FULL CommandCommErrors, 419 NBCCommon.h, 675 ERR_COMM_BUS_ERR CommandCommErrors, 419 NBCCommon.h, 676 ERR_COMM_CHAN_INVALID CommandCommErrors, 419 NBCCommon.h, 676 ERR_COMM_CHAN_NOT_READY CommandCommErrors, 419 NBCCommon.h, 676 ERR_DEFAULT_OFFSETS CommandFatalErrors, 416 NBCCommon.h, 676 ERR_FILE CommandFatalErrors, 416 NBCCommon.h, 676 ERR_INSANE_OFFSET CommandFatalErrors, 416 NBCCommon.h, 676 ERR_INSTR CommandFatalErrors, 416
NBCCommon.h, 676 ERR_INVALID_FIELD CommandGenErrors, 418 NBCCommon.h, 676 ERR_INVALID_PORT CommandGenErrors, 418 NBCCommon.h, 676 ERR_INVALID_QUEUE CommandGenErrors, 418 NBCCommon.h, 676 ERR_INVALID_SIZE CommandGenErrors, 418 NBCCommon.h, 677 ERR_LOADER_ERR CommandFatalErrors, 416 NBCCommon.h, 677 ERR_MEM CommandFatalErrors, 416 NBCCommon.h, 677 ERR_MEMMGR_FAIL CommandFatalErrors, 416 NBCCommon.h, 677 ERR_NO_ACTIVE_CLUMP CommandFatalErrors, 417 NBCCommon.h, 677 ERR_NO_CODE CommandFatalErrors, 417 NBCCommon.h, 677 ERR_NO_PROG CommandGenErrors, 418 NBCCommon.h, 677 ERR_NON_FATAL CommandFatalErrors, 417 NBCCommon.h, 677 ERR_RC_BAD_PACKET CommandRCErrors, 419 NBCCommon.h, 677 ERR_RC_FAILED CommandRCErrors, 419 NBCCommon.h, 677 ERR_RC_ILLEGAL_VAL CommandRCErrors, 420 NBCCommon.h, 678 ERR_RC_UNKNOWN_CMD CommandRCErrors, 420 NBCCommon.h, 678
INDEX
811
ERR_SPOTCHECK_FAIL CommandFatalErrors, 417 NBCCommon.h, 678 ERR_VER CommandFatalErrors, 417 NBCCommon.h, 678 FALSE MiscConstants, 215 NBCCommon.h, 678 Fatal errors, 415 FileClose NBCCommon.h, 678 SysCallConstants, 401 FileDelete NBCCommon.h, 678 SysCallConstants, 401 FileFindFirst NBCCommon.h, 678 SysCallConstants, 401 FileFindNext NBCCommon.h, 678 SysCallConstants, 401 FileOpenAppend NBCCommon.h, 678 SysCallConstants, 401 FileOpenRead NBCCommon.h, 679 SysCallConstants, 401 FileOpenReadLinear NBCCommon.h, 679 SysCallConstants, 401 FileOpenWrite NBCCommon.h, 679 SysCallConstants, 401 FileOpenWriteLinear NBCCommon.h, 679 SysCallConstants, 401 FileOpenWriteNonLinear NBCCommon.h, 679 SysCallConstants, 402 FileRead NBCCommon.h, 679 SysCallConstants, 402 FileRename NBCCommon.h, 679
SysCallConstants, 402 FileResize NBCCommon.h, 679 SysCallConstants, 402 FileResolveHandle NBCCommon.h, 679 SysCallConstants, 402 FileSeek NBCCommon.h, 679 SysCallConstants, 402 FileWrite NBCCommon.h, 680 SysCallConstants, 402 FindFirstFile LoaderModuleFunctions, 386 FindNextFile LoaderModuleFunctions, 386 Float OutputModuleFunctions, 229 Font drawing option constants, 516 FontNumOut DisplayModuleFunctions, 283 FontNumOutEx DisplayModuleFunctions, 284 FontTextOut DisplayModuleFunctions, 284 FontTextOutEx DisplayModuleFunctions, 285 ForceOff UiModuleFunctions, 331 FRAME_SELECT DisplayModuleConstants, 509 NBCCommon.h, 680 FREQUENCY_MAX NBCCommon.h, 680 SoundMisc, 439 FREQUENCY_MIN NBCCommon.h, 680 SoundMisc, 439 General errors, 417 GenericI2CConstants I2C_REG_CMD, 501 I2C_REG_DEVICE_ID, 501 I2C_REG_VENDOR_ID, 501 I2C_REG_VERSION, 501
INDEX
812
GetAbortFlag UiModuleFunctions, 331 GetBatteryLevel UiModuleFunctions, 332 GetBatteryState UiModuleFunctions, 332 GetBluetoothState UiModuleFunctions, 332 GetBrickDataAddress CommModuleFunctions, 347 GetBrickDataBluecoreVersion CommModuleFunctions, 347 GetBrickDataBtHardwareStatus CommModuleFunctions, 348 GetBrickDataBtStateStatus CommModuleFunctions, 348 GetBrickDataName CommModuleFunctions, 348 GetBrickDataTimeoutValue CommModuleFunctions, 349 GetBTConnectionAddress CommModuleFunctions, 349 GetBTConnectionClass CommModuleFunctions, 349 GetBTConnectionHandleNum CommModuleFunctions, 349 GetBTConnectionLinkQuality CommModuleFunctions, 350 GetBTConnectionName CommModuleFunctions, 350 GetBTConnectionPinCode CommModuleFunctions, 350 GetBTConnectionStreamStatus CommModuleFunctions, 351 GetBTDeviceAddress CommModuleFunctions, 351 GetBTDeviceClass CommModuleFunctions, 351 GetBTDeviceCount CommModuleFunctions, 352 GetBTDeviceName CommModuleFunctions, 352 GetBTDeviceNameCount CommModuleFunctions, 352 GetBTDeviceStatus CommModuleFunctions, 352
GetBTInputBuffer CommModuleFunctions, 353 GetBTInputBufferInPtr CommModuleFunctions, 353 GetBTInputBufferOutPtr CommModuleFunctions, 353 GetBTOutputBuffer CommModuleFunctions, 354 GetBTOutputBufferInPtr CommModuleFunctions, 354 GetBTOutputBufferOutPtr CommModuleFunctions, 354 GetButtonLongPressCount ButtonModuleFunctions, 326 GetButtonLongReleaseCount ButtonModuleFunctions, 326 GetButtonModuleValue CommandModuleFunctions, 309 GetButtonPressCount ButtonModuleFunctions, 326 GetButtonReleaseCount ButtonModuleFunctions, 326 GetButtonShortReleaseCount ButtonModuleFunctions, 327 GetButtonState ButtonModuleFunctions, 327 GetCommandFlags UiModuleFunctions, 332 GetCommandModuleBytes CommandModuleFunctions, 309 GetCommandModuleValue CommandModuleFunctions, 309 GetCommModuleBytes CommandModuleFunctions, 310 GetCommModuleValue CommandModuleFunctions, 310 GetDisplayContrast DisplayModuleFunctions, 285 GetDisplayDisplay DisplayModuleFunctions, 286 GetDisplayEraseMask DisplayModuleFunctions, 286 GetDisplayFlags DisplayModuleFunctions, 286 GetDisplayFont DisplayModuleFunctions, 286
INDEX
813
GetDisplayModuleBytes CommandModuleFunctions, 310 GetDisplayModuleValue CommandModuleFunctions, 311 GetDisplayNormal DisplayModuleFunctions, 287 GetDisplayPopup DisplayModuleFunctions, 287 GetDisplayTextLinesCenterFlags DisplayModuleFunctions, 287 GetDisplayUpdateMask DisplayModuleFunctions, 288 GetFirstTick CommandModuleFunctions, 311 GetFreeMemory LoaderModuleFunctions, 387 GetHSFlags CommModuleFunctions, 355 GetHSInputBuffer CommModuleFunctions, 355 GetHSInputBufferInPtr CommModuleFunctions, 355 GetHSInputBufferOutPtr CommModuleFunctions, 356 GetHSMode CommModuleFunctions, 356 GetHSOutputBuffer CommModuleFunctions, 356 GetHSOutputBufferInPtr CommModuleFunctions, 356 GetHSOutputBufferOutPtr CommModuleFunctions, 357 GetHSSpeed CommModuleFunctions, 357 GetHSState CommModuleFunctions, 357 GetInColorADRaw InputModuleFunctions, 248 GetInColorBoolean InputModuleFunctions, 248 GetInColorCalibration InputModuleFunctions, 249 GetInColorCalibrationState InputModuleFunctions, 249 GetInColorCalLimits InputModuleFunctions, 250
GetInColorSensorRaw InputModuleFunctions, 250 GetInColorSensorValue InputModuleFunctions, 250 GetInCustomActiveStatus InputModuleFunctions, 251 GetInCustomPercentFullScale InputModuleFunctions, 251 GetInCustomZeroOffset InputModuleFunctions, 251 GetInDigiPinsDirection InputModuleFunctions, 252 GetInDigiPinsOutputLevel InputModuleFunctions, 252 GetInDigiPinsStatus InputModuleFunctions, 252 GetInputModuleValue CommandModuleFunctions, 311 GetInSensorBoolean InputModuleFunctions, 253 GetIOMapBytes CommandModuleFunctions, 312 GetIOMapBytesByID CommandModuleFunctions, 312 GetIOMapValue CommandModuleFunctions, 313 GetIOMapValueByID CommandModuleFunctions, 313 GetLoaderModuleValue CommandModuleFunctions, 314 GetLowSpeedModuleBytes CommandModuleFunctions, 314 GetLowSpeedModuleValue CommandModuleFunctions, 314 GetLSChannelState LowLevelLowSpeedModuleFunctions, 273 GetLSErrorType LowLevelLowSpeedModuleFunctions, 273 GetLSInputBuffer LowLevelLowSpeedModuleFunctions, 274 GetLSInputBufferBytesToRx LowLevelLowSpeedModuleFunctions, 274
INDEX
814
GetLSInputBufferInPtr LowLevelLowSpeedModuleFunctions, 274 GetLSInputBufferOutPtr LowLevelLowSpeedModuleFunctions, 275 GetLSMode LowLevelLowSpeedModuleFunctions, 275 GetLSNoRestartOnRead LowLevelLowSpeedModuleFunctions, 275 GetLSOutputBuffer LowLevelLowSpeedModuleFunctions, 275 GetLSOutputBufferBytesToRx LowLevelLowSpeedModuleFunctions, 276 GetLSOutputBufferInPtr LowLevelLowSpeedModuleFunctions, 276 GetLSOutputBufferOutPtr LowLevelLowSpeedModuleFunctions, 276 GetLSSpeed LowLevelLowSpeedModuleFunctions, 277 GetLSState LowLevelLowSpeedModuleFunctions, 277 GetOnBrickProgramPointer UiModuleFunctions, 333 GetOutputModuleValue CommandModuleFunctions, 315 GetOutPwnFreq OutputModuleFunctions, 229 GetRechargeableBattery UiModuleFunctions, 333 GetSleepTimeout UiModuleFunctions, 333 GetSleepTimer UiModuleFunctions, 333 GetSoundDuration SoundModuleFunctions, 299 GetSoundFrequency SoundModuleFunctions, 299
GetSoundMode SoundModuleFunctions, 300 GetSoundModuleValue CommandModuleFunctions, 315 GetSoundSampleRate SoundModuleFunctions, 300 GetSoundState SoundModuleFunctions, 300 GetSoundVolume SoundModuleFunctions, 300 GetStartTick NBCCommon.h, 680 SysCallConstants, 402 GetUIButton UiModuleFunctions, 334 GetUIModuleValue CommandModuleFunctions, 316 GetUIState UiModuleFunctions, 334 GetUSBInputBuffer CommModuleFunctions, 358 GetUSBInputBufferInPtr CommModuleFunctions, 358 GetUSBInputBufferOutPtr CommModuleFunctions, 358 GetUSBOutputBuffer CommModuleFunctions, 359 GetUSBOutputBufferInPtr CommModuleFunctions, 359 GetUSBOutputBufferOutPtr CommModuleFunctions, 359 GetUSBPollBuffer CommModuleFunctions, 360 GetUSBPollBufferInPtr CommModuleFunctions, 360 GetUSBPollBufferOutPtr CommModuleFunctions, 360 GetUSBState CommModuleFunctions, 361 GetUsbState UiModuleFunctions, 334 GetVMRunState UiModuleFunctions, 334 GetVolume UiModuleFunctions, 335 GL_CAMERA_DEPTH
INDEX
815
GLConstantsSettings, 615 NBCCommon.h, 680 GL_CIRCLE GLConstantsBeginModes, 613 NBCCommon.h, 680 GL_CIRCLE_SIZE GLConstantsSettings, 615 NBCCommon.h, 680 GL_CULL_BACK GLConstantsCullMode, 616 NBCCommon.h, 680 GL_CULL_FRONT GLConstantsCullMode, 616 NBCCommon.h, 680 GL_CULL_MODE GLConstantsSettings, 615 NBCCommon.h, 681 GL_CULL_NONE GLConstantsCullMode, 616 NBCCommon.h, 681 GL_LINE GLConstantsBeginModes, 613 NBCCommon.h, 681 GL_POINT GLConstantsBeginModes, 613 NBCCommon.h, 681 GL_POLYGON GLConstantsBeginModes, 613 NBCCommon.h, 681 GL_ROTATE_X GLConstantsActions, 614 NBCCommon.h, 681 GL_ROTATE_Y GLConstantsActions, 614 NBCCommon.h, 681 GL_ROTATE_Z GLConstantsActions, 614 NBCCommon.h, 681 GL_SCALE_X GLConstantsActions, 614 NBCCommon.h, 681 GL_SCALE_Y GLConstantsActions, 614 NBCCommon.h, 681 GL_SCALE_Z GLConstantsActions, 614
NBCCommon.h, 682 GL_TRANSLATE_X GLConstantsActions, 614 NBCCommon.h, 682 GL_TRANSLATE_Y GLConstantsActions, 614 NBCCommon.h, 682 GL_TRANSLATE_Z GLConstantsActions, 615 NBCCommon.h, 682 GL_ZOOM_FACTOR GLConstantsSettings, 615 NBCCommon.h, 682 glAddToAngleX GraphicsLibrary, 219 glAddToAngleY GraphicsLibrary, 219 glAddToAngleZ GraphicsLibrary, 220 glAddVertex GraphicsLibrary, 220 glBegin GraphicsLibrary, 220 glBeginObject GraphicsLibrary, 220 glBeginRender GraphicsLibrary, 221 glBox GraphicsLibrary, 221 glCallObject GraphicsLibrary, 221 GLConstantsActions GL_ROTATE_X, 614 GL_ROTATE_Y, 614 GL_ROTATE_Z, 614 GL_SCALE_X, 614 GL_SCALE_Y, 614 GL_SCALE_Z, 614 GL_TRANSLATE_X, 614 GL_TRANSLATE_Y, 614 GL_TRANSLATE_Z, 615 GLConstantsBeginModes GL_CIRCLE, 613 GL_LINE, 613 GL_POINT, 613 GL_POLYGON, 613
INDEX
816
GLConstantsCullMode GL_CULL_BACK, 616 GL_CULL_FRONT, 616 GL_CULL_NONE, 616 GLConstantsSettings GL_CAMERA_DEPTH, 615 GL_CIRCLE_SIZE, 615 GL_CULL_MODE, 615 GL_ZOOM_FACTOR, 615 glCos32768 GraphicsLibrary, 221 glCube GraphicsLibrary, 222 glEnd GraphicsLibrary, 222 glEndObject GraphicsLibrary, 222 glFinishRender GraphicsLibrary, 222 glInit GraphicsLibrary, 223 glObjectAction GraphicsLibrary, 223 glPyramid GraphicsLibrary, 223 glSet GraphicsLibrary, 223 glSetAngleX GraphicsLibrary, 224 glSetAngleY GraphicsLibrary, 224 glSetAngleZ GraphicsLibrary, 224 glSin32768 GraphicsLibrary, 224 GraphicArrayOut DisplayModuleFunctions, 288 GraphicArrayOutEx DisplayModuleFunctions, 288 GraphicOut DisplayModuleFunctions, 289 GraphicOutEx DisplayModuleFunctions, 289 Graphics library actions, 613 Graphics library begin modes, 612 Graphics library cull mode, 616
Graphics library settings, 615 GraphicsLibrary glAddToAngleX, 219 glAddToAngleY, 219 glAddToAngleZ, 220 glAddVertex, 220 glBegin, 220 glBeginObject, 220 glBeginRender, 221 glBox, 221 glCallObject, 221 glCos32768, 221 glCube, 222 glEnd, 222 glEndObject, 222 glFinishRender, 222 glInit, 223 glObjectAction, 223 glPyramid, 223 glSet, 223 glSetAngleX, 224 glSetAngleY, 224 glSetAngleZ, 224 glSin32768, 224 GT cmpconst, 72 GTEQ cmpconst, 72 Hi-speed port baud rate constants, 533 Hi-speed port combined UART constants, 537 Hi-speed port constants, 530 Hi-speed port data bits constants, 535 Hi-speed port ags constants, 530 Hi-speed port parity constants, 536 Hi-speed port state constants, 531 Hi-speed port stop bits constants, 536 Hi-speed port SysCommHSControl constants, 532 HiTechnic API Functions, 87 HiTechnic Color2 constants, 599 HiTechnic device constants, 595 HiTechnic IRReceiver constants, 598 HiTechnic IRSeeker2 constants, 596
INDEX
817
HiTechnic/mindsensors Power Function/IR Train constants, 584 HiTechnicAPI HTIRTrain, 97 HTPFComboDirect, 97 HTPFComboPWM, 98 HTPFRawOutput, 98 HTPFRepeat, 99 HTPFSingleOutputCST, 99 HTPFSingleOutputPWM, 100 HTPFSinglePin, 100 HTPFTrain, 101 HTPowerFunctionCommand, 101 HTRCXAddToDatalog, 102 HTRCXBatteryLevel, 102 HTRCXClearAllEvents, 102 HTRCXClearCounter, 102 HTRCXClearMsg, 103 HTRCXClearSensor, 103 HTRCXClearSound, 103 HTRCXClearTimer, 103 HTRCXCreateDatalog, 103 HTRCXDecCounter, 104 HTRCXDeleteSub, 104 HTRCXDeleteSubs, 104 HTRCXDeleteTask, 104 HTRCXDeleteTasks, 104 HTRCXDisableOutput, 105 HTRCXEnableOutput, 105 HTRCXEvent, 105 HTRCXFloat, 105 HTRCXFwd, 106 HTRCXIncCounter, 106 HTRCXInvertOutput, 106 HTRCXMuteSound, 106 HTRCXObvertOutput, 106 HTRCXOff, 107 HTRCXOn, 107 HTRCXOnFor, 107 HTRCXOnFwd, 107 HTRCXOnRev, 108 HTRCXPBTurnOff, 108 HTRCXPing, 108 HTRCXPlaySound, 108 HTRCXPlayTone, 108 HTRCXPlayToneVar, 109
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
HTRCXPoll, 109 HTRCXPollMemory, 109 HTRCXRemote, 110 HTRCXRev, 110 HTRCXSelectDisplay, 110 HTRCXSelectProgram, 110 HTRCXSendSerial, 111 HTRCXSetDirection, 111 HTRCXSetEvent, 111 HTRCXSetGlobalDirection, 111 HTRCXSetGlobalOutput, 112 HTRCXSetIRLinkPort, 112 HTRCXSetMaxPower, 112 HTRCXSetMessage, 113 HTRCXSetOutput, 113 HTRCXSetPower, 113 HTRCXSetPriority, 113 HTRCXSetSensorMode, 114 HTRCXSetSensorType, 114 HTRCXSetSleepTime, 114 HTRCXSetTxPower, 114 HTRCXSetWatch, 115 HTRCXStartTask, 115 HTRCXStopAllTasks, 115 HTRCXStopTask, 115 HTRCXToggle, 116 HTRCXUnmuteSound, 116 HTScoutCalibrateSensor, 116 HTScoutMuteSound, 116 HTScoutSelectSounds, 116 HTScoutSendVLL, 116 HTScoutSetEventFeedback, 117 HTScoutSetLight, 117 HTScoutSetScoutMode, 117 HTScoutSetSensorClickTime, 117 HTScoutSetSensorHysteresis, 118 HTScoutSetSensorLowerLimit, 118 HTScoutSetSensorUpperLimit, 118 HTScoutUnmuteSound, 119 ReadSensorHTAccel, 119 ReadSensorHTColor, 119 ReadSensorHTColor2Active, 120 ReadSensorHTColorNum, 120 ReadSensorHTCompass, 120 ReadSensorHTEOPD, 121 ReadSensorHTGyro, 121
INDEX
818
ReadSensorHTIRReceiver, 121 ReadSensorHTIRReceiverEx, 122 ReadSensorHTIRSeeker, 122 ReadSensorHTIRSeeker2AC, 123 ReadSensorHTIRSeeker2Addr, 123 ReadSensorHTIRSeeker2DC, 124 ReadSensorHTIRSeekerDir, 124 ReadSensorHTNormalizedColor, 124 ReadSensorHTNormalizedColor2Active, 125 ReadSensorHTRawColor, 125 ReadSensorHTRawColor2, 126 ReadSensorHTTouchMultiplexer, 126 SetHTColor2Mode, 127 SetHTIRSeeker2Mode, 127 SetSensorHTEOPD, 127 SetSensorHTGyro, 128 HS_BAUD_115200 CommHiSpeedBaudConstants, 533 NBCCommon.h, 682 HS_BAUD_1200 CommHiSpeedBaudConstants, 533 NBCCommon.h, 682 HS_BAUD_14400 CommHiSpeedBaudConstants, 533 NBCCommon.h, 682 HS_BAUD_19200 CommHiSpeedBaudConstants, 534 NBCCommon.h, 682 HS_BAUD_230400 CommHiSpeedBaudConstants, 534 NBCCommon.h, 682 HS_BAUD_2400 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_28800 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_3600 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_38400 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683
HS_BAUD_460800 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_4800 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_57600 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_7200 CommHiSpeedBaudConstants, 534 NBCCommon.h, 683 HS_BAUD_76800 CommHiSpeedBaudConstants, 535 NBCCommon.h, 683 HS_BAUD_921600 CommHiSpeedBaudConstants, 535 NBCCommon.h, 683 HS_BAUD_9600 CommHiSpeedBaudConstants, 535 NBCCommon.h, 684 HS_CMD_READY CommStatusCodesConstants, 542 NBCCommon.h, 684 HS_CTRL_EXIT CommHiSpeedCtrlConstants, 532 NBCCommon.h, 684 HS_CTRL_INIT CommHiSpeedCtrlConstants, 532 NBCCommon.h, 684 HS_CTRL_UART CommHiSpeedCtrlConstants, 532 NBCCommon.h, 684 HS_DISABLE CommHiSpeedStateConstants, 531 NBCCommon.h, 684 HS_ENABLE CommHiSpeedStateConstants, 531 NBCCommon.h, 684 HS_INIT_RECEIVER CommHiSpeedStateConstants, 531 NBCCommon.h, 684 HS_INITIALISE CommHiSpeedStateConstants, 532 NBCCommon.h, 684 HS_MODE_10_STOP
INDEX
819
CommHiSpeedStopBitsConstants, 536 NBCCommon.h, 684 HS_MODE_15_STOP CommHiSpeedStopBitsConstants, 536 NBCCommon.h, 685 HS_MODE_20_STOP CommHiSpeedStopBitsConstants, 536 NBCCommon.h, 685 HS_MODE_5_DATA CommHiSpeedDataBitsConstants, 535 NBCCommon.h, 685 HS_MODE_6_DATA CommHiSpeedDataBitsConstants, 535 NBCCommon.h, 685 HS_MODE_7_DATA CommHiSpeedDataBitsConstants, 535 NBCCommon.h, 685 HS_MODE_7E1 CommHiSpeedCombinedConstants, 538 NBCCommon.h, 685 HS_MODE_8_DATA CommHiSpeedDataBitsConstants, 536 NBCCommon.h, 685 HS_MODE_8N1 CommHiSpeedCombinedConstants, 538 NBCCommon.h, 685 HS_MODE_E_PARITY CommHiSpeedParityConstants, 537 NBCCommon.h, 685 HS_MODE_M_PARITY CommHiSpeedParityConstants, 537 NBCCommon.h, 686 HS_MODE_N_PARITY CommHiSpeedParityConstants, 537 NBCCommon.h, 686 HS_MODE_O_PARITY CommHiSpeedParityConstants, 537
NBCCommon.h, 686 HS_MODE_S_PARITY CommHiSpeedParityConstants, 537 NBCCommon.h, 686 HS_SEND_DATA CommHiSpeedStateConstants, 532 NBCCommon.h, 686 HS_UPDATE CommHiSpeedFlagsConstants, 531 NBCCommon.h, 686 HT_CH1_A HTIRReceiverConstants, 598 NBCCommon.h, 686 HT_CH1_B HTIRReceiverConstants, 598 NBCCommon.h, 686 HT_CH2_A HTIRReceiverConstants, 598 NBCCommon.h, 686 HT_CH2_B HTIRReceiverConstants, 599 NBCCommon.h, 686 HT_CH3_A HTIRReceiverConstants, 599 NBCCommon.h, 687 HT_CH3_B HTIRReceiverConstants, 599 NBCCommon.h, 687 HT_CH4_A HTIRReceiverConstants, 599 NBCCommon.h, 687 HT_CH4_B HTIRReceiverConstants, 599 NBCCommon.h, 687 HT_CMD_COLOR2_50HZ HTColor2Constants, 600 NBCCommon.h, 687 HT_CMD_COLOR2_60HZ HTColor2Constants, 600 NBCCommon.h, 687 HT_CMD_COLOR2_ACTIVE HTColor2Constants, 600 NBCCommon.h, 687 HT_CMD_COLOR2_BLCAL HTColor2Constants, 600 NBCCommon.h, 687
INDEX
820
HT_CMD_COLOR2_FAR HTColor2Constants, 600 NBCCommon.h, 687 HT_CMD_COLOR2_LED_HI HTColor2Constants, 600 NBCCommon.h, 687 HT_CMD_COLOR2_LED_LOW HTColor2Constants, 600 NBCCommon.h, 688 HT_CMD_COLOR2_NEAR HTColor2Constants, 600 NBCCommon.h, 688 HT_CMD_COLOR2_PASSIVE HTColor2Constants, 600 NBCCommon.h, 688 HT_CMD_COLOR2_RAW HTColor2Constants, 601 NBCCommon.h, 688 HT_CMD_COLOR2_WBCAL HTColor2Constants, 601 NBCCommon.h, 688 HTColor2Constants HT_CMD_COLOR2_50HZ, 600 HT_CMD_COLOR2_60HZ, 600 HT_CMD_COLOR2_ACTIVE, 600 HT_CMD_COLOR2_BLCAL, 600 HT_CMD_COLOR2_FAR, 600 HT_CMD_COLOR2_LED_HI, 600 HT_CMD_COLOR2_LED_LOW, 600 HT_CMD_COLOR2_NEAR, 600 HT_CMD_COLOR2_PASSIVE, 600 HT_CMD_COLOR2_RAW, 601 HT_CMD_COLOR2_WBCAL, 601 HTIR2_MODE_1200 HTIRSeeker2Constants, 596 NBCCommon.h, 688 HTIR2_MODE_600 HTIRSeeker2Constants, 596 NBCCommon.h, 688 HTIR2_REG_AC01 HTIRSeeker2Constants, 596 NBCCommon.h, 688 HTIR2_REG_AC02 HTIRSeeker2Constants, 596
NBCCommon.h, 688 HTIR2_REG_AC03 HTIRSeeker2Constants, 597 NBCCommon.h, 688 HTIR2_REG_AC04 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_AC05 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_ACDIR HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DC01 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DC02 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DC03 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DC04 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DC05 HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DCAVG HTIRSeeker2Constants, 597 NBCCommon.h, 689 HTIR2_REG_DCDIR HTIRSeeker2Constants, 598 NBCCommon.h, 689 HTIR2_REG_MODE HTIRSeeker2Constants, 598 NBCCommon.h, 690 HTIRReceiverConstants HT_CH1_A, 598 HT_CH1_B, 598 HT_CH2_A, 598 HT_CH2_B, 599 HT_CH3_A, 599 HT_CH3_B, 599 HT_CH4_A, 599 HT_CH4_B, 599
INDEX
821
HTIRSeeker2Constants HTIR2_MODE_1200, 596 HTIR2_MODE_600, 596 HTIR2_REG_AC01, 596 HTIR2_REG_AC02, 596 HTIR2_REG_AC03, 597 HTIR2_REG_AC04, 597 HTIR2_REG_AC05, 597 HTIR2_REG_ACDIR, 597 HTIR2_REG_DC01, 597 HTIR2_REG_DC02, 597 HTIR2_REG_DC03, 597 HTIR2_REG_DC04, 597 HTIR2_REG_DC05, 597 HTIR2_REG_DCAVG, 597 HTIR2_REG_DCDIR, 598 HTIR2_REG_MODE, 598 HTIRTrain HiTechnicAPI, 97 HTPFComboDirect HiTechnicAPI, 97 HTPFComboPWM HiTechnicAPI, 98 HTPFRawOutput HiTechnicAPI, 98 HTPFRepeat HiTechnicAPI, 99 HTPFSingleOutputCST HiTechnicAPI, 99 HTPFSingleOutputPWM HiTechnicAPI, 100 HTPFSinglePin HiTechnicAPI, 100 HTPFTrain HiTechnicAPI, 101 HTPowerFunctionCommand HiTechnicAPI, 101 HTRCXAddToDatalog HiTechnicAPI, 102 HTRCXBatteryLevel HiTechnicAPI, 102 HTRCXClearAllEvents HiTechnicAPI, 102 HTRCXClearCounter HiTechnicAPI, 102 HTRCXClearMsg
HiTechnicAPI, 103 HTRCXClearSensor HiTechnicAPI, 103 HTRCXClearSound HiTechnicAPI, 103 HTRCXClearTimer HiTechnicAPI, 103 HTRCXCreateDatalog HiTechnicAPI, 103 HTRCXDecCounter HiTechnicAPI, 104 HTRCXDeleteSub HiTechnicAPI, 104 HTRCXDeleteSubs HiTechnicAPI, 104 HTRCXDeleteTask HiTechnicAPI, 104 HTRCXDeleteTasks HiTechnicAPI, 104 HTRCXDisableOutput HiTechnicAPI, 105 HTRCXEnableOutput HiTechnicAPI, 105 HTRCXEvent HiTechnicAPI, 105 HTRCXFloat HiTechnicAPI, 105 HTRCXFwd HiTechnicAPI, 106 HTRCXIncCounter HiTechnicAPI, 106 HTRCXInvertOutput HiTechnicAPI, 106 HTRCXMuteSound HiTechnicAPI, 106 HTRCXObvertOutput HiTechnicAPI, 106 HTRCXOff HiTechnicAPI, 107 HTRCXOn HiTechnicAPI, 107 HTRCXOnFor HiTechnicAPI, 107 HTRCXOnFwd HiTechnicAPI, 107 HTRCXOnRev
INDEX
822
HiTechnicAPI, 108 HTRCXPBTurnOff HiTechnicAPI, 108 HTRCXPing HiTechnicAPI, 108 HTRCXPlaySound HiTechnicAPI, 108 HTRCXPlayTone HiTechnicAPI, 108 HTRCXPlayToneVar HiTechnicAPI, 109 HTRCXPoll HiTechnicAPI, 109 HTRCXPollMemory HiTechnicAPI, 109 HTRCXRemote HiTechnicAPI, 110 HTRCXRev HiTechnicAPI, 110 HTRCXSelectDisplay HiTechnicAPI, 110 HTRCXSelectProgram HiTechnicAPI, 110 HTRCXSendSerial HiTechnicAPI, 111 HTRCXSetDirection HiTechnicAPI, 111 HTRCXSetEvent HiTechnicAPI, 111 HTRCXSetGlobalDirection HiTechnicAPI, 111 HTRCXSetGlobalOutput HiTechnicAPI, 112 HTRCXSetIRLinkPort HiTechnicAPI, 112 HTRCXSetMaxPower HiTechnicAPI, 112 HTRCXSetMessage HiTechnicAPI, 113 HTRCXSetOutput HiTechnicAPI, 113 HTRCXSetPower HiTechnicAPI, 113 HTRCXSetPriority HiTechnicAPI, 113 HTRCXSetSensorMode
HiTechnicAPI, 114 HTRCXSetSensorType HiTechnicAPI, 114 HTRCXSetSleepTime HiTechnicAPI, 114 HTRCXSetTxPower HiTechnicAPI, 114 HTRCXSetWatch HiTechnicAPI, 115 HTRCXStartTask HiTechnicAPI, 115 HTRCXStopAllTasks HiTechnicAPI, 115 HTRCXStopTask HiTechnicAPI, 115 HTRCXToggle HiTechnicAPI, 116 HTRCXUnmuteSound HiTechnicAPI, 116 HTScoutCalibrateSensor HiTechnicAPI, 116 HTScoutMuteSound HiTechnicAPI, 116 HTScoutSelectSounds HiTechnicAPI, 116 HTScoutSendVLL HiTechnicAPI, 116 HTScoutSetEventFeedback HiTechnicAPI, 117 HTScoutSetLight HiTechnicAPI, 117 HTScoutSetScoutMode HiTechnicAPI, 117 HTScoutSetSensorClickTime HiTechnicAPI, 117 HTScoutSetSensorHysteresis HiTechnicAPI, 118 HTScoutSetSensorLowerLimit HiTechnicAPI, 118 HTScoutSetSensorUpperLimit HiTechnicAPI, 118 HTScoutUnmuteSound HiTechnicAPI, 119 I2C_REG_CMD GenericI2CConstants, 501
INDEX
823
NBCCommon.h, 690 I2C_REG_DEVICE_ID GenericI2CConstants, 501 NBCCommon.h, 690 I2C_REG_VENDOR_ID GenericI2CConstants, 501 NBCCommon.h, 690 I2C_REG_VERSION GenericI2CConstants, 501 NBCCommon.h, 690 I2CSendCommand LowSpeedModuleFunctions, 262 I2CSendCommandEx LowSpeedModuleFunctions, 263 IN_1 NBCCommon.h, 690 NBCInputPortConstants, 462 IN_2 NBCCommon.h, 690 NBCInputPortConstants, 462 IN_3 NBCCommon.h, 690 NBCInputPortConstants, 462 IN_4 NBCCommon.h, 690 NBCInputPortConstants, 462 IN_MODE_ANGLESTEP NBCCommon.h, 690 NBCSensorModeConstants, 466 IN_MODE_BOOLEAN NBCCommon.h, 691 NBCSensorModeConstants, 466 IN_MODE_CELSIUS NBCCommon.h, 691 NBCSensorModeConstants, 466 IN_MODE_FAHRENHEIT NBCCommon.h, 691 NBCSensorModeConstants, 466 IN_MODE_MODEMASK NBCCommon.h, 691 NBCSensorModeConstants, 466 IN_MODE_PCTFULLSCALE NBCCommon.h, 691 NBCSensorModeConstants, 466 IN_MODE_PERIODCOUNTER NBCCommon.h, 691
NBCSensorModeConstants, 466 IN_MODE_RAW NBCCommon.h, 691 NBCSensorModeConstants, 467 IN_MODE_SLOPEMASK NBCCommon.h, 691 NBCSensorModeConstants, 467 IN_MODE_TRANSITIONCNT NBCCommon.h, 691 NBCSensorModeConstants, 467 IN_TYPE_ANGLE NBCCommon.h, 691 NBCSensorTypeConstants, 463 IN_TYPE_COLORBLUE NBCCommon.h, 692 NBCSensorTypeConstants, 463 IN_TYPE_COLOREXIT NBCCommon.h, 692 NBCSensorTypeConstants, 463 IN_TYPE_COLORFULL NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_COLORGREEN NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_COLORNONE NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_COLORRED NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_CUSTOM NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_HISPEED NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_LIGHT_ACTIVE NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_LIGHT_INACTIVE NBCCommon.h, 692 NBCSensorTypeConstants, 464 IN_TYPE_LOWSPEED NBCCommon.h, 693 NBCSensorTypeConstants, 464
INDEX
824
IN_TYPE_LOWSPEED_9V NBCCommon.h, 693 NBCSensorTypeConstants, 464 IN_TYPE_NO_SENSOR NBCCommon.h, 693 NBCSensorTypeConstants, 465 IN_TYPE_REFLECTION NBCCommon.h, 693 NBCSensorTypeConstants, 465 IN_TYPE_SOUND_DB NBCCommon.h, 693 NBCSensorTypeConstants, 465 IN_TYPE_SOUND_DBA NBCCommon.h, 693 NBCSensorTypeConstants, 465 IN_TYPE_SWITCH NBCCommon.h, 693 NBCSensorTypeConstants, 465 IN_TYPE_TEMPERATURE NBCCommon.h, 693 NBCSensorTypeConstants, 465 Input eld constants, 467 Input module, 74 Input module constants, 75 Input module functions, 245 Input module IOMAP offsets, 472 INPUT_BLACKCOLOR InputColorValueConstants, 470 NBCCommon.h, 693 INPUT_BLANK InputColorIdxConstants, 469 NBCCommon.h, 693 INPUT_BLUE InputColorIdxConstants, 469 NBCCommon.h, 694 INPUT_BLUECOLOR InputColorValueConstants, 470 NBCCommon.h, 694 INPUT_CAL_POINT_0 InputColorCalibrationConstants, 472 NBCCommon.h, 694 INPUT_CAL_POINT_1 InputColorCalibrationConstants, 472 NBCCommon.h, 694
INPUT_CAL_POINT_2 InputColorCalibrationConstants, 472 NBCCommon.h, 694 INPUT_CUSTOM9V InputModuleConstants, 76 NBCCommon.h, 694 INPUT_CUSTOMACTIVE InputModuleConstants, 76 NBCCommon.h, 694 INPUT_CUSTOMINACTIVE InputModuleConstants, 76 NBCCommon.h, 694 INPUT_DIGI0 InputModuleConstants, 76 NBCCommon.h, 694 INPUT_DIGI1 InputModuleConstants, 76 NBCCommon.h, 694 INPUT_GREEN InputColorIdxConstants, 469 NBCCommon.h, 695 INPUT_GREENCOLOR InputColorValueConstants, 470 NBCCommon.h, 695 INPUT_INVALID_DATA InputModuleConstants, 76 NBCCommon.h, 695 INPUT_NO_OF_COLORS InputColorIdxConstants, 469 NBCCommon.h, 695 INPUT_NO_OF_POINTS InputColorCalibrationConstants, 472 NBCCommon.h, 695 INPUT_RED InputColorIdxConstants, 469 NBCCommon.h, 695 INPUT_REDCOLOR InputColorValueConstants, 470 NBCCommon.h, 695 INPUT_RESETCAL InputColorCalibrationStateConstants, 471 NBCCommon.h, 695 INPUT_RUNNINGCAL
INDEX
825
InputColorCalibrationStateConstants, 471 NBCCommon.h, 695 INPUT_SENSORCAL InputColorCalibrationStateConstants, 471 NBCCommon.h, 695 INPUT_SENSOROFF InputColorCalibrationStateConstants, 471 NBCCommon.h, 696 INPUT_STARTCAL InputColorCalibrationStateConstants, 471 NBCCommon.h, 696 INPUT_WHITECOLOR InputColorValueConstants, 470 NBCCommon.h, 696 INPUT_YELLOWCOLOR InputColorValueConstants, 470 NBCCommon.h, 696 InputColorCalibrationConstants INPUT_CAL_POINT_0, 472 INPUT_CAL_POINT_1, 472 INPUT_CAL_POINT_2, 472 INPUT_NO_OF_POINTS, 472 InputColorCalibrationStateConstants INPUT_RESETCAL, 471 INPUT_RUNNINGCAL, 471 INPUT_SENSORCAL, 471 INPUT_SENSOROFF, 471 INPUT_STARTCAL, 471 InputColorIdxConstants INPUT_BLANK, 469 INPUT_BLUE, 469 INPUT_GREEN, 469 INPUT_NO_OF_COLORS, 469 INPUT_RED, 469 InputColorValueConstants INPUT_BLACKCOLOR, 470 INPUT_BLUECOLOR, 470 INPUT_GREENCOLOR, 470 INPUT_REDCOLOR, 470 INPUT_WHITECOLOR, 470 INPUT_YELLOWCOLOR, 470 InputFieldConstants
InputMode, 467 InvalidData, 467 NormalizedValue, 468 RawValue, 468 ScaledValue, 468 Type, 468 InputIOMAP InputOffsetADRaw, 473 InputOffsetColorADRaw, 473 InputOffsetColorCalibration, 473 InputOffsetColorCalibrationState, 473 InputOffsetColorCalLimits, 473 InputOffsetColorSensorBoolean, 473 InputOffsetColorSensorRaw, 474 InputOffsetColorSensorValue, 474 InputOffsetCustomActiveStatus, 474 InputOffsetCustomPctFullScale, 474 InputOffsetCustomZeroOffset, 474 InputOffsetDigiPinsDir, 474 InputOffsetDigiPinsIn, 474 InputOffsetDigiPinsOut, 474 InputOffsetInvalidData, 474 InputOffsetSensorBoolean, 474 InputOffsetSensorMode, 475 InputOffsetSensorRaw, 475 InputOffsetSensorType, 475 InputOffsetSensorValue, 475 InputMode InputFieldConstants, 467 NBCCommon.h, 696 InputModuleConstants INPUT_CUSTOM9V, 76 INPUT_CUSTOMACTIVE, 76 INPUT_CUSTOMINACTIVE, 76 INPUT_DIGI0, 76 INPUT_DIGI1, 76 INPUT_INVALID_DATA, 76 InputModuleFunctions ClearSensor, 248 GetInColorADRaw, 248 GetInColorBoolean, 248 GetInColorCalibration, 249 GetInColorCalibrationState, 249 GetInColorCalLimits, 250
INDEX
826
GetInColorSensorRaw, 250 GetInColorSensorValue, 250 GetInCustomActiveStatus, 251 GetInCustomPercentFullScale, 251 GetInCustomZeroOffset, 251 GetInDigiPinsDirection, 252 GetInDigiPinsOutputLevel, 252 GetInDigiPinsStatus, 252 GetInSensorBoolean, 253 ReadSensor, 253 ReadSensorColorEx, 253 ReadSensorColorRaw, 254 ResetSensor, 254 SetInCustomActiveStatus, 254 SetInCustomPercentFullScale, 255 SetInCustomZeroOffset, 255 SetInDigiPinsDirection, 255 SetInDigiPinsOutputLevel, 256 SetInDigiPinsStatus, 256 SetInSensorBoolean, 256 SetSensorColorBlue, 256 SetSensorColorFull, 257 SetSensorColorGreen, 257 SetSensorColorNone, 257 SetSensorColorRed, 258 SetSensorLight, 258 SetSensorLowspeed, 258 SetSensorMode, 259 SetSensorSound, 259 SetSensorTouch, 259 SetSensorType, 259 SetSensorUltrasonic, 260 InputModuleID ModuleIDConstants, 214 NBCCommon.h, 696 InputModuleName ModuleNameConstants, 212 NBCCommon.h, 696 InputOffsetADRaw InputIOMAP, 473 NBCCommon.h, 696 InputOffsetColorADRaw InputIOMAP, 473 NBCCommon.h, 696 InputOffsetColorCalibration InputIOMAP, 473
NBCCommon.h, 696 InputOffsetColorCalibrationState InputIOMAP, 473 NBCCommon.h, 697 InputOffsetColorCalLimits InputIOMAP, 473 NBCCommon.h, 697 InputOffsetColorSensorBoolean InputIOMAP, 473 NBCCommon.h, 697 InputOffsetColorSensorRaw InputIOMAP, 474 NBCCommon.h, 697 InputOffsetColorSensorValue InputIOMAP, 474 NBCCommon.h, 697 InputOffsetCustomActiveStatus InputIOMAP, 474 NBCCommon.h, 697 InputOffsetCustomPctFullScale InputIOMAP, 474 NBCCommon.h, 697 InputOffsetCustomZeroOffset InputIOMAP, 474 NBCCommon.h, 697 InputOffsetDigiPinsDir InputIOMAP, 474 NBCCommon.h, 697 InputOffsetDigiPinsIn InputIOMAP, 474 NBCCommon.h, 698 InputOffsetDigiPinsOut InputIOMAP, 474 NBCCommon.h, 698 InputOffsetInvalidData InputIOMAP, 474 NBCCommon.h, 698 InputOffsetSensorBoolean InputIOMAP, 474 NBCCommon.h, 698 InputOffsetSensorMode InputIOMAP, 475 NBCCommon.h, 698 InputOffsetSensorRaw InputIOMAP, 475 NBCCommon.h, 698
INDEX
827
InputOffsetSensorType InputIOMAP, 475 NBCCommon.h, 698 InputOffsetSensorValue InputIOMAP, 475 NBCCommon.h, 698 INT_MAX NBCCommon.h, 698 NXTLimits, 611 INT_MIN NBCCommon.h, 698 NXTLimits, 611 INTF_BTOFF CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_BTON CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_CONNECT CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_CONNECTBYNAME CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_CONNECTREQ CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_DISCONNECT CommInterfaceConstants, 540 NBCCommon.h, 699 INTF_DISCONNECTALL CommInterfaceConstants, 541 NBCCommon.h, 699 INTF_EXTREAD CommInterfaceConstants, 541 NBCCommon.h, 699 INTF_FACTORYRESET CommInterfaceConstants, 541 NBCCommon.h, 699 INTF_OPENSTREAM CommInterfaceConstants, 541 NBCCommon.h, 699 INTF_PINREQ CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_REMOVEDEVICE
CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_SEARCH CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_SENDDATA CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_SENDFILE CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_SETBTNAME CommInterfaceConstants, 541 NBCCommon.h, 700 INTF_SETCMDMODE CommInterfaceConstants, 542 NBCCommon.h, 700 INTF_STOPSEARCH CommInterfaceConstants, 542 NBCCommon.h, 700 INTF_VISIBILITY CommInterfaceConstants, 542 NBCCommon.h, 700 InvalidData InputFieldConstants, 467 NBCCommon.h, 700 IOCtrl module, 83 IOCtrl module constants, 423 IOCtrl module functions, 380 IOCtrl module IOMAP offsets, 424 IOCTRL_BOOT IOCtrlPO, 424 NBCCommon.h, 701 IOCTRL_POWERDOWN IOCtrlPO, 424 NBCCommon.h, 701 IOCtrlIOMAP IOCtrlOffsetPowerOn, 424 IOCtrlModuleFunctions PowerDown, 381 RebootInFirmwareMode, 381 IOCtrlModuleID ModuleIDConstants, 214 NBCCommon.h, 701 IOCtrlModuleName ModuleNameConstants, 212
INDEX
828
NBCCommon.h, 701 IOCtrlOffsetPowerOn IOCtrlIOMAP, 424 NBCCommon.h, 701 IOCtrlPO IOCTRL_BOOT, 424 IOCTRL_POWERDOWN, 424 IOMapRead NBCCommon.h, 701 SysCallConstants, 402 IOMapReadByID NBCCommon.h, 701 SysCallConstants, 402 IOMapWrite NBCCommon.h, 701 SysCallConstants, 403 IOMapWriteByID NBCCommon.h, 701 SysCallConstants, 403 IR Train channel constants, 588 IRTrainChannels TRAIN_CHANNEL_1, 589 TRAIN_CHANNEL_2, 589 TRAIN_CHANNEL_3, 589 TRAIN_CHANNEL_ALL, 589 IRTrainFuncs TRAIN_FUNC_DECR_SPEED, 588 TRAIN_FUNC_INCR_SPEED, 588 TRAIN_FUNC_STOP, 588 TRAIN_FUNC_TOGGLE_LIGHT, 588 KeepAlive NBCCommon.h, 702 SysCallConstants, 403 LCD_LINE1 LineConstants, 405 NBCCommon.h, 702 LCD_LINE2 LineConstants, 405 NBCCommon.h, 702 LCD_LINE3 LineConstants, 405 NBCCommon.h, 702
LCD_LINE4 LineConstants, 405 NBCCommon.h, 702 LCD_LINE5 LineConstants, 405 NBCCommon.h, 702 LCD_LINE6 LineConstants, 406 NBCCommon.h, 702 LCD_LINE7 LineConstants, 406 NBCCommon.h, 702 LCD_LINE8 LineConstants, 406 NBCCommon.h, 702 LDR_APPENDNOTPOSSIBLE LoaderErrors, 427 NBCCommon.h, 702 LDR_BTBUSY LoaderErrors, 427 NBCCommon.h, 703 LDR_BTCONNECTFAIL LoaderErrors, 427 NBCCommon.h, 703 LDR_BTTIMEOUT LoaderErrors, 427 NBCCommon.h, 703 LDR_CMD_BOOTCMD LoaderFunctionConstants, 431 NBCCommon.h, 703 LDR_CMD_BTFACTORYRESET LoaderFunctionConstants, 431 NBCCommon.h, 703 LDR_CMD_BTGETADR LoaderFunctionConstants, 431 NBCCommon.h, 703 LDR_CMD_CLOSE LoaderFunctionConstants, 431 NBCCommon.h, 703 LDR_CMD_CLOSEMODHANDLE LoaderFunctionConstants, 432 NBCCommon.h, 703 LDR_CMD_CROPDATAFILE LoaderFunctionConstants, 432 NBCCommon.h, 703 LDR_CMD_DELETE
INDEX
829
LoaderFunctionConstants, 432 NBCCommon.h, 703 LDR_CMD_DELETEUSERFLASH LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_DEVICEINFO LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_FINDFIRST LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_FINDFIRSTMODULE LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_FINDNEXT LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_FINDNEXTMODULE LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_IOMAPREAD LoaderFunctionConstants, 432 NBCCommon.h, 704 LDR_CMD_IOMAPWRITE LoaderFunctionConstants, 433 NBCCommon.h, 704 LDR_CMD_OPENAPPENDDATA LoaderFunctionConstants, 433 NBCCommon.h, 704 LDR_CMD_OPENREAD LoaderFunctionConstants, 433 NBCCommon.h, 704 LDR_CMD_OPENREADLINEAR LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_OPENWRITE LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_OPENWRITEDATA LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_OPENWRITELINEAR LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_POLLCMD LoaderFunctionConstants, 433
NBCCommon.h, 705 LDR_CMD_POLLCMDLEN LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_READ LoaderFunctionConstants, 433 NBCCommon.h, 705 LDR_CMD_RENAMEFILE LoaderFunctionConstants, 434 NBCCommon.h, 705 LDR_CMD_RESIZEDATAFILE LoaderFunctionConstants, 434 NBCCommon.h, 705 LDR_CMD_SEEKFROMCURRENT LoaderFunctionConstants, 434 NBCCommon.h, 705 LDR_CMD_SEEKFROMEND LoaderFunctionConstants, 434 NBCCommon.h, 706 LDR_CMD_SEEKFROMSTART LoaderFunctionConstants, 434 NBCCommon.h, 706 LDR_CMD_SETBRICKNAME LoaderFunctionConstants, 434 NBCCommon.h, 706 LDR_CMD_VERSIONS LoaderFunctionConstants, 434 NBCCommon.h, 706 LDR_CMD_WRITE LoaderFunctionConstants, 434 NBCCommon.h, 706 LDR_ENDOFFILE LoaderErrors, 427 NBCCommon.h, 706 LDR_EOFEXPECTED LoaderErrors, 427 NBCCommon.h, 706 LDR_FILEEXISTS LoaderErrors, 428 NBCCommon.h, 706 LDR_FILEISBUSY LoaderErrors, 428 NBCCommon.h, 706 LDR_FILEISFULL LoaderErrors, 428 NBCCommon.h, 706
INDEX
830
LDR_FILENOTFOUND LoaderErrors, 428 NBCCommon.h, 707 LDR_FILETX_CLOSEERROR LoaderErrors, 428 NBCCommon.h, 707 LDR_FILETX_DSTEXISTS LoaderErrors, 428 NBCCommon.h, 707 LDR_FILETX_SRCMISSING LoaderErrors, 428 NBCCommon.h, 707 LDR_FILETX_STREAMERROR LoaderErrors, 428 NBCCommon.h, 707 LDR_FILETX_TIMEOUT LoaderErrors, 428 NBCCommon.h, 707 LDR_HANDLEALREADYCLOSED LoaderErrors, 428 NBCCommon.h, 707 LDR_ILLEGALFILENAME LoaderErrors, 429 NBCCommon.h, 707 LDR_ILLEGALHANDLE LoaderErrors, 429 NBCCommon.h, 707 LDR_INPROGRESS LoaderErrors, 429 NBCCommon.h, 707 LDR_INVALIDSEEK LoaderErrors, 429 NBCCommon.h, 708 LDR_MODULENOTFOUND LoaderErrors, 429 NBCCommon.h, 708 LDR_NOLINEARSPACE LoaderErrors, 429 NBCCommon.h, 708 LDR_NOMOREFILES LoaderErrors, 429 NBCCommon.h, 708 LDR_NOMOREHANDLES LoaderErrors, 429 NBCCommon.h, 708 LDR_NOSPACE
LoaderErrors, 429 NBCCommon.h, 708 LDR_NOTLINEARFILE LoaderErrors, 429 NBCCommon.h, 708 LDR_NOWRITEBUFFERS LoaderErrors, 430 NBCCommon.h, 708 LDR_OUTOFBOUNDARY LoaderErrors, 430 NBCCommon.h, 708 LDR_REQPIN LoaderErrors, 430 NBCCommon.h, 708 LDR_SUCCESS LoaderErrors, 430 NBCCommon.h, 709 LDR_UNDEFINEDERROR LoaderErrors, 430 NBCCommon.h, 709 Line number constants, 405 LineConstants LCD_LINE1, 405 LCD_LINE2, 405 LCD_LINE3, 405 LCD_LINE4, 405 LCD_LINE5, 405 LCD_LINE6, 406 LCD_LINE7, 406 LCD_LINE8, 406 LineOut DisplayModuleFunctions, 290 LineOutEx DisplayModuleFunctions, 290 ListFiles NBCCommon.h, 709 SysCallConstants, 403 Loader module, 83 Loader module constants, 425 Loader module error codes, 426 Loader module function constants, 430 Loader module functions, 381 Loader module IOMAP offsets, 425 LoaderErrors LDR_APPENDNOTPOSSIBLE, 427
INDEX
831
LDR_BTBUSY, 427 LDR_CMD_CROPDATAFILE, 432 LDR_BTCONNECTFAIL, 427 LDR_CMD_DELETE, 432 LDR_BTTIMEOUT, 427 LDR_CMD_LDR_ENDOFFILE, 427 DELETEUSERFLASH, 432 LDR_EOFEXPECTED, 427 LDR_CMD_DEVICEINFO, 432 LDR_FILEEXISTS, 428 LDR_CMD_FINDFIRST, 432 LDR_FILEISBUSY, 428 LDR_CMD_LDR_FILEISFULL, 428 FINDFIRSTMODULE, 432 LDR_FILENOTFOUND, 428 LDR_CMD_FINDNEXT, 432 LDR_FILETX_CLOSEERROR, LDR_CMD_428 FINDNEXTMODULE, 432 LDR_FILETX_DSTEXISTS, 428 LDR_CMD_IOMAPREAD, 432 LDR_FILETX_SRCMISSING, 428 LDR_CMD_IOMAPWRITE, 433 LDR_FILETX_STREAMERROR, LDR_CMD_OPENAPPENDDATA, 428 433 LDR_FILETX_TIMEOUT, 428 LDR_CMD_OPENREAD, 433 LDR_LDR_CMD_OPENREADLINEAR, HANDLEALREADYCLOSED, 433 428 LDR_CMD_OPENWRITE, 433 LDR_ILLEGALFILENAME, 429 LDR_CMD_OPENWRITEDATA, LDR_ILLEGALHANDLE, 429 433 LDR_INPROGRESS, 429 LDR_CMD_LDR_INVALIDSEEK, 429 OPENWRITELINEAR, 433 LDR_MODULENOTFOUND, 429 LDR_CMD_POLLCMD, 433 LDR_NOLINEARSPACE, 429 LDR_CMD_POLLCMDLEN, 433 LDR_NOMOREFILES, 429 LDR_CMD_READ, 433 LDR_NOMOREHANDLES, 429 LDR_CMD_RENAMEFILE, 434 LDR_NOSPACE, 429 LDR_CMD_RESIZEDATAFILE, LDR_NOTLINEARFILE, 429 434 LDR_NOWRITEBUFFERS, 430 LDR_CMD_LDR_OUTOFBOUNDARY, 430 SEEKFROMCURRENT, LDR_REQPIN, 430 434 LDR_SUCCESS, 430 LDR_CMD_SEEKFROMEND, 434 LDR_UNDEFINEDERROR, 430 LDR_CMD_SEEKFROMSTART, LoaderExecuteFunction 434 NBCCommon.h, 709 LDR_CMD_SETBRICKNAME, SysCallConstants, 403 434 LoaderFunctionConstants LDR_CMD_VERSIONS, 434 LDR_CMD_BOOTCMD, 431 LDR_CMD_WRITE, 434 LDR_CMD_BTFACTORYRESET, LoaderIOMAP 431 LoaderOffsetFreeUserFlash, 426 LDR_CMD_BTGETADR, 431 LoaderOffsetPFunc, 426 LDR_CMD_CLOSE, 431 LoaderModuleConstants LDR_CMD_EOF, 425 CLOSEMODHANDLE, NULL, 425 432 LoaderModuleFunctions
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
INDEX
832
CloseFile, 384 CreateFile, 384 CreateFileLinear, 384 CreateFileNonLinear, 385 DeleteFile, 385 FindFirstFile, 386 FindNextFile, 386 GetFreeMemory, 387 OpenFileAppend, 387 OpenFileRead, 387 OpenFileReadLinear, 388 Read, 388 ReadBytes, 388 ReadLn, 389 ReadLnString, 389 RenameFile, 390 ResizeFile, 390 ResolveHandle, 390 Write, 391 WriteBytes, 391 WriteBytesEx, 391 WriteLn, 392 WriteLnString, 392 WriteString, 393 LoaderModuleID ModuleIDConstants, 214 NBCCommon.h, 709 LoaderModuleName ModuleNameConstants, 212 NBCCommon.h, 709 LoaderOffsetFreeUserFlash LoaderIOMAP, 426 NBCCommon.h, 709 LoaderOffsetPFunc LoaderIOMAP, 426 NBCCommon.h, 709 LONG_MAX NBCCommon.h, 709 NXTLimits, 611 LONG_MIN NBCCommon.h, 709 NXTLimits, 611 Low level LowSpeed module functions, 272 Low Speed module, 85 Low speed module IOMAP offsets, 497
LowLevelLowSpeedModuleFunctions GetLSChannelState, 273 GetLSErrorType, 273 GetLSInputBuffer, 274 GetLSInputBufferBytesToRx, 274 GetLSInputBufferInPtr, 274 GetLSInputBufferOutPtr, 275 GetLSMode, 275 GetLSNoRestartOnRead, 275 GetLSOutputBuffer, 275 GetLSOutputBufferBytesToRx, 276 GetLSOutputBufferInPtr, 276 GetLSOutputBufferOutPtr, 276 GetLSSpeed, 277 GetLSState, 277 LowSpeed module constants, 493 LowSpeed module functions, 260 LOWSPEED_CH_NOT_READY LowSpeedErrorTypeConstants, 497 NBCCommon.h, 710 LOWSPEED_COMMUNICATING LowSpeedChannelStateConstants, 495 NBCCommon.h, 710 LOWSPEED_DATA_RECEIVED LowSpeedModeConstants, 496 NBCCommon.h, 710 LOWSPEED_DONE LowSpeedChannelStateConstants, 495 NBCCommon.h, 710 LOWSPEED_ERROR LowSpeedChannelStateConstants, 495 NBCCommon.h, 710 LOWSPEED_IDLE LowSpeedChannelStateConstants, 495 NBCCommon.h, 710 LOWSPEED_INIT LowSpeedChannelStateConstants, 495 NBCCommon.h, 710 LOWSPEED_LOAD_BUFFER LowSpeedChannelStateConstants, 496
INDEX
833
NBCCommon.h, 710 LOWSPEED_NO_ERROR LowSpeedErrorTypeConstants, 497 NBCCommon.h, 710 LOWSPEED_RECEIVING LowSpeedModeConstants, 496 NBCCommon.h, 710 LOWSPEED_RX_ERROR LowSpeedErrorTypeConstants, 497 NBCCommon.h, 711 LOWSPEED_TRANSMITTING LowSpeedModeConstants, 496 NBCCommon.h, 711 LOWSPEED_TX_ERROR LowSpeedErrorTypeConstants, 497 NBCCommon.h, 711 LowspeedBytesReady LowSpeedModuleFunctions, 263 LowSpeedChannelStateConstants LOWSPEED_COMMUNICATING, 495 LOWSPEED_DONE, 495 LOWSPEED_ERROR, 495 LOWSPEED_IDLE, 495 LOWSPEED_INIT, 495 LOWSPEED_LOAD_BUFFER, 496 LowspeedCheckStatus LowSpeedModuleFunctions, 264 LowSpeedErrorTypeConstants LOWSPEED_CH_NOT_READY, 497 LOWSPEED_NO_ERROR, 497 LOWSPEED_RX_ERROR, 497 LOWSPEED_TX_ERROR, 497 LowSpeedIOMAP LowSpeedOffsetChannelState, 498 LowSpeedOffsetErrorType, 498 LowSpeedOffsetInBufBuf, 498 LowSpeedOffsetInBufBytesToRx, 498 LowSpeedOffsetInBufInPtr, 498 LowSpeedOffsetInBufOutPtr, 499 LowSpeedOffsetMode, 499 LowSpeedOffsetNoRestartOnRead, 499 LowSpeedOffsetOutBufBuf, 499
LowSpeedOffsetOutBufBytesToRx, 499 LowSpeedOffsetOutBufInPtr, 499 LowSpeedOffsetOutBufOutPtr, 499 LowSpeedOffsetSpeed, 499 LowSpeedOffsetState, 499 LowSpeedModeConstants LOWSPEED_DATA_RECEIVED, 496 LOWSPEED_RECEIVING, 496 LOWSPEED_TRANSMITTING, 496 LowSpeedModuleFunctions I2CSendCommand, 262 I2CSendCommandEx, 263 LowspeedBytesReady, 263 LowspeedCheckStatus, 264 LowspeedRead, 264 LowspeedStatus, 265 LowspeedWrite, 265 ReadI2CBytes, 266 ReadI2CDeviceId, 267 ReadI2CDeviceIdEx, 267 ReadI2CDeviceInfo, 268 ReadI2CDeviceInfoEx, 268 ReadI2CRegister, 269 ReadI2CVendorId, 269 ReadI2CVendorIdEx, 269 ReadI2CVersion, 270 ReadI2CVersionEx, 270 ReadSensorUS, 271 ReadSensorUSEx, 271 WriteI2CRegister, 271 LowSpeedModuleID ModuleIDConstants, 214 NBCCommon.h, 711 LowSpeedModuleName ModuleNameConstants, 212 NBCCommon.h, 711 LowSpeedNoRestartConstants LSREAD_NO_RESTART_1, 500 LSREAD_NO_RESTART_2, 500 LSREAD_NO_RESTART_3, 500 LSREAD_NO_RESTART_4, 500 LSREAD_NO_RESTART_MASK, 500
INDEX
834
LSREAD_RESTART_ALL, 501 LSREAD_RESTART_NONE, 501 LowSpeedOffsetChannelState LowSpeedIOMAP, 498 NBCCommon.h, 711 LowSpeedOffsetErrorType LowSpeedIOMAP, 498 NBCCommon.h, 711 LowSpeedOffsetInBufBuf LowSpeedIOMAP, 498 NBCCommon.h, 711 LowSpeedOffsetInBufBytesToRx LowSpeedIOMAP, 498 NBCCommon.h, 711 LowSpeedOffsetInBufInPtr LowSpeedIOMAP, 498 NBCCommon.h, 711 LowSpeedOffsetInBufOutPtr LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetMode LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetNoRestartOnRead LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetOutBufBuf LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetOutBufBytesToRx LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetOutBufInPtr LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetOutBufOutPtr LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetSpeed LowSpeedIOMAP, 499 NBCCommon.h, 712 LowSpeedOffsetState LowSpeedIOMAP, 499 NBCCommon.h, 712 LowspeedRead LowSpeedModuleFunctions, 264
LowSpeedStateConstants COM_CHANNEL_FOUR_ACTIVE, 494 COM_CHANNEL_NONE_ACTIVE, 494 COM_CHANNEL_ONE_ACTIVE, 494 COM_CHANNEL_THREE_ACTIVE, 494 COM_CHANNEL_TWO_ACTIVE, 494 LowspeedStatus LowSpeedModuleFunctions, 265 LowspeedWrite LowSpeedModuleFunctions, 265 LR_COULD_NOT_SAVE CommStatusCodesConstants, 543 NBCCommon.h, 712 LR_ENTRY_REMOVED CommStatusCodesConstants, 543 NBCCommon.h, 713 LR_STORE_IS_FULL CommStatusCodesConstants, 543 NBCCommon.h, 713 LR_SUCCESS CommStatusCodesConstants, 543 NBCCommon.h, 713 LR_UNKNOWN_ADDR CommStatusCodesConstants, 543 NBCCommon.h, 713 LSChannelState constants, 495 LSErrorType constants, 497 LSMode constants, 496 LSNoRestartOnRead constants, 500 LSREAD_NO_RESTART_1 LowSpeedNoRestartConstants, 500 NBCCommon.h, 713 LSREAD_NO_RESTART_2 LowSpeedNoRestartConstants, 500 NBCCommon.h, 713 LSREAD_NO_RESTART_3 LowSpeedNoRestartConstants, 500 NBCCommon.h, 713 LSREAD_NO_RESTART_4 LowSpeedNoRestartConstants, 500 NBCCommon.h, 713
INDEX
835
LSREAD_NO_RESTART_MASK LowSpeedNoRestartConstants, 500 NBCCommon.h, 713 LSREAD_RESTART_ALL LowSpeedNoRestartConstants, 501 NBCCommon.h, 713 LSREAD_RESTART_NONE LowSpeedNoRestartConstants, 501 NBCCommon.h, 714 LSState constants, 494 LT cmpconst, 73 LTEQ cmpconst, 73 Mailbox constants, 412 MAILBOX1 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX10 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX2 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX3 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX4 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX5 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX6 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX7 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX8 MailboxConstants, 413 NBCCommon.h, 714 MAILBOX9 MailboxConstants, 413 NBCCommon.h, 715
MailboxConstants MAILBOX1, 413 MAILBOX10, 413 MAILBOX2, 413 MAILBOX3, 413 MAILBOX4, 413 MAILBOX5, 413 MAILBOX6, 413 MAILBOX7, 413 MAILBOX8, 413 MAILBOX9, 413 MAX_BT_MSG_SIZE CommMiscConstants, 526 NBCCommon.h, 715 MENUICON_CENTER DisplayModuleConstants, 509 NBCCommon.h, 715 MENUICON_LEFT DisplayModuleConstants, 509 NBCCommon.h, 715 MENUICON_RIGHT DisplayModuleConstants, 509 NBCCommon.h, 715 MENUICONS DisplayModuleConstants, 510 NBCCommon.h, 715 MENUTEXT DisplayModuleConstants, 510 NBCCommon.h, 715 MessageRead NBCCommon.h, 715 SysCallConstants, 403 MessageWrite NBCCommon.h, 715 SysCallConstants, 403 MIN_1 NBCCommon.h, 715 TimeConstants, 407 MindSensors API Functions, 128 MindSensors device constants, 601 MindSensors DIST-Nx constants, 602 MindSensors nRLink constants, 608 MindSensors PSP-Nx button set 1 constants, 606 MindSensors PSP-Nx button set 2 constants, 607
INDEX
836
MindSensors PSP-Nx constants, 604 MindSensorsAPI DISTNxGP2D12, 145 DISTNxGP2D120, 145 DISTNxGP2D120Ex, 145 DISTNxGP2D12Ex, 146 DISTNxGP2YA02, 146 DISTNxGP2YA02Ex, 146 DISTNxGP2YA21, 147 DISTNxGP2YA21Ex, 147 MSADPAOff, 147 MSADPAOffEx, 148 MSADPAOn, 148 MSADPAOnEx, 148 MSDeenergize, 149 MSDeenergizeEx, 149 MSEnergize, 149 MSEnergizeEx, 150 MSIRTrain, 150 MSIRTrainEx, 150 MSPFComboDirect, 151 MSPFComboDirectEx, 151 MSPFComboPWM, 152 MSPFComboPWMEx, 153 MSPFRawOutput, 153 MSPFRawOutputEx, 154 MSPFRepeat, 154 MSPFRepeatEx, 154 MSPFSingleOutputCST, 155 MSPFSingleOutputCSTEx, 155 MSPFSingleOutputPWM, 156 MSPFSingleOutputPWMEx, 157 MSPFSinglePin, 157 MSPFSinglePinEx, 158 MSPFTrain, 158 MSPFTrainEx, 159 MSRCXAbsVar, 159 MSRCXAddToDatalog, 160 MSRCXAndVar, 160 MSRCXBatteryLevel, 160 MSRCXBoot, 160 MSRCXCalibrateEvent, 161 MSRCXClearAllEvents, 161 MSRCXClearCounter, 161 MSRCXClearMsg, 161 MSRCXClearSensor, 161
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
MSRCXClearSound, 162 MSRCXClearTimer, 162 MSRCXCreateDatalog, 162 MSRCXDecCounter, 162 MSRCXDeleteSub, 162 MSRCXDeleteSubs, 163 MSRCXDeleteTask, 163 MSRCXDeleteTasks, 163 MSRCXDisableOutput, 163 MSRCXDivVar, 163 MSRCXEnableOutput, 164 MSRCXEvent, 164 MSRCXFloat, 164 MSRCXFwd, 164 MSRCXIncCounter, 165 MSRCXInvertOutput, 165 MSRCXMulVar, 165 MSRCXMuteSound, 165 MSRCXObvertOutput, 166 MSRCXOff, 166 MSRCXOn, 166 MSRCXOnFor, 166 MSRCXOnFwd, 167 MSRCXOnRev, 167 MSRCXOrVar, 167 MSRCXPBTurnOff, 167 MSRCXPing, 168 MSRCXPlaySound, 168 MSRCXPlayTone, 168 MSRCXPlayToneVar, 168 MSRCXPoll, 168 MSRCXPollMemory, 169 MSRCXRemote, 169 MSRCXReset, 169 MSRCXRev, 169 MSRCXSelectDisplay, 170 MSRCXSelectProgram, 170 MSRCXSendSerial, 170 MSRCXSet, 170 MSRCXSetDirection, 171 MSRCXSetEvent, 171 MSRCXSetGlobalDirection, 171 MSRCXSetGlobalOutput, 172 MSRCXSetMaxPower, 172 MSRCXSetMessage, 172 MSRCXSetNRLinkPort, 173
INDEX
837
MSRCXSetNRLinkPortEx, 173 MSRCXSetOutput, 173 MSRCXSetPower, 173 MSRCXSetPriority, 174 MSRCXSetSensorMode, 174 MSRCXSetSensorType, 174 MSRCXSetSleepTime, 175 MSRCXSetTxPower, 175 MSRCXSetUserDisplay, 175 MSRCXSetVar, 175 MSRCXSetWatch, 176 MSRCXSgnVar, 176 MSRCXStartTask, 176 MSRCXStopAllTasks, 176 MSRCXStopTask, 177 MSRCXSubVar, 177 MSRCXSumVar, 177 MSRCXToggle, 177 MSRCXUnlock, 178 MSRCXUnmuteSound, 178 MSReadValue, 178 MSReadValueEx, 178 MSScoutCalibrateSensor, 179 MSScoutMuteSound, 179 MSScoutSelectSounds, 179 MSScoutSendVLL, 179 MSScoutSetCounterLimit, 180 MSScoutSetEventFeedback, 180 MSScoutSetLight, 180 MSScoutSetScoutMode, 180 MSScoutSetScoutRules, 181 MSScoutSetSensorClickTime, 181 MSScoutSetSensorHysteresis, 181 MSScoutSetSensorLowerLimit, 182 MSScoutSetSensorUpperLimit, 182 MSScoutSetTimerLimit, 182 MSScoutUnmuteSound, 182 NRLink2400, 183 NRLink2400Ex, 183 NRLink4800, 183 NRLink4800Ex, 184 NRLinkFlush, 184 NRLinkFlushEx, 184 NRLinkIRLong, 185 NRLinkIRLongEx, 185 NRLinkIRShort, 185
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
NRLinkIRShortEx, 186 NRLinkSetPF, 186 NRLinkSetPFEx, 186 NRLinkSetRCX, 187 NRLinkSetRCXEx, 187 NRLinkSetTrain, 187 NRLinkSetTrainEx, 188 NRLinkTxRaw, 188 NRLinkTxRawEx, 188 PSPNxAnalog, 189 PSPNxAnalogEx, 189 PSPNxDigital, 189 PSPNxDigitalEx, 190 ReadDISTNxDistance, 190 ReadDISTNxDistanceEx, 190 ReadDISTNxMaxDistance, 191 ReadDISTNxMaxDistanceEx, 191 ReadDISTNxMinDistance, 191 ReadDISTNxMinDistanceEx, 192 ReadDISTNxModuleType, 192 ReadDISTNxModuleTypeEx, 193 ReadDISTNxNumPoints, 193 ReadDISTNxNumPointsEx, 193 ReadDISTNxVoltage, 194 ReadDISTNxVoltageEx, 194 ReadNRLinkBytes, 194 ReadNRLinkBytesEx, 195 ReadNRLinkStatus, 195 ReadNRLinkStatusEx, 195 ReadSensorMSAccel, 196 ReadSensorMSAccelEx, 196 ReadSensorMSCompass, 197 ReadSensorMSCompassEx, 197 ReadSensorMSDROD, 197 ReadSensorMSPlayStation, 197 ReadSensorMSPlayStationEx, 198 ReadSensorMSPressure, 199 ReadSensorMSPressureRaw, 199 ReadSensorMSRTClock, 199 ReadSensorMSTilt, 200 ReadSensorMSTiltEx, 200 RunNRLinkMacro, 201 RunNRLinkMacroEx, 201 SetSensorMSDRODActive, 201 SetSensorMSDRODInactive, 202 SetSensorMSPressure, 202
INDEX
838
WriteNRLinkBytes, 202 WriteNRLinkBytesEx, 202 MindSensorsConstants MS_CMD_ADPA_OFF, 602 MS_CMD_ADPA_ON, 602 MS_CMD_DEENERGIZED, 602 MS_CMD_ENERGIZED, 602 MiscConstants DEGREES_PER_RADIAN, 215 FALSE, 215 NA, 215 PI, 215 RADIANS_PER_DEGREE, 215 TRUE, 216 Miscellaneous Comm module constants, 525 Miscellaneous NBC/NXC constants, 215 ModuleIDConstants ButtonModuleID, 213 CommandModuleID, 213 CommModuleID, 214 DisplayModuleID, 214 InputModuleID, 214 IOCtrlModuleID, 214 LoaderModuleID, 214 LowSpeedModuleID, 214 OutputModuleID, 214 SoundModuleID, 214 UIModuleID, 214 ModuleNameConstants ButtonModuleName, 212 CommandModuleName, 212 CommModuleName, 212 DisplayModuleName, 212 InputModuleName, 212 IOCtrlModuleName, 212 LoaderModuleName, 212 LowSpeedModuleName, 212 OutputModuleName, 212 SoundModuleName, 213 UIModuleName, 213 MS_1 NBCCommon.h, 716 TimeConstants, 407 MS_10 NBCCommon.h, 716
TimeConstants, 408 MS_100 NBCCommon.h, 716 TimeConstants, 408 MS_150 NBCCommon.h, 716 TimeConstants, 408 MS_2 NBCCommon.h, 716 TimeConstants, 408 MS_20 NBCCommon.h, 716 TimeConstants, 408 MS_200 NBCCommon.h, 716 TimeConstants, 408 MS_250 NBCCommon.h, 716 TimeConstants, 408 MS_3 NBCCommon.h, 716 TimeConstants, 408 MS_30 NBCCommon.h, 716 TimeConstants, 408 MS_300 NBCCommon.h, 717 TimeConstants, 408 MS_350 NBCCommon.h, 717 TimeConstants, 409 MS_4 NBCCommon.h, 717 TimeConstants, 409 MS_40 NBCCommon.h, 717 TimeConstants, 409 MS_400 NBCCommon.h, 717 TimeConstants, 409 MS_450 NBCCommon.h, 717 TimeConstants, 409 MS_5 NBCCommon.h, 717 TimeConstants, 409
INDEX
839
MS_50 NBCCommon.h, 717 TimeConstants, 409 MS_500 NBCCommon.h, 717 TimeConstants, 409 MS_6 NBCCommon.h, 717 TimeConstants, 409 MS_60 NBCCommon.h, 718 TimeConstants, 409 MS_600 NBCCommon.h, 718 TimeConstants, 410 MS_7 NBCCommon.h, 718 TimeConstants, 410 MS_70 NBCCommon.h, 718 TimeConstants, 410 MS_700 NBCCommon.h, 718 TimeConstants, 410 MS_8 NBCCommon.h, 718 TimeConstants, 410 MS_80 NBCCommon.h, 718 TimeConstants, 410 MS_800 NBCCommon.h, 718 TimeConstants, 410 MS_9 NBCCommon.h, 718 TimeConstants, 410 MS_90 NBCCommon.h, 718 TimeConstants, 410 MS_900 NBCCommon.h, 719 TimeConstants, 410 MS_CMD_ADPA_OFF MindSensorsConstants, 602 NBCCommon.h, 719 MS_CMD_ADPA_ON
MindSensorsConstants, 602 NBCCommon.h, 719 MS_CMD_DEENERGIZED MindSensorsConstants, 602 NBCCommon.h, 719 MS_CMD_ENERGIZED MindSensorsConstants, 602 NBCCommon.h, 719 MSADPAOff MindSensorsAPI, 147 MSADPAOffEx MindSensorsAPI, 148 MSADPAOn MindSensorsAPI, 148 MSADPAOnEx MindSensorsAPI, 148 MSDeenergize MindSensorsAPI, 149 MSDeenergizeEx MindSensorsAPI, 149 MSDistNX DIST_CMD_CUSTOM, 603 DIST_CMD_GP2D12, 603 DIST_CMD_GP2D120, 603 DIST_CMD_GP2YA02, 603 DIST_CMD_GP2YA21, 603 DIST_REG_DIST, 603 DIST_REG_DIST1, 603 DIST_REG_DIST_MAX, 603 DIST_REG_DIST_MIN, 603 DIST_REG_MODULE_TYPE, 603 DIST_REG_NUM_POINTS, 604 DIST_REG_VOLT, 604 DIST_REG_VOLT1, 604 MSEnergize MindSensorsAPI, 149 MSEnergizeEx MindSensorsAPI, 150 MSIRTrain MindSensorsAPI, 150 MSIRTrainEx MindSensorsAPI, 150 MSNRLink NRLINK_CMD_2400, 609 NRLINK_CMD_4800, 609 NRLINK_CMD_FLUSH, 609
INDEX
840
NRLINK_CMD_IR_LONG, 609 NRLINK_CMD_IR_SHORT, 609 NRLINK_CMD_RUN_MACRO, 609 NRLINK_CMD_SET_PF, 609 NRLINK_CMD_SET_RCX, 609 NRLINK_CMD_SET_TRAIN, 609 NRLINK_CMD_TX_RAW, 609 NRLINK_REG_BYTES, 610 NRLINK_REG_DATA, 610 NRLINK_REG_EEPROM, 610 MSPFComboDirect MindSensorsAPI, 151 MSPFComboDirectEx MindSensorsAPI, 151 MSPFComboPWM MindSensorsAPI, 152 MSPFComboPWMEx MindSensorsAPI, 153 MSPFRawOutput MindSensorsAPI, 153 MSPFRawOutputEx MindSensorsAPI, 154 MSPFRepeat MindSensorsAPI, 154 MSPFRepeatEx MindSensorsAPI, 154 MSPFSingleOutputCST MindSensorsAPI, 155 MSPFSingleOutputCSTEx MindSensorsAPI, 155 MSPFSingleOutputPWM MindSensorsAPI, 156 MSPFSingleOutputPWMEx MindSensorsAPI, 157 MSPFSinglePin MindSensorsAPI, 157 MSPFSinglePinEx MindSensorsAPI, 158 MSPFTrain MindSensorsAPI, 158 MSPFTrainEx MindSensorsAPI, 159 MSPSPNX PSP_CMD_ANALOG, 605 PSP_CMD_DIGITAL, 605
PSP_REG_BTNSET1, 605 PSP_REG_BTNSET2, 605 PSP_REG_XLEFT, 605 PSP_REG_XRIGHT, 605 PSP_REG_YLEFT, 605 PSP_REG_YRIGHT, 605 MSPSPNXBtnSet1 PSP_BTNSET1_DOWN, 606 PSP_BTNSET1_L3, 606 PSP_BTNSET1_LEFT, 606 PSP_BTNSET1_R3, 606 PSP_BTNSET1_RIGHT, 606 PSP_BTNSET1_UP, 606 MSPSPNXBtnSet2 PSP_BTNSET2_CIRCLE, 607 PSP_BTNSET2_CROSS, 607 PSP_BTNSET2_L1, 607 PSP_BTNSET2_L2, 607 PSP_BTNSET2_R1, 607 PSP_BTNSET2_R2, 608 PSP_BTNSET2_SQUARE, 608 PSP_BTNSET2_TRIANGLE, 608 MSRCXAbsVar MindSensorsAPI, 159 MSRCXAddToDatalog MindSensorsAPI, 160 MSRCXAndVar MindSensorsAPI, 160 MSRCXBatteryLevel MindSensorsAPI, 160 MSRCXBoot MindSensorsAPI, 160 MSRCXCalibrateEvent MindSensorsAPI, 161 MSRCXClearAllEvents MindSensorsAPI, 161 MSRCXClearCounter MindSensorsAPI, 161 MSRCXClearMsg MindSensorsAPI, 161 MSRCXClearSensor MindSensorsAPI, 161 MSRCXClearSound MindSensorsAPI, 162 MSRCXClearTimer MindSensorsAPI, 162
INDEX
841
MSRCXCreateDatalog MindSensorsAPI, 162 MSRCXDecCounter MindSensorsAPI, 162 MSRCXDeleteSub MindSensorsAPI, 162 MSRCXDeleteSubs MindSensorsAPI, 163 MSRCXDeleteTask MindSensorsAPI, 163 MSRCXDeleteTasks MindSensorsAPI, 163 MSRCXDisableOutput MindSensorsAPI, 163 MSRCXDivVar MindSensorsAPI, 163 MSRCXEnableOutput MindSensorsAPI, 164 MSRCXEvent MindSensorsAPI, 164 MSRCXFloat MindSensorsAPI, 164 MSRCXFwd MindSensorsAPI, 164 MSRCXIncCounter MindSensorsAPI, 165 MSRCXInvertOutput MindSensorsAPI, 165 MSRCXMulVar MindSensorsAPI, 165 MSRCXMuteSound MindSensorsAPI, 165 MSRCXObvertOutput MindSensorsAPI, 166 MSRCXOff MindSensorsAPI, 166 MSRCXOn MindSensorsAPI, 166 MSRCXOnFor MindSensorsAPI, 166 MSRCXOnFwd MindSensorsAPI, 167 MSRCXOnRev MindSensorsAPI, 167 MSRCXOrVar MindSensorsAPI, 167
MSRCXPBTurnOff MindSensorsAPI, 167 MSRCXPing MindSensorsAPI, 168 MSRCXPlaySound MindSensorsAPI, 168 MSRCXPlayTone MindSensorsAPI, 168 MSRCXPlayToneVar MindSensorsAPI, 168 MSRCXPoll MindSensorsAPI, 168 MSRCXPollMemory MindSensorsAPI, 169 MSRCXRemote MindSensorsAPI, 169 MSRCXReset MindSensorsAPI, 169 MSRCXRev MindSensorsAPI, 169 MSRCXSelectDisplay MindSensorsAPI, 170 MSRCXSelectProgram MindSensorsAPI, 170 MSRCXSendSerial MindSensorsAPI, 170 MSRCXSet MindSensorsAPI, 170 MSRCXSetDirection MindSensorsAPI, 171 MSRCXSetEvent MindSensorsAPI, 171 MSRCXSetGlobalDirection MindSensorsAPI, 171 MSRCXSetGlobalOutput MindSensorsAPI, 172 MSRCXSetMaxPower MindSensorsAPI, 172 MSRCXSetMessage MindSensorsAPI, 172 MSRCXSetNRLinkPort MindSensorsAPI, 173 MSRCXSetNRLinkPortEx MindSensorsAPI, 173 MSRCXSetOutput MindSensorsAPI, 173
INDEX
842
MSRCXSetPower MindSensorsAPI, 173 MSRCXSetPriority MindSensorsAPI, 174 MSRCXSetSensorMode MindSensorsAPI, 174 MSRCXSetSensorType MindSensorsAPI, 174 MSRCXSetSleepTime MindSensorsAPI, 175 MSRCXSetTxPower MindSensorsAPI, 175 MSRCXSetUserDisplay MindSensorsAPI, 175 MSRCXSetVar MindSensorsAPI, 175 MSRCXSetWatch MindSensorsAPI, 176 MSRCXSgnVar MindSensorsAPI, 176 MSRCXStartTask MindSensorsAPI, 176 MSRCXStopAllTasks MindSensorsAPI, 176 MSRCXStopTask MindSensorsAPI, 177 MSRCXSubVar MindSensorsAPI, 177 MSRCXSumVar MindSensorsAPI, 177 MSRCXToggle MindSensorsAPI, 177 MSRCXUnlock MindSensorsAPI, 178 MSRCXUnmuteSound MindSensorsAPI, 178 MSReadValue MindSensorsAPI, 178 MSReadValueEx MindSensorsAPI, 178 MSScoutCalibrateSensor MindSensorsAPI, 179 MSScoutMuteSound MindSensorsAPI, 179 MSScoutSelectSounds MindSensorsAPI, 179
MSScoutSendVLL MindSensorsAPI, 179 MSScoutSetCounterLimit MindSensorsAPI, 180 MSScoutSetEventFeedback MindSensorsAPI, 180 MSScoutSetLight MindSensorsAPI, 180 MSScoutSetScoutMode MindSensorsAPI, 180 MSScoutSetScoutRules MindSensorsAPI, 181 MSScoutSetSensorClickTime MindSensorsAPI, 181 MSScoutSetSensorHysteresis MindSensorsAPI, 181 MSScoutSetSensorLowerLimit MindSensorsAPI, 182 MSScoutSetSensorUpperLimit MindSensorsAPI, 182 MSScoutSetTimerLimit MindSensorsAPI, 182 MSScoutUnmuteSound MindSensorsAPI, 182 NA MiscConstants, 215 NBCCommon.h, 719 NBC Input port constants, 461 NBC sensor mode constants, 465 NBC sensor type constants, 462 NBCAPIDocs.h, 616 NBCCommon.h, 617 ActualSpeed, 651 BITMAP_1, 652 BITMAP_2, 652 BITMAP_3, 652 BITMAP_4, 652 BITMAPS, 652 BlockTachoCount, 652 BREAKOUT_REQ, 652 BT_ARM_CMD_MODE, 652 BT_ARM_DATA_MODE, 653 BT_ARM_OFF, 653 BT_BRICK_PORT_OPEN, 653 BT_BRICK_VISIBILITY, 653
INDEX
843
BT_CMD_BYTE, 653 BT_CMD_READY, 653 BT_CONNECTION_0_ENABLE, 653 BT_CONNECTION_1_ENABLE, 653 BT_CONNECTION_2_ENABLE, 653 BT_CONNECTION_3_ENABLE, 653 BT_DEFAULT_INQUIRY_MAX, 654 BT_DEFAULT_INQUIRY_TIMEOUT_LO, 654 BT_DEVICE_AWAY, 654 BT_DEVICE_EMPTY, 654 BT_DEVICE_KNOWN, 654 BT_DEVICE_NAME, 654 BT_DEVICE_UNKNOWN, 654 BT_DISABLE, 654 BT_ENABLE, 654 BTN1, 654 BTN2, 655 BTN3, 655 BTN4, 655 BTNCENTER, 655 BTNEXIT, 655 BTNLEFT, 655 BTNRIGHT, 655 BTNSTATE_LONG_PRESSED_EV, 655 BTNSTATE_LONG_RELEASED_EV, 655 BTNSTATE_NONE, 655 BTNSTATE_PRESSED_EV, 656 BTNSTATE_PRESSED_STATE, 656 BTNSTATE_SHORT_RELEASED_EV, 656 ButtonModuleID, 656 ButtonModuleName, 656 ButtonOffsetLongPressCnt, 656 ButtonOffsetLongRelCnt, 656 ButtonOffsetPressedCnt, 656 ButtonOffsetRelCnt, 656 ButtonOffsetShortRelCnt, 656
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
ButtonOffsetState, 657 CHAR_BIT, 657 CHAR_MAX, 657 CHAR_MIN, 657 CLUMP_DONE, 657 CLUMP_SUSPEND, 657 ColorSensorRead, 657 COM_CHANNEL_FOUR_ACTIVE, 657 COM_CHANNEL_NONE_ACTIVE, 657 COM_CHANNEL_ONE_ACTIVE, 657 COM_CHANNEL_THREE_ACTIVE, 658 COM_CHANNEL_TWO_ACTIVE, 658 CommandModuleID, 658 CommandModuleName, 658 CommandOffsetActivateFlag, 658 CommandOffsetAwake, 658 CommandOffsetDeactivateFlag, 658 CommandOffsetFileName, 658 CommandOffsetFormatString, 658 CommandOffsetMemoryPool, 658 CommandOffsetOffsetDS, 659 CommandOffsetOffsetDVA, 659 CommandOffsetPRCHandler, 659 CommandOffsetProgStatus, 659 CommandOffsetSyncTick, 659 CommandOffsetSyncTime, 659 CommandOffsetTick, 659 CommBTCheckStatus, 659 CommBTConnection, 659 CommBTOnOff, 659 CommBTRead, 660 CommBTWrite, 660 CommExecuteFunction, 660 CommHSCheckStatus, 660 CommHSControl, 660 CommHSRead, 660 CommHSWrite, 660 CommLSCheckStatus, 660 CommLSRead, 660 CommLSWrite, 660 CommLSWriteEx, 661
INDEX
844
CommModuleID, 661 CommModuleName, 661 CommOffsetBrickDataBdAddr, 661 CommOffsetBrickDataBluecoreVersion, 661 CommOffsetBrickDataBtHwStatus, 661 CommOffsetBrickDataBtStateStatus, 661 CommOffsetBrickDataName, 661 CommOffsetBrickDataTimeOutValue, 661 CommOffsetBtConnectTableBdAddr, 661 CommOffsetBtConnectTableClassOfDevice, 662 CommOffsetBtConnectTableHandleNr, 662 CommOffsetBtConnectTableLinkQuality, 662 CommOffsetBtConnectTableName, 662 CommOffsetBtConnectTablePinCode, 662 CommOffsetBtConnectTableStreamStatus, 662 CommOffsetBtDeviceCnt, 662 CommOffsetBtDeviceNameCnt, 662 CommOffsetBtDeviceTableBdAddr, 662 CommOffsetBtDeviceTableClassOfDevice, 662 CommOffsetBtDeviceTableDeviceStatus, 663 CommOffsetBtDeviceTableName, 663 CommOffsetBtInBufBuf, 663 CommOffsetBtInBufInPtr, 663 CommOffsetBtInBufOutPtr, 663 CommOffsetBtOutBufBuf, 663 CommOffsetBtOutBufInPtr, 663 CommOffsetBtOutBufOutPtr, 663 CommOffsetHsFlags, 663 CommOffsetHsInBufBuf, 663 CommOffsetHsInBufInPtr, 664 CommOffsetHsInBufOutPtr, 664
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
CommOffsetHsMode, 664 CommOffsetHsOutBufBuf, 664 CommOffsetHsOutBufInPtr, 664 CommOffsetHsOutBufOutPtr, 664 CommOffsetHsSpeed, 664 CommOffsetHsState, 664 CommOffsetPFunc, 664 CommOffsetPFuncTwo, 664 CommOffsetUsbInBufBuf, 665 CommOffsetUsbInBufInPtr, 665 CommOffsetUsbInBufOutPtr, 665 CommOffsetUsbOutBufBuf, 665 CommOffsetUsbOutBufInPtr, 665 CommOffsetUsbOutBufOutPtr, 665 CommOffsetUsbPollBufBuf, 665 CommOffsetUsbPollBufInPtr, 665 CommOffsetUsbPollBufOutPtr, 665 CommOffsetUsbState, 665 ComputeCalibValue, 666 DatalogGetTimes, 666 DatalogWrite, 666 DEGREES_PER_RADIAN, 666 DISPLAY_BUSY, 666 DISPLAY_CHAR, 666 DISPLAY_CONTRAST_DEFAULT, 666 DISPLAY_CONTRAST_MAX, 666 DISPLAY_ERASE_ALL, 666 DISPLAY_ERASE_LINE, 666 DISPLAY_FILL_REGION, 667 DISPLAY_FRAME, 667 DISPLAY_HEIGHT, 667 DISPLAY_HORIZONTAL_LINE, 667 DISPLAY_MENUICONS_X_DIFF, 667 DISPLAY_MENUICONS_X_OFFS, 667 DISPLAY_MENUICONS_Y, 667 DISPLAY_ON, 667 DISPLAY_PIXEL, 667 DISPLAY_POPUP, 667 DISPLAY_REFRESH, 668 DISPLAY_REFRESH_DISABLED, 668 DISPLAY_VERTICAL_LINE, 668
INDEX
845
DISPLAY_WIDTH, 668 DisplayExecuteFunction, 668 DisplayModuleID, 668 DisplayModuleName, 668 DisplayOffsetContrast, 668 DisplayOffsetDisplay, 668 DisplayOffsetEraseMask, 668 DisplayOffsetFlags, 669 DisplayOffsetNormal, 669 DisplayOffsetPBitmaps, 669 DisplayOffsetPFont, 669 DisplayOffsetPFunc, 669 DisplayOffsetPMenuIcons, 669 DisplayOffsetPMenuText, 669 DisplayOffsetPopup, 669 DisplayOffsetPScreens, 669 DisplayOffsetPStatusIcons, 669 DisplayOffsetPStatusText, 670 DisplayOffsetPStepIcons, 670 DisplayOffsetPTextLines, 670 DisplayOffsetStatusIcons, 670 DisplayOffsetStepIcons, 670 DisplayOffsetTextLinesCenterFlags, 670 DisplayOffsetUpdateMask, 670 DIST_CMD_CUSTOM, 670 DIST_CMD_GP2D12, 670 DIST_CMD_GP2D120, 670 DIST_CMD_GP2YA02, 671 DIST_CMD_GP2YA21, 671 DIST_REG_DIST, 671 DIST_REG_DIST1, 671 DIST_REG_DIST_MAX, 671 DIST_REG_DIST_MIN, 671 DIST_REG_MODULE_TYPE, 671 DIST_REG_NUM_POINTS, 671 DIST_REG_VOLT, 671 DIST_REG_VOLT1, 671 DRAW_OPT_CLEAR, 672 DRAW_OPT_CLEAR_EXCEPT_STATUS_SCREEN, 672 DRAW_OPT_CLEAR_PIXELS, 672 DRAW_OPT_CLEAR_SCREEN_MODES, 672
DRAW_OPT_CLEAR_WHOLE_SCREEN, 672 DRAW_OPT_FILL_SHAPE, 672 DRAW_OPT_FONT_DIR_B2TL, 672 DRAW_OPT_FONT_DIR_B2TR, 672 DRAW_OPT_FONT_DIR_L2RB, 672 DRAW_OPT_FONT_DIR_L2RT, 672 DRAW_OPT_FONT_DIR_R2LB, 673 DRAW_OPT_FONT_DIR_R2LT, 673 DRAW_OPT_FONT_DIR_T2BL, 673 DRAW_OPT_FONT_DIR_T2BR, 673 DRAW_OPT_FONT_DIRECTIONS, 673 DRAW_OPT_FONT_WRAP, 673 DRAW_OPT_INVERT, 673 DRAW_OPT_LOGICAL_AND, 673 DRAW_OPT_LOGICAL_COPY, 673 DRAW_OPT_LOGICAL_OPERATIONS, 673 DRAW_OPT_LOGICAL_OR, 674 DRAW_OPT_LOGICAL_XOR, 674 DRAW_OPT_NORMAL, 674 DRAW_OPT_POLYGON_POLYLINE, 674 DrawCircle, 674 DrawEllipse, 674 DrawFont, 674 DrawGraphic, 674 DrawGraphicArray, 674 DrawLine, 674 DrawPoint, 675 DrawPolygon, 675 DrawRect, 675 DrawText, 675 EOF, 675
INDEX
846
ERR_ARG, 675 ERR_BAD_POOL_SIZE, 675 ERR_BAD_PTR, 675 ERR_CLUMP_COUNT, 675 ERR_COMM_BUFFER_FULL, 675 ERR_COMM_BUS_ERR, 676 ERR_COMM_CHAN_INVALID, 676 ERR_COMM_CHAN_NOT_READY, 676 ERR_DEFAULT_OFFSETS, 676 ERR_FILE, 676 ERR_INSANE_OFFSET, 676 ERR_INSTR, 676 ERR_INVALID_FIELD, 676 ERR_INVALID_PORT, 676 ERR_INVALID_QUEUE, 676 ERR_INVALID_SIZE, 677 ERR_LOADER_ERR, 677 ERR_MEM, 677 ERR_MEMMGR_FAIL, 677 ERR_NO_ACTIVE_CLUMP, 677 ERR_NO_CODE, 677 ERR_NO_PROG, 677 ERR_NON_FATAL, 677 ERR_RC_BAD_PACKET, 677 ERR_RC_FAILED, 677 ERR_RC_ILLEGAL_VAL, 678 ERR_RC_UNKNOWN_CMD, 678 ERR_SPOTCHECK_FAIL, 678 ERR_VER, 678 FALSE, 678 FileClose, 678 FileDelete, 678 FileFindFirst, 678 FileFindNext, 678 FileOpenAppend, 678 FileOpenRead, 679 FileOpenReadLinear, 679 FileOpenWrite, 679 FileOpenWriteLinear, 679 FileOpenWriteNonLinear, 679 FileRead, 679 FileRename, 679 FileResize, 679
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
FileResolveHandle, 679 FileSeek, 679 FileWrite, 680 FRAME_SELECT, 680 FREQUENCY_MAX, 680 FREQUENCY_MIN, 680 GetStartTick, 680 GL_CAMERA_DEPTH, 680 GL_CIRCLE, 680 GL_CIRCLE_SIZE, 680 GL_CULL_BACK, 680 GL_CULL_FRONT, 680 GL_CULL_MODE, 681 GL_CULL_NONE, 681 GL_LINE, 681 GL_POINT, 681 GL_POLYGON, 681 GL_ROTATE_X, 681 GL_ROTATE_Y, 681 GL_ROTATE_Z, 681 GL_SCALE_X, 681 GL_SCALE_Y, 681 GL_SCALE_Z, 682 GL_TRANSLATE_X, 682 GL_TRANSLATE_Y, 682 GL_TRANSLATE_Z, 682 GL_ZOOM_FACTOR, 682 HS_BAUD_115200, 682 HS_BAUD_1200, 682 HS_BAUD_14400, 682 HS_BAUD_19200, 682 HS_BAUD_230400, 682 HS_BAUD_2400, 683 HS_BAUD_28800, 683 HS_BAUD_3600, 683 HS_BAUD_38400, 683 HS_BAUD_460800, 683 HS_BAUD_4800, 683 HS_BAUD_57600, 683 HS_BAUD_7200, 683 HS_BAUD_76800, 683 HS_BAUD_921600, 683 HS_BAUD_9600, 684 HS_CMD_READY, 684 HS_CTRL_EXIT, 684 HS_CTRL_INIT, 684
INDEX
847
HS_CTRL_UART, 684 HS_DISABLE, 684 HS_ENABLE, 684 HS_INIT_RECEIVER, 684 HS_INITIALISE, 684 HS_MODE_10_STOP, 684 HS_MODE_15_STOP, 685 HS_MODE_20_STOP, 685 HS_MODE_5_DATA, 685 HS_MODE_6_DATA, 685 HS_MODE_7_DATA, 685 HS_MODE_7E1, 685 HS_MODE_8_DATA, 685 HS_MODE_8N1, 685 HS_MODE_E_PARITY, 685 HS_MODE_M_PARITY, 686 HS_MODE_N_PARITY, 686 HS_MODE_O_PARITY, 686 HS_MODE_S_PARITY, 686 HS_SEND_DATA, 686 HS_UPDATE, 686 HT_CH1_A, 686 HT_CH1_B, 686 HT_CH2_A, 686 HT_CH2_B, 686 HT_CH3_A, 687 HT_CH3_B, 687 HT_CH4_A, 687 HT_CH4_B, 687 HT_CMD_COLOR2_50HZ, 687 HT_CMD_COLOR2_60HZ, 687 HT_CMD_COLOR2_ACTIVE, 687 HT_CMD_COLOR2_BLCAL, 687 HT_CMD_COLOR2_FAR, 687 HT_CMD_COLOR2_LED_HI, 687 HT_CMD_COLOR2_LED_LOW, 688 HT_CMD_COLOR2_NEAR, 688 HT_CMD_COLOR2_PASSIVE, 688 HT_CMD_COLOR2_RAW, 688 HT_CMD_COLOR2_WBCAL, 688 HTIR2_MODE_1200, 688 HTIR2_MODE_600, 688 HTIR2_REG_AC01, 688 HTIR2_REG_AC02, 688
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
HTIR2_REG_AC03, 688 HTIR2_REG_AC04, 689 HTIR2_REG_AC05, 689 HTIR2_REG_ACDIR, 689 HTIR2_REG_DC01, 689 HTIR2_REG_DC02, 689 HTIR2_REG_DC03, 689 HTIR2_REG_DC04, 689 HTIR2_REG_DC05, 689 HTIR2_REG_DCAVG, 689 HTIR2_REG_DCDIR, 689 HTIR2_REG_MODE, 690 I2C_REG_CMD, 690 I2C_REG_DEVICE_ID, 690 I2C_REG_VENDOR_ID, 690 I2C_REG_VERSION, 690 IN_1, 690 IN_2, 690 IN_3, 690 IN_4, 690 IN_MODE_ANGLESTEP, 690 IN_MODE_BOOLEAN, 691 IN_MODE_CELSIUS, 691 IN_MODE_FAHRENHEIT, 691 IN_MODE_MODEMASK, 691 IN_MODE_PCTFULLSCALE, 691 IN_MODE_PERIODCOUNTER, 691 IN_MODE_RAW, 691 IN_MODE_SLOPEMASK, 691 IN_MODE_TRANSITIONCNT, 691 IN_TYPE_ANGLE, 691 IN_TYPE_COLORBLUE, 692 IN_TYPE_COLOREXIT, 692 IN_TYPE_COLORFULL, 692 IN_TYPE_COLORGREEN, 692 IN_TYPE_COLORNONE, 692 IN_TYPE_COLORRED, 692 IN_TYPE_CUSTOM, 692 IN_TYPE_HISPEED, 692 IN_TYPE_LIGHT_ACTIVE, 692 IN_TYPE_LIGHT_INACTIVE, 692 IN_TYPE_LOWSPEED, 693 IN_TYPE_LOWSPEED_9V, 693 IN_TYPE_NO_SENSOR, 693
INDEX
848
IN_TYPE_REFLECTION, 693 IN_TYPE_SOUND_DB, 693 IN_TYPE_SOUND_DBA, 693 IN_TYPE_SWITCH, 693 IN_TYPE_TEMPERATURE, 693 INPUT_BLACKCOLOR, 693 INPUT_BLANK, 693 INPUT_BLUE, 694 INPUT_BLUECOLOR, 694 INPUT_CAL_POINT_0, 694 INPUT_CAL_POINT_1, 694 INPUT_CAL_POINT_2, 694 INPUT_CUSTOM9V, 694 INPUT_CUSTOMACTIVE, 694 INPUT_CUSTOMINACTIVE, 694 INPUT_DIGI0, 694 INPUT_DIGI1, 694 INPUT_GREEN, 695 INPUT_GREENCOLOR, 695 INPUT_INVALID_DATA, 695 INPUT_NO_OF_COLORS, 695 INPUT_NO_OF_POINTS, 695 INPUT_RED, 695 INPUT_REDCOLOR, 695 INPUT_RESETCAL, 695 INPUT_RUNNINGCAL, 695 INPUT_SENSORCAL, 695 INPUT_SENSOROFF, 696 INPUT_STARTCAL, 696 INPUT_WHITECOLOR, 696 INPUT_YELLOWCOLOR, 696 InputMode, 696 InputModuleID, 696 InputModuleName, 696 InputOffsetADRaw, 696 InputOffsetColorADRaw, 696 InputOffsetColorCalibration, 696 InputOffsetColorCalibrationState, 697 InputOffsetColorCalLimits, 697 InputOffsetColorSensorBoolean, 697 InputOffsetColorSensorRaw, 697 InputOffsetColorSensorValue, 697 InputOffsetCustomActiveStatus, 697 InputOffsetCustomPctFullScale, 697
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
InputOffsetCustomZeroOffset, 697 InputOffsetDigiPinsDir, 697 InputOffsetDigiPinsIn, 698 InputOffsetDigiPinsOut, 698 InputOffsetInvalidData, 698 InputOffsetSensorBoolean, 698 InputOffsetSensorMode, 698 InputOffsetSensorRaw, 698 InputOffsetSensorType, 698 InputOffsetSensorValue, 698 INT_MAX, 698 INT_MIN, 698 INTF_BTOFF, 699 INTF_BTON, 699 INTF_CONNECT, 699 INTF_CONNECTBYNAME, 699 INTF_CONNECTREQ, 699 INTF_DISCONNECT, 699 INTF_DISCONNECTALL, 699 INTF_EXTREAD, 699 INTF_FACTORYRESET, 699 INTF_OPENSTREAM, 699 INTF_PINREQ, 700 INTF_REMOVEDEVICE, 700 INTF_SEARCH, 700 INTF_SENDDATA, 700 INTF_SENDFILE, 700 INTF_SETBTNAME, 700 INTF_SETCMDMODE, 700 INTF_STOPSEARCH, 700 INTF_VISIBILITY, 700 InvalidData, 700 IOCTRL_BOOT, 701 IOCTRL_POWERDOWN, 701 IOCtrlModuleID, 701 IOCtrlModuleName, 701 IOCtrlOffsetPowerOn, 701 IOMapRead, 701 IOMapReadByID, 701 IOMapWrite, 701 IOMapWriteByID, 701 KeepAlive, 702 LCD_LINE1, 702 LCD_LINE2, 702 LCD_LINE3, 702 LCD_LINE4, 702
INDEX
849
LCD_LINE5, 702 LCD_LINE6, 702 LCD_LINE7, 702 LCD_LINE8, 702 LDR_APPENDNOTPOSSIBLE, 702 LDR_BTBUSY, 703 LDR_BTCONNECTFAIL, 703 LDR_BTTIMEOUT, 703 LDR_CMD_BOOTCMD, 703 LDR_CMD_BTFACTORYRESET, 703 LDR_CMD_BTGETADR, 703 LDR_CMD_CLOSE, 703 LDR_CMD_CLOSEMODHANDLE, 703 LDR_CMD_CROPDATAFILE, 703 LDR_CMD_DELETE, 703 LDR_CMD_DELETEUSERFLASH, 704 LDR_CMD_DEVICEINFO, 704 LDR_CMD_FINDFIRST, 704 LDR_CMD_FINDFIRSTMODULE, 704 LDR_CMD_FINDNEXT, 704 LDR_CMD_FINDNEXTMODULE, 704 LDR_CMD_IOMAPREAD, 704 LDR_CMD_IOMAPWRITE, 704 LDR_CMD_OPENAPPENDDATA, 704 LDR_CMD_OPENREAD, 704 LDR_CMD_OPENREADLINEAR, 705 LDR_CMD_OPENWRITE, 705 LDR_CMD_OPENWRITEDATA, 705 LDR_CMD_OPENWRITELINEAR, 705 LDR_CMD_POLLCMD, 705 LDR_CMD_POLLCMDLEN, 705 LDR_CMD_READ, 705 LDR_CMD_RENAMEFILE, 705 LDR_CMD_RESIZEDATAFILE, 705
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
LDR_CMD_SEEKFROMCURRENT, 705 LDR_CMD_SEEKFROMEND, 706 LDR_CMD_SEEKFROMSTART, 706 LDR_CMD_SETBRICKNAME, 706 LDR_CMD_VERSIONS, 706 LDR_CMD_WRITE, 706 LDR_ENDOFFILE, 706 LDR_EOFEXPECTED, 706 LDR_FILEEXISTS, 706 LDR_FILEISBUSY, 706 LDR_FILEISFULL, 706 LDR_FILENOTFOUND, 707 LDR_FILETX_CLOSEERROR, 707 LDR_FILETX_DSTEXISTS, 707 LDR_FILETX_SRCMISSING, 707 LDR_FILETX_STREAMERROR, 707 LDR_FILETX_TIMEOUT, 707 LDR_HANDLEALREADYCLOSED, 707 LDR_ILLEGALFILENAME, 707 LDR_ILLEGALHANDLE, 707 LDR_INPROGRESS, 707 LDR_INVALIDSEEK, 708 LDR_MODULENOTFOUND, 708 LDR_NOLINEARSPACE, 708 LDR_NOMOREFILES, 708 LDR_NOMOREHANDLES, 708 LDR_NOSPACE, 708 LDR_NOTLINEARFILE, 708 LDR_NOWRITEBUFFERS, 708 LDR_OUTOFBOUNDARY, 708 LDR_REQPIN, 708 LDR_SUCCESS, 709 LDR_UNDEFINEDERROR, 709 ListFiles, 709 LoaderExecuteFunction, 709 LoaderModuleID, 709 LoaderModuleName, 709 LoaderOffsetFreeUserFlash, 709
INDEX
850
LoaderOffsetPFunc, 709 LONG_MAX, 709 LONG_MIN, 709 LOWSPEED_CH_NOT_READY, 710 LOWSPEED_COMMUNICATING, 710 LOWSPEED_DATA_RECEIVED, 710 LOWSPEED_DONE, 710 LOWSPEED_ERROR, 710 LOWSPEED_IDLE, 710 LOWSPEED_INIT, 710 LOWSPEED_LOAD_BUFFER, 710 LOWSPEED_NO_ERROR, 710 LOWSPEED_RECEIVING, 710 LOWSPEED_RX_ERROR, 711 LOWSPEED_TRANSMITTING, 711 LOWSPEED_TX_ERROR, 711 LowSpeedModuleID, 711 LowSpeedModuleName, 711 LowSpeedOffsetChannelState, 711 LowSpeedOffsetErrorType, 711 LowSpeedOffsetInBufBuf, 711 LowSpeedOffsetInBufBytesToRx, 711 LowSpeedOffsetInBufInPtr, 711 LowSpeedOffsetInBufOutPtr, 712 LowSpeedOffsetMode, 712 LowSpeedOffsetNoRestartOnRead, 712 LowSpeedOffsetOutBufBuf, 712 LowSpeedOffsetOutBufBytesToRx, 712 LowSpeedOffsetOutBufInPtr, 712 LowSpeedOffsetOutBufOutPtr, 712 LowSpeedOffsetSpeed, 712 LowSpeedOffsetState, 712 LR_COULD_NOT_SAVE, 712 LR_ENTRY_REMOVED, 713 LR_STORE_IS_FULL, 713 LR_SUCCESS, 713 LR_UNKNOWN_ADDR, 713 LSREAD_NO_RESTART_1, 713 LSREAD_NO_RESTART_2, 713
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
LSREAD_NO_RESTART_3, 713 LSREAD_NO_RESTART_4, 713 LSREAD_NO_RESTART_MASK, 713 LSREAD_RESTART_ALL, 713 LSREAD_RESTART_NONE, 714 MAILBOX1, 714 MAILBOX10, 714 MAILBOX2, 714 MAILBOX3, 714 MAILBOX4, 714 MAILBOX5, 714 MAILBOX6, 714 MAILBOX7, 714 MAILBOX8, 714 MAILBOX9, 715 MAX_BT_MSG_SIZE, 715 MENUICON_CENTER, 715 MENUICON_LEFT, 715 MENUICON_RIGHT, 715 MENUICONS, 715 MENUTEXT, 715 MessageRead, 715 MessageWrite, 715 MIN_1, 715 MS_1, 716 MS_10, 716 MS_100, 716 MS_150, 716 MS_2, 716 MS_20, 716 MS_200, 716 MS_250, 716 MS_3, 716 MS_30, 716 MS_300, 717 MS_350, 717 MS_4, 717 MS_40, 717 MS_400, 717 MS_450, 717 MS_5, 717 MS_50, 717 MS_500, 717 MS_6, 717 MS_60, 718
INDEX
851
MS_600, 718 MS_7, 718 MS_70, 718 MS_700, 718 MS_8, 718 MS_80, 718 MS_800, 718 MS_9, 718 MS_90, 718 MS_900, 719 MS_CMD_ADPA_OFF, 719 MS_CMD_ADPA_ON, 719 MS_CMD_DEENERGIZED, 719 MS_CMD_ENERGIZED, 719 NA, 719 NO_ERR, 719 NO_OF_BTNS, 719 NormalizedValue, 719 NRLINK_CMD_2400, 719 NRLINK_CMD_4800, 720 NRLINK_CMD_FLUSH, 720 NRLINK_CMD_IR_LONG, 720 NRLINK_CMD_IR_SHORT, 720 NRLINK_CMD_RUN_MACRO, 720 NRLINK_CMD_SET_PF, 720 NRLINK_CMD_SET_RCX, 720 NRLINK_CMD_SET_TRAIN, 720 NRLINK_CMD_TX_RAW, 720 NRLINK_REG_BYTES, 720 NRLINK_REG_DATA, 721 NRLINK_REG_EEPROM, 721 NULL, 721 OPARR_MAX, 721 OPARR_MEAN, 721 OPARR_MIN, 721 OPARR_SORT, 721 OPARR_STD, 721 OPARR_SUM, 721 OPARR_SUMSQR, 721 OUT_A, 722 OUT_AB, 722 OUT_ABC, 722 OUT_AC, 722 OUT_B, 722 OUT_BC, 722
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
OUT_C, 722 OUT_MODE_BRAKE, 722 OUT_MODE_COAST, 722 OUT_MODE_MOTORON, 722 OUT_MODE_REGMETHOD, 723 OUT_MODE_REGULATED, 723 OUT_OPTION_HOLDATLIMIT, 723 OUT_OPTION_RAMPDOWNTOLIMIT, 723 OUT_REGMODE_IDLE, 723 OUT_REGMODE_SPEED, 723 OUT_REGMODE_SYNC, 723 OUT_RUNSTATE_HOLD, 723 OUT_RUNSTATE_IDLE, 723 OUT_RUNSTATE_RAMPDOWN, 723 OUT_RUNSTATE_RAMPUP, 724 OUT_RUNSTATE_RUNNING, 724 OutputMode, 724 OutputModuleID, 724 OutputModuleName, 724 OutputOffsetActualSpeed, 724 OutputOffsetBlockTachoCount, 724 OutputOffsetFlags, 724 OutputOffsetMode, 725 OutputOffsetMotorRPM, 725 OutputOffsetOptions, 725 OutputOffsetOverloaded, 725 OutputOffsetPwnFreq, 725 OutputOffsetRegDParameter, 725 OutputOffsetRegIParameter, 725 OutputOffsetRegMode, 725 OutputOffsetRegPParameter, 725 OutputOffsetRotationCount, 726 OutputOffsetRunState, 726 OutputOffsetSpeed, 726 OutputOffsetSyncTurnParameter, 726 OutputOffsetTachoCount, 726 OutputOffsetTachoLimit, 726 OutputOptions, 726 Overload, 726 PF_CHANNEL_1, 727 PF_CHANNEL_2, 727
INDEX
852
PF_CHANNEL_3, 727 PF_CHANNEL_4, 727 PF_CMD_BRAKE, 727 PF_CMD_FWD, 727 PF_CMD_REV, 727 PF_CMD_STOP, 727 PF_CST_CLEAR1_CLEAR2, 728 PF_CST_CLEAR1_SET2, 728 PF_CST_DECREMENT_PWM, 728 PF_CST_FULL_FWD, 728 PF_CST_FULL_REV, 728 PF_CST_INCREMENT_PWM, 728 PF_CST_SET1_CLEAR2, 728 PF_CST_SET1_SET2, 728 PF_CST_TOGGLE_DIR, 728 PF_FUNC_CLEAR, 728 PF_FUNC_NOCHANGE, 729 PF_FUNC_SET, 729 PF_FUNC_TOGGLE, 729 PF_MODE_COMBO_DIRECT, 729 PF_MODE_COMBO_PWM, 729 PF_MODE_SINGLE_OUTPUT_CST, 729 PF_MODE_SINGLE_OUTPUT_PWM, 729 PF_MODE_SINGLE_PIN_CONT, 729 PF_MODE_SINGLE_PIN_TIME, 729 PF_MODE_TRAIN, 729 PF_OUT_A, 730 PF_OUT_B, 730 PF_PIN_C1, 730 PF_PIN_C2, 730 PF_PWM_BRAKE, 730 PF_PWM_FLOAT, 730 PF_PWM_FWD1, 730 PF_PWM_FWD2, 730 PF_PWM_FWD3, 730 PF_PWM_FWD4, 730 PF_PWM_FWD5, 731 PF_PWM_FWD6, 731 PF_PWM_FWD7, 731 PF_PWM_REV1, 731
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
PF_PWM_REV2, 731 PF_PWM_REV3, 731 PF_PWM_REV4, 731 PF_PWM_REV5, 731 PF_PWM_REV6, 731 PF_PWM_REV7, 731 PI, 732 PID_0, 732 PID_1, 732 PID_2, 732 PID_3, 732 PID_4, 732 PID_5, 732 PID_6, 732 PID_7, 732 Power, 732 PROG_ABORT, 733 PROG_ERROR, 733 PROG_IDLE, 733 PROG_OK, 733 PROG_RESET, 733 PROG_RUNNING, 733 PSP_BTNSET1_DOWN, 733 PSP_BTNSET1_L3, 733 PSP_BTNSET1_LEFT, 733 PSP_BTNSET1_R3, 734 PSP_BTNSET1_RIGHT, 734 PSP_BTNSET1_UP, 734 PSP_BTNSET2_CIRCLE, 734 PSP_BTNSET2_CROSS, 734 PSP_BTNSET2_L1, 734 PSP_BTNSET2_L2, 734 PSP_BTNSET2_R1, 734 PSP_BTNSET2_R2, 734 PSP_BTNSET2_SQUARE, 734 PSP_BTNSET2_TRIANGLE, 735 PSP_CMD_ANALOG, 735 PSP_CMD_DIGITAL, 735 PSP_REG_BTNSET1, 735 PSP_REG_BTNSET2, 735 PSP_REG_XLEFT, 735 PSP_REG_XRIGHT, 735 PSP_REG_YLEFT, 735 PSP_REG_YRIGHT, 735 RADIANS_PER_DEGREE, 735 RAND_MAX, 736
INDEX
853
RandomNumber, 736 RawValue, 736 RCX_AbsVarOp, 736 RCX_AndVarOp, 736 RCX_AutoOffOp, 736 RCX_BatteryLevelOp, 736 RCX_BatteryLevelSrc, 736 RCX_BootModeOp, 736 RCX_CalibrateEventOp, 736 RCX_ClearAllEventsOp, 737 RCX_ClearCounterOp, 737 RCX_ClearMsgOp, 737 RCX_ClearSensorOp, 737 RCX_ClearSoundOp, 737 RCX_ClearTimerOp, 737 RCX_ClickCounterSrc, 737 RCX_ConstantSrc, 737 RCX_CounterSrc, 737 RCX_DatalogOp, 737 RCX_DatalogRawDirectSrc, 738 RCX_DatalogRawIndirectSrc, 738 RCX_DatalogSrcDirectSrc, 738 RCX_DatalogSrcIndirectSrc, 738 RCX_DatalogValueDirectSrc, 738 RCX_DatalogValueIndirectSrc, 738 RCX_DecCounterOp, 738 RCX_DeleteSubOp, 738 RCX_DeleteSubsOp, 738 RCX_DeleteTaskOp, 738 RCX_DeleteTasksOp, 739 RCX_DirectEventOp, 739 RCX_DisplayOp, 739 RCX_DivVarOp, 739 RCX_DurationSrc, 739 RCX_EventStateSrc, 739 RCX_FirmwareVersionSrc, 739 RCX_GlobalMotorStatusSrc, 739 RCX_GOutputDirOp, 739 RCX_GOutputModeOp, 739 RCX_GOutputPowerOp, 740 RCX_HysteresisSrc, 740 RCX_IncCounterOp, 740 RCX_IndirectVarSrc, 740 RCX_InputBooleanSrc, 740 RCX_InputModeOp, 740 RCX_InputModeSrc, 740
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
RCX_InputRawSrc, 740 RCX_InputTypeOp, 740 RCX_InputTypeSrc, 740 RCX_InputValueSrc, 741 RCX_IRModeOp, 741 RCX_LightOp, 741 RCX_LowerThresholdSrc, 741 RCX_LSBlinkTimeOp, 741 RCX_LSCalibrateOp, 741 RCX_LSHysteresisOp, 741 RCX_LSLowerThreshOp, 741 RCX_LSUpperThreshOp, 741 RCX_MessageOp, 741 RCX_MessageSrc, 742 RCX_MulVarOp, 742 RCX_MuteSoundOp, 742 RCX_OnOffFloatOp, 742 RCX_OrVarOp, 742 RCX_OUT_A, 742 RCX_OUT_AB, 742 RCX_OUT_ABC, 742 RCX_OUT_AC, 742 RCX_OUT_B, 742 RCX_OUT_BC, 743 RCX_OUT_C, 743 RCX_OUT_FLOAT, 743 RCX_OUT_FULL, 743 RCX_OUT_FWD, 743 RCX_OUT_HALF, 743 RCX_OUT_LOW, 743 RCX_OUT_OFF, 743 RCX_OUT_ON, 743 RCX_OUT_REV, 743 RCX_OUT_TOGGLE, 744 RCX_OutputDirOp, 744 RCX_OutputPowerOp, 744 RCX_OutputStatusSrc, 744 RCX_PBTurnOffOp, 744 RCX_PingOp, 744 RCX_PlaySoundOp, 744 RCX_PlayToneOp, 744 RCX_PlayToneVarOp, 744 RCX_PollMemoryOp, 744 RCX_PollOp, 745 RCX_ProgramSlotSrc, 745 RCX_RandomSrc, 745
INDEX
854
RCX_RemoteKeysReleased, 745 RCX_RemoteOp, 745 RCX_RemoteOutABackward, 745 RCX_RemoteOutAForward, 745 RCX_RemoteOutBBackward, 745 RCX_RemoteOutBForward, 745 RCX_RemoteOutCBackward, 745 RCX_RemoteOutCForward, 746 RCX_RemotePBMessage1, 746 RCX_RemotePBMessage2, 746 RCX_RemotePBMessage3, 746 RCX_RemotePlayASound, 746 RCX_RemoteSelProgram1, 746 RCX_RemoteSelProgram2, 746 RCX_RemoteSelProgram3, 746 RCX_RemoteSelProgram4, 746 RCX_RemoteSelProgram5, 746 RCX_RemoteStopOutOff, 747 RCX_ScoutCounterLimitSrc, 747 RCX_ScoutEventFBSrc, 747 RCX_ScoutLightParamsSrc, 747 RCX_ScoutOp, 747 RCX_ScoutRulesOp, 747 RCX_ScoutRulesSrc, 747 RCX_ScoutTimerLimitSrc, 747 RCX_SelectProgramOp, 747 RCX_SendUARTDataOp, 747 RCX_SetCounterOp, 748 RCX_SetDatalogOp, 748 RCX_SetEventOp, 748 RCX_SetFeedbackOp, 748 RCX_SetPriorityOp, 748 RCX_SetSourceValueOp, 748 RCX_SetTimerLimitOp, 748 RCX_SetVarOp, 748 RCX_SetWatchOp, 748 RCX_SgnVarOp, 748 RCX_SoundOp, 749 RCX_StartTaskOp, 749 RCX_StopAllTasksOp, 749 RCX_StopTaskOp, 749 RCX_SubVarOp, 749 RCX_SumVarOp, 749 RCX_TaskEventsSrc, 749 RCX_TenMSTimerSrc, 749 RCX_TimerSrc, 749
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
RCX_UARTSetupSrc, 749 RCX_UnlockFirmOp, 750 RCX_UnlockOp, 750 RCX_UnmuteSoundOp, 750 RCX_UploadDatalogOp, 750 RCX_UpperThresholdSrc, 750 RCX_VariableSrc, 750 RCX_ViewSourceValOp, 750 RCX_VLLOp, 750 RCX_WatchSrc, 750 ReadButton, 750 ReadSemData, 751 RegDValue, 751 RegIValue, 751 RegMode, 751 RegPValue, 752 RESET_ALL, 752 RESET_BLOCK_COUNT, 752 RESET_BLOCKANDTACHO, 752 RESET_COUNT, 752 RESET_NONE, 752 RESET_ROTATION_COUNT, 752 RICArg, 752 RICImgPoint, 753 RICImgRect, 753 RICMapArg, 753 RICMapElement, 753 RICMapFunction, 754 RICOpCircle, 754 RICOpCopyBits, 754 RICOpDescription, 755 RICOpEllipse, 755 RICOpLine, 755 RICOpNumBox, 756 RICOpPixel, 756 RICOpPolygon, 756 RICOpRect, 757 RICOpSprite, 757 RICOpVarMap, 757 RICPolygonPoints, 758 RICSpriteData, 758 ROTATE_QUEUE, 758 RotationCount, 758 RunState, 759 SAMPLERATE_DEFAULT, 759 SAMPLERATE_MAX, 759
INDEX
855
SAMPLERATE_MIN, 759 ScaledValue, 759 SCHAR_MAX, 759 SCHAR_MIN, 759 SCOUT_FXR_ALARM, 760 SCOUT_FXR_BUG, 760 SCOUT_FXR_NONE, 760 SCOUT_FXR_RANDOM, 760 SCOUT_FXR_SCIENCE, 760 SCOUT_LIGHT_OFF, 760 SCOUT_LIGHT_ON, 760 SCOUT_LR_AVOID, 760 SCOUT_LR_IGNORE, 760 SCOUT_LR_OFF_WHEN, 760 SCOUT_LR_SEEK_DARK, 761 SCOUT_LR_SEEK_LIGHT, 761 SCOUT_LR_WAIT_FOR, 761 SCOUT_MODE_POWER, 761 SCOUT_MODE_STANDALONE, 761 SCOUT_MR_CIRCLE_LEFT, 761 SCOUT_MR_CIRCLE_RIGHT, 761 SCOUT_MR_FORWARD, 761 SCOUT_MR_LOOP_A, 761 SCOUT_MR_LOOP_AB, 761 SCOUT_MR_LOOP_B, 762 SCOUT_MR_NO_MOTION, 762 SCOUT_MR_ZIGZAG, 762 SCOUT_SNDSET_ALARM, 762 SCOUT_SNDSET_BASIC, 762 SCOUT_SNDSET_BUG, 762 SCOUT_SNDSET_NONE, 762 SCOUT_SNDSET_RANDOM, 762 SCOUT_SNDSET_SCIENCE, 762 SCOUT_SOUND_1_BLINK, 762 SCOUT_SOUND_2_BLINK, 763 SCOUT_SOUND_COUNTER1, 763 SCOUT_SOUND_COUNTER2, 763 SCOUT_SOUND_ENTER_BRIGHT, 763 SCOUT_SOUND_ENTER_DARK, 763
SCOUT_SOUND_ENTER_NORMAL, 763 SCOUT_SOUND_ENTERSA, 763 SCOUT_SOUND_KEYERROR, 763 SCOUT_SOUND_MAIL_RECEIVED, 763 SCOUT_SOUND_NONE, 763 SCOUT_SOUND_REMOTE, 764 SCOUT_SOUND_SPECIAL1, 764 SCOUT_SOUND_SPECIAL2, 764 SCOUT_SOUND_SPECIAL3, 764 SCOUT_SOUND_TIMER1, 764 SCOUT_SOUND_TIMER2, 764 SCOUT_SOUND_TIMER3, 764 SCOUT_SOUND_TOUCH1_PRES, 764 SCOUT_SOUND_TOUCH1_REL, 764 SCOUT_SOUND_TOUCH2_PRES, 764 SCOUT_SOUND_TOUCH2_REL, 765 SCOUT_TGS_LONG, 765 SCOUT_TGS_MEDIUM, 765 SCOUT_TGS_SHORT, 765 SCOUT_TR_AVOID, 765 SCOUT_TR_IGNORE, 765 SCOUT_TR_OFF_WHEN, 765 SCOUT_TR_REVERSE, 765 SCOUT_TR_WAIT_FOR, 765 SCREEN_BACKGROUND, 765 SCREEN_LARGE, 766 SCREEN_MODE_CLEAR, 766 SCREEN_MODE_RESTORE, 766 SCREEN_SMALL, 766 SCREENS, 766 SEC_1, 766 SEC_10, 766 SEC_15, 766 SEC_2, 767 SEC_20, 767 SEC_3, 767 SEC_30, 767 SEC_4, 767 SEC_5, 767
INDEX
856
SEC_6, 767 SEC_7, 767 SEC_8, 767 SEC_9, 767 SetScreenMode, 768 SetSleepTimeoutVal, 768 SHRT_MAX, 768 SHRT_MIN, 768 SIZE_OF_BDADDR, 768 SIZE_OF_BRICK_NAME, 768 SIZE_OF_BT_CONNECT_TABLE, 768 SIZE_OF_BT_DEVICE_TABLE, 768 SIZE_OF_BT_NAME, 768 SIZE_OF_BT_PINCODE, 768 SIZE_OF_BTBUF, 769 SIZE_OF_CLASS_OF_DEVICE, 769 SIZE_OF_HSBUF, 769 SIZE_OF_USBBUF, 769 SIZE_OF_USBDATA, 769 SOUND_CLICK, 769 SOUND_DOUBLE_BEEP, 769 SOUND_DOWN, 769 SOUND_FAST_UP, 769 SOUND_FLAGS_IDLE, 769 SOUND_FLAGS_RUNNING, 770 SOUND_FLAGS_UPDATE, 770 SOUND_LOW_BEEP, 770 SOUND_MODE_LOOP, 770 SOUND_MODE_ONCE, 770 SOUND_MODE_TONE, 770 SOUND_STATE_FILE, 770 SOUND_STATE_IDLE, 770 SOUND_STATE_STOP, 770 SOUND_STATE_TONE, 770 SOUND_UP, 771 SoundGetState, 771 SoundModuleID, 771 SoundModuleName, 771 SoundOffsetDuration, 771 SoundOffsetFlags, 771 SoundOffsetFreq, 771 SoundOffsetMode, 771 SoundOffsetSampleRate, 771
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
SoundOffsetSoundFilename, 771 SoundOffsetState, 772 SoundOffsetVolume, 772 SoundPlayFile, 772 SoundPlayTone, 772 SoundSetState, 772 SPECIALS, 772 STAT_COMM_PENDING, 772 STAT_MSG_EMPTY_MAILBOX, 772 STATUSICON_BATTERY, 772 STATUSICON_BLUETOOTH, 772 STATUSICON_USB, 773 STATUSICON_VM, 773 STATUSICONS, 773 STATUSTEXT, 773 STEPICON_1, 773 STEPICON_2, 773 STEPICON_3, 773 STEPICON_4, 773 STEPICON_5, 773 STEPICONS, 773 STEPLINE, 774 STOP_REQ, 774 TachoCount, 774 TachoLimit, 774 TEMP_FQ_1, 774 TEMP_FQ_2, 774 TEMP_FQ_4, 774 TEMP_FQ_6, 775 TEMP_I2C_ADDRESS, 775 TEMP_OS_ONESHOT, 775 TEMP_POL_HIGH, 775 TEMP_POL_LOW, 775 TEMP_REG_CONFIG, 775 TEMP_REG_TEMP, 775 TEMP_REG_THIGH, 775 TEMP_REG_TLOW, 775 TEMP_RES_10BIT, 775 TEMP_RES_11BIT, 776 TEMP_RES_12BIT, 776 TEMP_RES_9BIT, 776 TEMP_SD_CONTINUOUS, 776 TEMP_SD_SHUTDOWN, 776 TEMP_TM_COMPARATOR, 776 TEMP_TM_INTERRUPT, 776
INDEX
857
TEXTLINE_1, 776 TEXTLINE_2, 776 TEXTLINE_3, 776 TEXTLINE_4, 777 TEXTLINE_5, 777 TEXTLINE_6, 777 TEXTLINE_7, 777 TEXTLINE_8, 777 TEXTLINES, 777 TIMES_UP, 777 TONE_A3, 777 TONE_A4, 777 TONE_A5, 777 TONE_A6, 778 TONE_A7, 778 TONE_AS3, 778 TONE_AS4, 778 TONE_AS5, 778 TONE_AS6, 778 TONE_AS7, 778 TONE_B3, 778 TONE_B4, 778 TONE_B5, 778 TONE_B6, 779 TONE_B7, 779 TONE_C4, 779 TONE_C5, 779 TONE_C6, 779 TONE_C7, 779 TONE_CS4, 779 TONE_CS5, 779 TONE_CS6, 779 TONE_CS7, 779 TONE_D4, 780 TONE_D5, 780 TONE_D6, 780 TONE_D7, 780 TONE_DS4, 780 TONE_DS5, 780 TONE_DS6, 780 TONE_DS7, 780 TONE_E4, 780 TONE_E5, 780 TONE_E6, 781 TONE_E7, 781 TONE_F4, 781
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
TONE_F5, 781 TONE_F6, 781 TONE_F7, 781 TONE_FS4, 781 TONE_FS5, 781 TONE_FS6, 781 TONE_FS7, 781 TONE_G4, 782 TONE_G5, 782 TONE_G6, 782 TONE_G7, 782 TONE_GS4, 782 TONE_GS5, 782 TONE_GS6, 782 TONE_GS7, 782 TOPLINE, 782 TRAIN_CHANNEL_1, 782 TRAIN_CHANNEL_2, 783 TRAIN_CHANNEL_3, 783 TRAIN_CHANNEL_ALL, 783 TRAIN_FUNC_DECR_SPEED, 783 TRAIN_FUNC_INCR_SPEED, 783 TRAIN_FUNC_STOP, 783 TRAIN_FUNC_TOGGLE_LIGHT, 783 TRUE, 783 TurnRatio, 783 Type, 784 UCHAR_MAX, 784 UF_PENDING_UPDATES, 784 UF_UPDATE_MODE, 784 UF_UPDATE_PID_VALUES, 784 UF_UPDATE_RESET_BLOCK_COUNT, 784 UF_UPDATE_RESET_COUNT, 784 UF_UPDATE_RESET_ROTATION_COUNT, 785 UF_UPDATE_SPEED, 785 UF_UPDATE_TACHO_LIMIT, 785 UI_BT_CONNECT_REQUEST, 785 UI_BT_ERROR_ATTENTION, 785 UI_BT_PIN_REQUEST, 785 UI_BT_STATE_CONNECTED, 785
INDEX
858
UI_BT_STATE_OFF, 785 UI_BT_STATE_VISIBLE, 785 UI_BUTTON_ENTER, 785 UI_BUTTON_EXIT, 786 UI_BUTTON_LEFT, 786 UI_BUTTON_NONE, 786 UI_BUTTON_RIGHT, 786 UI_FLAGS_BUSY, 786 UI_FLAGS_DISABLE_EXIT, 786 UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER, 786 UI_FLAGS_ENABLE_STATUS_UPDATE, 786 UI_FLAGS_EXECUTE_LMS_FILE, 786 UI_FLAGS_REDRAW_STATUS, 786 UI_FLAGS_RESET_SLEEP_TIMER, 787 UI_FLAGS_UPDATE, 787 UI_STATE_BT_ERROR, 787 UI_STATE_CONNECT_REQUEST, 787 UI_STATE_DRAW_MENU, 787 UI_STATE_ENTER_PRESSED, 787 UI_STATE_EXECUTE_FILE, 787 UI_STATE_EXECUTING_FILE, 787 UI_STATE_EXIT_PRESSED, 787 UI_STATE_INIT_DISPLAY, 787 UI_STATE_INIT_INTRO, 788 UI_STATE_INIT_LOW_BATTERY, 788 UI_STATE_INIT_MENU, 788 UI_STATE_INIT_WAIT, 788 UI_STATE_LEFT_PRESSED, 788 UI_STATE_LOW_BATTERY, 788 UI_STATE_NEXT_MENU, 788 UI_STATE_RIGHT_PRESSED, 788 UI_STATE_TEST_BUTTONS, 788 UI_VM_IDLE, 788 UI_VM_RESET1, 789 UI_VM_RESET2, 789 UI_VM_RUN_FREE, 789 UI_VM_RUN_PAUSE, 789
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
UI_VM_RUN_SINGLE, 789 UIModuleID, 789 UIModuleName, 789 UINT_MAX, 789 UIOffsetAbortFlag, 789 UIOffsetBatteryState, 790 UIOffsetBatteryVoltage, 790 UIOffsetBluetoothState, 790 UIOffsetButton, 790 UIOffsetError, 790 UIOffsetFlags, 790 UIOffsetForceOff, 790 UIOffsetLMSlename, 790 UIOffsetOBPPointer, 790 UIOffsetPMenu, 790 UIOffsetRechargeable, 791 UIOffsetRunState, 791 UIOffsetSleepTimeout, 791 UIOffsetSleepTimer, 791 UIOffsetState, 791 UIOffsetUsbState, 791 UIOffsetVolume, 791 ULONG_MAX, 791 UpdateCalibCacheInfo, 791 UpdateFlags, 791 US_CMD_CONTINUOUS, 792 US_CMD_EVENTCAPTURE, 792 US_CMD_OFF, 792 US_CMD_SINGLESHOT, 792 US_CMD_WARMRESET, 792 US_REG_ACTUAL_ZERO, 792 US_REG_CM_INTERVAL, 792 US_REG_FACTORY_ACTUAL_ZERO, 792 US_REG_FACTORY_SCALE_DIVISOR, 792 US_REG_FACTORY_SCALE_FACTOR, 793 US_REG_MEASUREMENT_UNITS, 793 US_REG_SCALE_DIVISOR, 793 US_REG_SCALE_FACTOR, 793 USB_CMD_READY, 793 USB_PROTOCOL_OVERHEAD, 793 USHRT_MAX, 793
INDEX
859
WriteSemData, 793 NBCInputPortConstants IN_1, 462 IN_2, 462 IN_3, 462 IN_4, 462 NBCSensorModeConstants IN_MODE_ANGLESTEP, 466 IN_MODE_BOOLEAN, 466 IN_MODE_CELSIUS, 466 IN_MODE_FAHRENHEIT, 466 IN_MODE_MODEMASK, 466 IN_MODE_PCTFULLSCALE, 466 IN_MODE_PERIODCOUNTER, 466 IN_MODE_RAW, 467 IN_MODE_SLOPEMASK, 467 IN_MODE_TRANSITIONCNT, 467 NBCSensorTypeConstants IN_TYPE_ANGLE, 463 IN_TYPE_COLORBLUE, 463 IN_TYPE_COLOREXIT, 463 IN_TYPE_COLORFULL, 464 IN_TYPE_COLORGREEN, 464 IN_TYPE_COLORNONE, 464 IN_TYPE_COLORRED, 464 IN_TYPE_CUSTOM, 464 IN_TYPE_HISPEED, 464 IN_TYPE_LIGHT_ACTIVE, 464 IN_TYPE_LIGHT_INACTIVE, 464 IN_TYPE_LOWSPEED, 464 IN_TYPE_LOWSPEED_9V, 464 IN_TYPE_NO_SENSOR, 465 IN_TYPE_REFLECTION, 465 IN_TYPE_SOUND_DB, 465 IN_TYPE_SOUND_DBA, 465 IN_TYPE_SWITCH, 465 IN_TYPE_TEMPERATURE, 465 NEQ cmpconst, 73 NO_ERR CommandModuleConstants, 81 NBCCommon.h, 719 NO_OF_BTNS ButtonNameConstants, 448
NBCCommon.h, 719 NormalizedValue InputFieldConstants, 468 NBCCommon.h, 719 NRLink2400 MindSensorsAPI, 183 NRLink2400Ex MindSensorsAPI, 183 NRLink4800 MindSensorsAPI, 183 NRLink4800Ex MindSensorsAPI, 184 NRLINK_CMD_2400 MSNRLink, 609 NBCCommon.h, 719 NRLINK_CMD_4800 MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_FLUSH MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_IR_LONG MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_IR_SHORT MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_RUN_MACRO MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_SET_PF MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_SET_RCX MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_SET_TRAIN MSNRLink, 609 NBCCommon.h, 720 NRLINK_CMD_TX_RAW MSNRLink, 609 NBCCommon.h, 720 NRLINK_REG_BYTES MSNRLink, 610 NBCCommon.h, 720 NRLINK_REG_DATA
INDEX
860
MSNRLink, 610 NBCCommon.h, 721 NRLINK_REG_EEPROM MSNRLink, 610 NBCCommon.h, 721 NRLinkFlush MindSensorsAPI, 184 NRLinkFlushEx MindSensorsAPI, 184 NRLinkIRLong MindSensorsAPI, 185 NRLinkIRLongEx MindSensorsAPI, 185 NRLinkIRShort MindSensorsAPI, 185 NRLinkIRShortEx MindSensorsAPI, 186 NRLinkSetPF MindSensorsAPI, 186 NRLinkSetPFEx MindSensorsAPI, 186 NRLinkSetRCX MindSensorsAPI, 187 NRLinkSetRCXEx MindSensorsAPI, 187 NRLinkSetTrain MindSensorsAPI, 187 NRLinkSetTrainEx MindSensorsAPI, 188 NRLinkTxRaw MindSensorsAPI, 188 NRLinkTxRawEx MindSensorsAPI, 188 NULL LoaderModuleConstants, 425 NBCCommon.h, 721 NumOut DisplayModuleFunctions, 291 NumOutEx DisplayModuleFunctions, 291 NXT rmware module IDs, 213 NXT rmware module names, 211 NXT Firmware Modules, 73 NXTLimits CHAR_BIT, 611 CHAR_MAX, 611
CHAR_MIN, 611 INT_MAX, 611 INT_MIN, 611 LONG_MAX, 611 LONG_MIN, 611 RAND_MAX, 611 SCHAR_MAX, 611 SCHAR_MIN, 612 SHRT_MAX, 612 SHRT_MIN, 612 UCHAR_MAX, 612 UINT_MAX, 612 ULONG_MAX, 612 USHRT_MAX, 612 Off OutputModuleFunctions, 229 OffEx OutputModuleFunctions, 230 OnFwd OutputModuleFunctions, 230 OnFwdEx OutputModuleFunctions, 230 OnFwdExPID OutputModuleFunctions, 231 OnFwdReg OutputModuleFunctions, 231 OnFwdRegEx OutputModuleFunctions, 232 OnFwdRegExPID OutputModuleFunctions, 232 OnFwdRegPID OutputModuleFunctions, 233 OnFwdSync OutputModuleFunctions, 233 OnFwdSyncEx OutputModuleFunctions, 234 OnFwdSyncExPID OutputModuleFunctions, 234 OnFwdSyncPID OutputModuleFunctions, 235 OnRev OutputModuleFunctions, 236 OnRevEx OutputModuleFunctions, 236 OnRevExPID
INDEX
861
OutputModuleFunctions, 236 OnRevReg OutputModuleFunctions, 237 OnRevRegEx OutputModuleFunctions, 237 OnRevRegExPID OutputModuleFunctions, 238 OnRevRegPID OutputModuleFunctions, 238 OnRevSync OutputModuleFunctions, 239 OnRevSyncEx OutputModuleFunctions, 239 OnRevSyncExPID OutputModuleFunctions, 240 OnRevSyncPID OutputModuleFunctions, 240 OPARR_MAX ArrayOpConstants, 395 NBCCommon.h, 721 OPARR_MEAN ArrayOpConstants, 395 NBCCommon.h, 721 OPARR_MIN ArrayOpConstants, 395 NBCCommon.h, 721 OPARR_SORT ArrayOpConstants, 395 NBCCommon.h, 721 OPARR_STD ArrayOpConstants, 396 NBCCommon.h, 721 OPARR_SUM ArrayOpConstants, 396 NBCCommon.h, 721 OPARR_SUMSQR ArrayOpConstants, 396 NBCCommon.h, 721 OpenFileAppend LoaderModuleFunctions, 387 OpenFileRead LoaderModuleFunctions, 387 OpenFileReadLinear LoaderModuleFunctions, 388 OUT_A NBCCommon.h, 722
OutputPortConstants, 476 OUT_AB NBCCommon.h, 722 OutputPortConstants, 476 OUT_ABC NBCCommon.h, 722 OutputPortConstants, 476 OUT_AC NBCCommon.h, 722 OutputPortConstants, 476 OUT_B NBCCommon.h, 722 OutputPortConstants, 476 OUT_BC NBCCommon.h, 722 OutputPortConstants, 476 OUT_C NBCCommon.h, 722 OutputPortConstants, 476 OUT_MODE_BRAKE NBCCommon.h, 722 OutModeConstants, 481 OUT_MODE_COAST NBCCommon.h, 722 OutModeConstants, 481 OUT_MODE_MOTORON NBCCommon.h, 722 OutModeConstants, 481 OUT_MODE_REGMETHOD NBCCommon.h, 723 OutModeConstants, 481 OUT_MODE_REGULATED NBCCommon.h, 723 OutModeConstants, 481 OUT_OPTION_HOLDATLIMIT NBCCommon.h, 723 OutOptionConstants, 482 OUT_OPTION_RAMPDOWNTOLIMIT NBCCommon.h, 723 OutOptionConstants, 482 OUT_REGMODE_IDLE NBCCommon.h, 723 OutRegModeConstants, 484 OUT_REGMODE_SPEED NBCCommon.h, 723 OutRegModeConstants, 484
INDEX
862
OUT_REGMODE_SYNC NBCCommon.h, 723 OutRegModeConstants, 484 OUT_RUNSTATE_HOLD NBCCommon.h, 723 OutRunStateConstants, 483 OUT_RUNSTATE_IDLE NBCCommon.h, 723 OutRunStateConstants, 483 OUT_RUNSTATE_RAMPDOWN NBCCommon.h, 723 OutRunStateConstants, 483 OUT_RUNSTATE_RAMPUP NBCCommon.h, 724 OutRunStateConstants, 483 OUT_RUNSTATE_RUNNING NBCCommon.h, 724 OutRunStateConstants, 483 OutModeConstants OUT_MODE_BRAKE, 481 OUT_MODE_COAST, 481 OUT_MODE_MOTORON, 481 OUT_MODE_REGMETHOD, 481 OUT_MODE_REGULATED, 481 OutOptionConstants OUT_OPTION_HOLDATLIMIT, 482 OUT_OPTION_RAMPDOWNTOLIMIT, 482 Output eld constants, 484 Output module, 78 Output module constants, 78 Output module functions, 225 Output module IOMAP offsets, 490 Output port constants, 475 Output port mode constants, 480 Output port option constants, 482 Output port regulation mode constants, 483 Output port run state constants, 482 Output port update ag constants, 478 OutputFieldConstants ActualSpeed, 486 BlockTachoCount, 486 OutputMode, 486
OutputOptions, 486 Overload, 487 Power, 487 RegDValue, 487 RegIValue, 487 RegMode, 488 RegPValue, 488 RotationCount, 488 RunState, 489 TachoCount, 489 TachoLimit, 489 TurnRatio, 489 UpdateFlags, 490 OutputIOMAP OutputOffsetActualSpeed, 491 OutputOffsetBlockTachoCount, 491 OutputOffsetFlags, 491 OutputOffsetMode, 491 OutputOffsetMotorRPM, 491 OutputOffsetOptions, 491 OutputOffsetOverloaded, 491 OutputOffsetPwnFreq, 491 OutputOffsetRegDParameter, 492 OutputOffsetRegIParameter, 492 OutputOffsetRegMode, 492 OutputOffsetRegPParameter, 492 OutputOffsetRotationCount, 492 OutputOffsetRunState, 492 OutputOffsetSpeed, 492 OutputOffsetSyncTurnParameter, 492 OutputOffsetTachoCount, 492 OutputOffsetTachoLimit, 493 OutputMode NBCCommon.h, 724 OutputFieldConstants, 486 OutputModuleFunctions Coast, 228 CoastEx, 229 Float, 229 GetOutPwnFreq, 229 Off, 229 OffEx, 230 OnFwd, 230 OnFwdEx, 230 OnFwdExPID, 231
INDEX
863
OnFwdReg, 231 OnFwdRegEx, 232 OnFwdRegExPID, 232 OnFwdRegPID, 233 OnFwdSync, 233 OnFwdSyncEx, 234 OnFwdSyncExPID, 234 OnFwdSyncPID, 235 OnRev, 236 OnRevEx, 236 OnRevExPID, 236 OnRevReg, 237 OnRevRegEx, 237 OnRevRegExPID, 238 OnRevRegPID, 238 OnRevSync, 239 OnRevSyncEx, 239 OnRevSyncExPID, 240 OnRevSyncPID, 240 ResetAllTachoCounts, 241 ResetBlockTachoCount, 241 ResetRotationCount, 241 ResetTachoCount, 242 RotateMotor, 242 RotateMotorEx, 242 RotateMotorExPID, 243 RotateMotorPID, 244 SetOutPwnFreq, 244 OutputModuleID ModuleIDConstants, 214 NBCCommon.h, 724 OutputModuleName ModuleNameConstants, 212 NBCCommon.h, 724 OutputOffsetActualSpeed NBCCommon.h, 724 OutputIOMAP, 491 OutputOffsetBlockTachoCount NBCCommon.h, 724 OutputIOMAP, 491 OutputOffsetFlags NBCCommon.h, 724 OutputIOMAP, 491 OutputOffsetMode NBCCommon.h, 725 OutputIOMAP, 491
OutputOffsetMotorRPM NBCCommon.h, 725 OutputIOMAP, 491 OutputOffsetOptions NBCCommon.h, 725 OutputIOMAP, 491 OutputOffsetOverloaded NBCCommon.h, 725 OutputIOMAP, 491 OutputOffsetPwnFreq NBCCommon.h, 725 OutputIOMAP, 491 OutputOffsetRegDParameter NBCCommon.h, 725 OutputIOMAP, 492 OutputOffsetRegIParameter NBCCommon.h, 725 OutputIOMAP, 492 OutputOffsetRegMode NBCCommon.h, 725 OutputIOMAP, 492 OutputOffsetRegPParameter NBCCommon.h, 725 OutputIOMAP, 492 OutputOffsetRotationCount NBCCommon.h, 726 OutputIOMAP, 492 OutputOffsetRunState NBCCommon.h, 726 OutputIOMAP, 492 OutputOffsetSpeed NBCCommon.h, 726 OutputIOMAP, 492 OutputOffsetSyncTurnParameter NBCCommon.h, 726 OutputIOMAP, 492 OutputOffsetTachoCount NBCCommon.h, 726 OutputIOMAP, 492 OutputOffsetTachoLimit NBCCommon.h, 726 OutputIOMAP, 493 OutputOptions NBCCommon.h, 726 OutputFieldConstants, 486 OutputPortConstants
INDEX
864
OUT_A, 476 OUT_AB, 476 OUT_ABC, 476 OUT_AC, 476 OUT_B, 476 OUT_BC, 476 OUT_C, 476 OutRegModeConstants OUT_REGMODE_IDLE, 484 OUT_REGMODE_SPEED, 484 OUT_REGMODE_SYNC, 484 OutRunStateConstants OUT_RUNSTATE_HOLD, 483 OUT_RUNSTATE_IDLE, 483 OUT_RUNSTATE_RAMPDOWN, 483 OUT_RUNSTATE_RAMPUP, 483 OUT_RUNSTATE_RUNNING, 483 OutUFConstants UF_PENDING_UPDATES, 478 UF_UPDATE_MODE, 478 UF_UPDATE_PID_VALUES, 478 UF_UPDATE_RESET_BLOCK_COUNT, 479 UF_UPDATE_RESET_COUNT, 479 UF_UPDATE_RESET_ROTATION_COUNT, 479 UF_UPDATE_SPEED, 479 UF_UPDATE_TACHO_LIMIT, 479 Overload NBCCommon.h, 726 OutputFieldConstants, 487 PF/IR Train function constants, 588 PF_CHANNEL_1 NBCCommon.h, 727 PFChannelConstants, 586 PF_CHANNEL_2 NBCCommon.h, 727 PFChannelConstants, 586 PF_CHANNEL_3 NBCCommon.h, 727 PFChannelConstants, 586 PF_CHANNEL_4 NBCCommon.h, 727
PFChannelConstants, 586 PF_CMD_BRAKE NBCCommon.h, 727 PFCmdConstants, 585 PF_CMD_FWD NBCCommon.h, 727 PFCmdConstants, 585 PF_CMD_REV NBCCommon.h, 727 PFCmdConstants, 585 PF_CMD_STOP NBCCommon.h, 727 PFCmdConstants, 585 PF_CST_CLEAR1_CLEAR2 NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_CLEAR1_SET2 NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_DECREMENT_PWM NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_FULL_FWD NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_FULL_REV NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_INCREMENT_PWM NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_SET1_CLEAR2 NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_SET1_SET2 NBCCommon.h, 728 PFCSTOptions, 592 PF_CST_TOGGLE_DIR NBCCommon.h, 728 PFCSTOptions, 593 PF_FUNC_CLEAR NBCCommon.h, 728 PFPinFuncs, 591 PF_FUNC_NOCHANGE NBCCommon.h, 729 PFPinFuncs, 591
INDEX
865
PF_FUNC_SET NBCCommon.h, 729 PFPinFuncs, 591 PF_FUNC_TOGGLE NBCCommon.h, 729 PFPinFuncs, 591 PF_MODE_COMBO_DIRECT NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_COMBO_PWM NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_SINGLE_OUTPUT_CST NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_SINGLE_OUTPUT_PWM NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_SINGLE_PIN_CONT NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_SINGLE_PIN_TIME NBCCommon.h, 729 PFModeConstants, 587 PF_MODE_TRAIN NBCCommon.h, 729 PFModeConstants, 587 PF_OUT_A NBCCommon.h, 730 PFOutputs, 590 PF_OUT_B NBCCommon.h, 730 PFOutputs, 590 PF_PIN_C1 NBCCommon.h, 730 PFPinConstants, 590 PF_PIN_C2 NBCCommon.h, 730 PFPinConstants, 590 PF_PWM_BRAKE NBCCommon.h, 730 PFPWMOptions, 593 PF_PWM_FLOAT NBCCommon.h, 730 PFPWMOptions, 593 PF_PWM_FWD1
NBCCommon.h, 730 PFPWMOptions, 594 PF_PWM_FWD2 NBCCommon.h, 730 PFPWMOptions, 594 PF_PWM_FWD3 NBCCommon.h, 730 PFPWMOptions, 594 PF_PWM_FWD4 NBCCommon.h, 730 PFPWMOptions, 594 PF_PWM_FWD5 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_FWD6 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_FWD7 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_REV1 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_REV2 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_REV3 NBCCommon.h, 731 PFPWMOptions, 594 PF_PWM_REV4 NBCCommon.h, 731 PFPWMOptions, 595 PF_PWM_REV5 NBCCommon.h, 731 PFPWMOptions, 595 PF_PWM_REV6 NBCCommon.h, 731 PFPWMOptions, 595 PF_PWM_REV7 NBCCommon.h, 731 PFPWMOptions, 595 PFChannelConstants PF_CHANNEL_1, 586 PF_CHANNEL_2, 586 PF_CHANNEL_3, 586 PF_CHANNEL_4, 586
INDEX
866
PFCmdConstants PF_CMD_BRAKE, 585 PF_CMD_FWD, 585 PF_CMD_REV, 585 PF_CMD_STOP, 585 PFCSTOptions PF_CST_CLEAR1_CLEAR2, 592 PF_CST_CLEAR1_SET2, 592 PF_CST_DECREMENT_PWM, 592 PF_CST_FULL_FWD, 592 PF_CST_FULL_REV, 592 PF_CST_INCREMENT_PWM, 592 PF_CST_SET1_CLEAR2, 592 PF_CST_SET1_SET2, 592 PF_CST_TOGGLE_DIR, 593 PFModeConstants PF_MODE_COMBO_DIRECT, 587 PF_MODE_COMBO_PWM, 587 PF_MODE_SINGLE_OUTPUT_CST, 587 PF_MODE_SINGLE_OUTPUT_PWM, 587 PF_MODE_SINGLE_PIN_CONT, 587 PF_MODE_SINGLE_PIN_TIME, 587 PF_MODE_TRAIN, 587 PFOutputs PF_OUT_A, 590 PF_OUT_B, 590 PFPinConstants PF_PIN_C1, 590 PF_PIN_C2, 590 PFPinFuncs PF_FUNC_CLEAR, 591 PF_FUNC_NOCHANGE, 591 PF_FUNC_SET, 591 PF_FUNC_TOGGLE, 591 PFPWMOptions PF_PWM_BRAKE, 593 PF_PWM_FLOAT, 593 PF_PWM_FWD1, 594 PF_PWM_FWD2, 594 PF_PWM_FWD3, 594
PF_PWM_FWD4, 594 PF_PWM_FWD5, 594 PF_PWM_FWD6, 594 PF_PWM_FWD7, 594 PF_PWM_REV1, 594 PF_PWM_REV2, 594 PF_PWM_REV3, 594 PF_PWM_REV4, 595 PF_PWM_REV5, 595 PF_PWM_REV6, 595 PF_PWM_REV7, 595 PI MiscConstants, 215 NBCCommon.h, 732 PID constants, 476 PID_0 NBCCommon.h, 732 PIDConstants, 477 PID_1 NBCCommon.h, 732 PIDConstants, 477 PID_2 NBCCommon.h, 732 PIDConstants, 477 PID_3 NBCCommon.h, 732 PIDConstants, 477 PID_4 NBCCommon.h, 732 PIDConstants, 477 PID_5 NBCCommon.h, 732 PIDConstants, 477 PID_6 NBCCommon.h, 732 PIDConstants, 477 PID_7 NBCCommon.h, 732 PIDConstants, 478 PIDConstants PID_0, 477 PID_1, 477 PID_2, 477 PID_3, 477 PID_4, 477 PID_5, 477
INDEX
867
PID_6, 477 PID_7, 478 PlayFile SoundModuleFunctions, 301 PlayFileEx SoundModuleFunctions, 301 PlayTone SoundModuleFunctions, 301 PlayToneEx SoundModuleFunctions, 302 PointOut DisplayModuleFunctions, 291 PointOutEx DisplayModuleFunctions, 292 PolyOut DisplayModuleFunctions, 292 PolyOutEx DisplayModuleFunctions, 293 Power NBCCommon.h, 732 OutputFieldConstants, 487 Power Function channel constants, 585 Power Function command constants, 585 Power Function CST options constants, 591 Power Function mode constants, 586 Power Function output constants, 589 Power Function pin constants, 590 Power Function PWM option constants, 593 Power Function single pin function constants, 590 PowerDown IOCtrlModuleFunctions, 381 PowerOn constants, 423 PROG_ABORT CommandProgStatus, 420 NBCCommon.h, 733 PROG_ERROR CommandProgStatus, 420 NBCCommon.h, 733 PROG_IDLE CommandProgStatus, 420 NBCCommon.h, 733 PROG_OK CommandProgStatus, 421
NBCCommon.h, 733 PROG_RESET CommandProgStatus, 421 NBCCommon.h, 733 PROG_RUNNING CommandProgStatus, 421 NBCCommon.h, 733 Program status constants, 420 PSP_BTNSET1_DOWN MSPSPNXBtnSet1, 606 NBCCommon.h, 733 PSP_BTNSET1_L3 MSPSPNXBtnSet1, 606 NBCCommon.h, 733 PSP_BTNSET1_LEFT MSPSPNXBtnSet1, 606 NBCCommon.h, 733 PSP_BTNSET1_R3 MSPSPNXBtnSet1, 606 NBCCommon.h, 734 PSP_BTNSET1_RIGHT MSPSPNXBtnSet1, 606 NBCCommon.h, 734 PSP_BTNSET1_UP MSPSPNXBtnSet1, 606 NBCCommon.h, 734 PSP_BTNSET2_CIRCLE MSPSPNXBtnSet2, 607 NBCCommon.h, 734 PSP_BTNSET2_CROSS MSPSPNXBtnSet2, 607 NBCCommon.h, 734 PSP_BTNSET2_L1 MSPSPNXBtnSet2, 607 NBCCommon.h, 734 PSP_BTNSET2_L2 MSPSPNXBtnSet2, 607 NBCCommon.h, 734 PSP_BTNSET2_R1 MSPSPNXBtnSet2, 607 NBCCommon.h, 734 PSP_BTNSET2_R2 MSPSPNXBtnSet2, 608 NBCCommon.h, 734 PSP_BTNSET2_SQUARE MSPSPNXBtnSet2, 608
INDEX
868
NBCCommon.h, 734 PSP_BTNSET2_TRIANGLE MSPSPNXBtnSet2, 608 NBCCommon.h, 735 PSP_CMD_ANALOG MSPSPNX, 605 NBCCommon.h, 735 PSP_CMD_DIGITAL MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_BTNSET1 MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_BTNSET2 MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_XLEFT MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_XRIGHT MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_YLEFT MSPSPNX, 605 NBCCommon.h, 735 PSP_REG_YRIGHT MSPSPNX, 605 NBCCommon.h, 735 PSPNxAnalog MindSensorsAPI, 189 PSPNxAnalogEx MindSensorsAPI, 189 PSPNxDigital MindSensorsAPI, 189 PSPNxDigitalEx MindSensorsAPI, 190 RADIANS_PER_DEGREE MiscConstants, 215 NBCCommon.h, 735 RAND_MAX NBCCommon.h, 736 NXTLimits, 611 Random cstdlibAPI, 394 RandomNumber
NBCCommon.h, 736 SysCallConstants, 403 RawValue InputFieldConstants, 468 NBCCommon.h, 736 RCX and Scout opcode constants, 574 RCX and Scout sound constants, 556 RCX and Scout source constants, 569 RCX constants, 550 RCX IR remote constants, 554 RCX output constants, 551 RCX output direction constants, 552 RCX output mode constants, 552 RCX output power constants, 553 RCX_AbsVarOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_AndVarOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_AutoOffOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_BatteryLevelOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_BatteryLevelSrc NBCCommon.h, 736 RCXSourceConstants, 570 RCX_BootModeOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_CalibrateEventOp NBCCommon.h, 736 RCXOpcodeConstants, 576 RCX_ClearAllEventsOp NBCCommon.h, 737 RCXOpcodeConstants, 576 RCX_ClearCounterOp NBCCommon.h, 737 RCXOpcodeConstants, 577 RCX_ClearMsgOp NBCCommon.h, 737 RCXOpcodeConstants, 577 RCX_ClearSensorOp NBCCommon.h, 737
INDEX
869
RCXOpcodeConstants, 577 RCX_ClearSoundOp NBCCommon.h, 737 RCXOpcodeConstants, 577 RCX_ClearTimerOp NBCCommon.h, 737 RCXOpcodeConstants, 577 RCX_ClickCounterSrc NBCCommon.h, 737 RCXSourceConstants, 570 RCX_ConstantSrc NBCCommon.h, 737 RCXSourceConstants, 570 RCX_CounterSrc NBCCommon.h, 737 RCXSourceConstants, 570 RCX_DatalogOp NBCCommon.h, 737 RCXOpcodeConstants, 577 RCX_DatalogRawDirectSrc NBCCommon.h, 738 RCXSourceConstants, 570 RCX_DatalogRawIndirectSrc NBCCommon.h, 738 RCXSourceConstants, 570 RCX_DatalogSrcDirectSrc NBCCommon.h, 738 RCXSourceConstants, 571 RCX_DatalogSrcIndirectSrc NBCCommon.h, 738 RCXSourceConstants, 571 RCX_DatalogValueDirectSrc NBCCommon.h, 738 RCXSourceConstants, 571 RCX_DatalogValueIndirectSrc NBCCommon.h, 738 RCXSourceConstants, 571 RCX_DecCounterOp NBCCommon.h, 738 RCXOpcodeConstants, 577 RCX_DeleteSubOp NBCCommon.h, 738 RCXOpcodeConstants, 577 RCX_DeleteSubsOp NBCCommon.h, 738 RCXOpcodeConstants, 577
RCX_DeleteTaskOp NBCCommon.h, 738 RCXOpcodeConstants, 577 RCX_DeleteTasksOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_DirectEventOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_DisplayOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_DivVarOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_DurationSrc NBCCommon.h, 739 RCXSourceConstants, 571 RCX_EventStateSrc NBCCommon.h, 739 RCXSourceConstants, 571 RCX_FirmwareVersionSrc NBCCommon.h, 739 RCXSourceConstants, 571 RCX_GlobalMotorStatusSrc NBCCommon.h, 739 RCXSourceConstants, 571 RCX_GOutputDirOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_GOutputModeOp NBCCommon.h, 739 RCXOpcodeConstants, 578 RCX_GOutputPowerOp NBCCommon.h, 740 RCXOpcodeConstants, 578 RCX_HysteresisSrc NBCCommon.h, 740 RCXSourceConstants, 571 RCX_IncCounterOp NBCCommon.h, 740 RCXOpcodeConstants, 578 RCX_IndirectVarSrc NBCCommon.h, 740 RCXSourceConstants, 571 RCX_InputBooleanSrc
INDEX
870
NBCCommon.h, 740 RCXSourceConstants, 572 RCX_InputModeOp NBCCommon.h, 740 RCXOpcodeConstants, 578 RCX_InputModeSrc NBCCommon.h, 740 RCXSourceConstants, 572 RCX_InputRawSrc NBCCommon.h, 740 RCXSourceConstants, 572 RCX_InputTypeOp NBCCommon.h, 740 RCXOpcodeConstants, 578 RCX_InputTypeSrc NBCCommon.h, 740 RCXSourceConstants, 572 RCX_InputValueSrc NBCCommon.h, 741 RCXSourceConstants, 572 RCX_IRModeOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LightOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LowerThresholdSrc NBCCommon.h, 741 RCXSourceConstants, 572 RCX_LSBlinkTimeOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LSCalibrateOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LSHysteresisOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LSLowerThreshOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_LSUpperThreshOp NBCCommon.h, 741 RCXOpcodeConstants, 579 RCX_MessageOp NBCCommon.h, 741
RCXOpcodeConstants, 579 RCX_MessageSrc NBCCommon.h, 742 RCXSourceConstants, 572 RCX_MulVarOp NBCCommon.h, 742 RCXOpcodeConstants, 579 RCX_MuteSoundOp NBCCommon.h, 742 RCXOpcodeConstants, 579 RCX_OnOffFloatOp NBCCommon.h, 742 RCXOpcodeConstants, 580 RCX_OrVarOp NBCCommon.h, 742 RCXOpcodeConstants, 580 RCX_OUT_A NBCCommon.h, 742 RCXOutputConstants, 551 RCX_OUT_AB NBCCommon.h, 742 RCXOutputConstants, 551 RCX_OUT_ABC NBCCommon.h, 742 RCXOutputConstants, 551 RCX_OUT_AC NBCCommon.h, 742 RCXOutputConstants, 551 RCX_OUT_B NBCCommon.h, 742 RCXOutputConstants, 551 RCX_OUT_BC NBCCommon.h, 743 RCXOutputConstants, 551 RCX_OUT_C NBCCommon.h, 743 RCXOutputConstants, 552 RCX_OUT_FLOAT NBCCommon.h, 743 RCXOutputMode, 552 RCX_OUT_FULL NBCCommon.h, 743 RCXOutputPower, 554 RCX_OUT_FWD NBCCommon.h, 743 RCXOutputDirection, 553
INDEX
871
RCX_OUT_HALF NBCCommon.h, 743 RCXOutputPower, 554 RCX_OUT_LOW NBCCommon.h, 743 RCXOutputPower, 554 RCX_OUT_OFF NBCCommon.h, 743 RCXOutputMode, 552 RCX_OUT_ON NBCCommon.h, 743 RCXOutputMode, 552 RCX_OUT_REV NBCCommon.h, 743 RCXOutputDirection, 553 RCX_OUT_TOGGLE NBCCommon.h, 744 RCXOutputDirection, 553 RCX_OutputDirOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_OutputPowerOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_OutputStatusSrc NBCCommon.h, 744 RCXSourceConstants, 572 RCX_PBTurnOffOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PingOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PlaySoundOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PlayToneOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PlayToneVarOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PollMemoryOp NBCCommon.h, 744 RCXOpcodeConstants, 580 RCX_PollOp
NBCCommon.h, 745 RCXOpcodeConstants, 581 RCX_ProgramSlotSrc NBCCommon.h, 745 RCXSourceConstants, 572 RCX_RandomSrc NBCCommon.h, 745 RCXSourceConstants, 572 RCX_RemoteKeysReleased NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOp NBCCommon.h, 745 RCXOpcodeConstants, 581 RCX_RemoteOutABackward NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOutAForward NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOutBBackward NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOutBForward NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOutCBackward NBCCommon.h, 745 RCXRemoteConstants, 555 RCX_RemoteOutCForward NBCCommon.h, 746 RCXRemoteConstants, 555 RCX_RemotePBMessage1 NBCCommon.h, 746 RCXRemoteConstants, 555 RCX_RemotePBMessage2 NBCCommon.h, 746 RCXRemoteConstants, 555 RCX_RemotePBMessage3 NBCCommon.h, 746 RCXRemoteConstants, 555 RCX_RemotePlayASound NBCCommon.h, 746 RCXRemoteConstants, 556 RCX_RemoteSelProgram1 NBCCommon.h, 746
INDEX
872
RCXRemoteConstants, 556 RCX_RemoteSelProgram2 NBCCommon.h, 746 RCXRemoteConstants, 556 RCX_RemoteSelProgram3 NBCCommon.h, 746 RCXRemoteConstants, 556 RCX_RemoteSelProgram4 NBCCommon.h, 746 RCXRemoteConstants, 556 RCX_RemoteSelProgram5 NBCCommon.h, 746 RCXRemoteConstants, 556 RCX_RemoteStopOutOff NBCCommon.h, 747 RCXRemoteConstants, 556 RCX_ScoutCounterLimitSrc NBCCommon.h, 747 RCXSourceConstants, 573 RCX_ScoutEventFBSrc NBCCommon.h, 747 RCXSourceConstants, 573 RCX_ScoutLightParamsSrc NBCCommon.h, 747 RCXSourceConstants, 573 RCX_ScoutOp NBCCommon.h, 747 RCXOpcodeConstants, 581 RCX_ScoutRulesOp NBCCommon.h, 747 RCXOpcodeConstants, 581 RCX_ScoutRulesSrc NBCCommon.h, 747 RCXSourceConstants, 573 RCX_ScoutTimerLimitSrc NBCCommon.h, 747 RCXSourceConstants, 573 RCX_SelectProgramOp NBCCommon.h, 747 RCXOpcodeConstants, 581 RCX_SendUARTDataOp NBCCommon.h, 747 RCXOpcodeConstants, 581 RCX_SetCounterOp NBCCommon.h, 748 RCXOpcodeConstants, 581
RCX_SetDatalogOp NBCCommon.h, 748 RCXOpcodeConstants, 581 RCX_SetEventOp NBCCommon.h, 748 RCXOpcodeConstants, 581 RCX_SetFeedbackOp NBCCommon.h, 748 RCXOpcodeConstants, 581 RCX_SetPriorityOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SetSourceValueOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SetTimerLimitOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SetVarOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SetWatchOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SgnVarOp NBCCommon.h, 748 RCXOpcodeConstants, 582 RCX_SoundOp NBCCommon.h, 749 RCXOpcodeConstants, 582 RCX_StartTaskOp NBCCommon.h, 749 RCXOpcodeConstants, 582 RCX_StopAllTasksOp NBCCommon.h, 749 RCXOpcodeConstants, 582 RCX_StopTaskOp NBCCommon.h, 749 RCXOpcodeConstants, 582 RCX_SubVarOp NBCCommon.h, 749 RCXOpcodeConstants, 583 RCX_SumVarOp NBCCommon.h, 749 RCXOpcodeConstants, 583 RCX_TaskEventsSrc
INDEX
873
NBCCommon.h, 749 RCXSourceConstants, 573 RCX_TenMSTimerSrc NBCCommon.h, 749 RCXSourceConstants, 573 RCX_TimerSrc NBCCommon.h, 749 RCXSourceConstants, 573 RCX_UARTSetupSrc NBCCommon.h, 749 RCXSourceConstants, 573 RCX_UnlockFirmOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_UnlockOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_UnmuteSoundOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_UploadDatalogOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_UpperThresholdSrc NBCCommon.h, 750 RCXSourceConstants, 573 RCX_VariableSrc NBCCommon.h, 750 RCXSourceConstants, 574 RCX_ViewSourceValOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_VLLOp NBCCommon.h, 750 RCXOpcodeConstants, 583 RCX_WatchSrc NBCCommon.h, 750 RCXSourceConstants, 574 RCXOpcodeConstants RCX_AbsVarOp, 576 RCX_AndVarOp, 576 RCX_AutoOffOp, 576 RCX_BatteryLevelOp, 576 RCX_BootModeOp, 576 RCX_CalibrateEventOp, 576 RCX_ClearAllEventsOp, 576
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen
RCX_ClearCounterOp, 577 RCX_ClearMsgOp, 577 RCX_ClearSensorOp, 577 RCX_ClearSoundOp, 577 RCX_ClearTimerOp, 577 RCX_DatalogOp, 577 RCX_DecCounterOp, 577 RCX_DeleteSubOp, 577 RCX_DeleteSubsOp, 577 RCX_DeleteTaskOp, 577 RCX_DeleteTasksOp, 578 RCX_DirectEventOp, 578 RCX_DisplayOp, 578 RCX_DivVarOp, 578 RCX_GOutputDirOp, 578 RCX_GOutputModeOp, 578 RCX_GOutputPowerOp, 578 RCX_IncCounterOp, 578 RCX_InputModeOp, 578 RCX_InputTypeOp, 578 RCX_IRModeOp, 579 RCX_LightOp, 579 RCX_LSBlinkTimeOp, 579 RCX_LSCalibrateOp, 579 RCX_LSHysteresisOp, 579 RCX_LSLowerThreshOp, 579 RCX_LSUpperThreshOp, 579 RCX_MessageOp, 579 RCX_MulVarOp, 579 RCX_MuteSoundOp, 579 RCX_OnOffFloatOp, 580 RCX_OrVarOp, 580 RCX_OutputDirOp, 580 RCX_OutputPowerOp, 580 RCX_PBTurnOffOp, 580 RCX_PingOp, 580 RCX_PlaySoundOp, 580 RCX_PlayToneOp, 580 RCX_PlayToneVarOp, 580 RCX_PollMemoryOp, 580 RCX_PollOp, 581 RCX_RemoteOp, 581 RCX_ScoutOp, 581 RCX_ScoutRulesOp, 581 RCX_SelectProgramOp, 581 RCX_SendUARTDataOp, 581
INDEX
874
RCX_SetCounterOp, 581 RCX_SetDatalogOp, 581 RCX_SetEventOp, 581 RCX_SetFeedbackOp, 581 RCX_SetPriorityOp, 582 RCX_SetSourceValueOp, 582 RCX_SetTimerLimitOp, 582 RCX_SetVarOp, 582 RCX_SetWatchOp, 582 RCX_SgnVarOp, 582 RCX_SoundOp, 582 RCX_StartTaskOp, 582 RCX_StopAllTasksOp, 582 RCX_StopTaskOp, 582 RCX_SubVarOp, 583 RCX_SumVarOp, 583 RCX_UnlockFirmOp, 583 RCX_UnlockOp, 583 RCX_UnmuteSoundOp, 583 RCX_UploadDatalogOp, 583 RCX_ViewSourceValOp, 583 RCX_VLLOp, 583 RCXOutputConstants RCX_OUT_A, 551 RCX_OUT_AB, 551 RCX_OUT_ABC, 551 RCX_OUT_AC, 551 RCX_OUT_B, 551 RCX_OUT_BC, 551 RCX_OUT_C, 552 RCXOutputDirection RCX_OUT_FWD, 553 RCX_OUT_REV, 553 RCX_OUT_TOGGLE, 553 RCXOutputMode RCX_OUT_FLOAT, 552 RCX_OUT_OFF, 552 RCX_OUT_ON, 552 RCXOutputPower RCX_OUT_FULL, 554 RCX_OUT_HALF, 554 RCX_OUT_LOW, 554 RCXRemoteConstants RCX_RemoteKeysReleased, 555 RCX_RemoteOutABackward, 555 RCX_RemoteOutAForward, 555
RCX_RemoteOutBBackward, 555 RCX_RemoteOutBForward, 555 RCX_RemoteOutCBackward, 555 RCX_RemoteOutCForward, 555 RCX_RemotePBMessage1, 555 RCX_RemotePBMessage2, 555 RCX_RemotePBMessage3, 555 RCX_RemotePlayASound, 556 RCX_RemoteSelProgram1, 556 RCX_RemoteSelProgram2, 556 RCX_RemoteSelProgram3, 556 RCX_RemoteSelProgram4, 556 RCX_RemoteSelProgram5, 556 RCX_RemoteStopOutOff, 556 RCXSoundConstants SOUND_CLICK, 557 SOUND_DOUBLE_BEEP, 557 SOUND_DOWN, 557 SOUND_FAST_UP, 557 SOUND_LOW_BEEP, 557 SOUND_UP, 557 RCXSourceConstants RCX_BatteryLevelSrc, 570 RCX_ClickCounterSrc, 570 RCX_ConstantSrc, 570 RCX_CounterSrc, 570 RCX_DatalogRawDirectSrc, 570 RCX_DatalogRawIndirectSrc, 570 RCX_DatalogSrcDirectSrc, 571 RCX_DatalogSrcIndirectSrc, 571 RCX_DatalogValueDirectSrc, 571 RCX_DatalogValueIndirectSrc, 571 RCX_DurationSrc, 571 RCX_EventStateSrc, 571 RCX_FirmwareVersionSrc, 571 RCX_GlobalMotorStatusSrc, 571 RCX_HysteresisSrc, 571 RCX_IndirectVarSrc, 571 RCX_InputBooleanSrc, 572 RCX_InputModeSrc, 572 RCX_InputRawSrc, 572 RCX_InputTypeSrc, 572 RCX_InputValueSrc, 572 RCX_LowerThresholdSrc, 572 RCX_MessageSrc, 572 RCX_OutputStatusSrc, 572
INDEX
875
RCX_ProgramSlotSrc, 572 RCX_RandomSrc, 572 RCX_ScoutCounterLimitSrc, 573 RCX_ScoutEventFBSrc, 573 RCX_ScoutLightParamsSrc, 573 RCX_ScoutRulesSrc, 573 RCX_ScoutTimerLimitSrc, 573 RCX_TaskEventsSrc, 573 RCX_TenMSTimerSrc, 573 RCX_TimerSrc, 573 RCX_UARTSetupSrc, 573 RCX_UpperThresholdSrc, 573 RCX_VariableSrc, 574 RCX_WatchSrc, 574 Read LoaderModuleFunctions, 388 ReadButton NBCCommon.h, 750 SysCallConstants, 403 ReadButtonEx ButtonModuleFunctions, 327 ReadBytes LoaderModuleFunctions, 388 ReadDISTNxDistance MindSensorsAPI, 190 ReadDISTNxDistanceEx MindSensorsAPI, 190 ReadDISTNxMaxDistance MindSensorsAPI, 191 ReadDISTNxMaxDistanceEx MindSensorsAPI, 191 ReadDISTNxMinDistance MindSensorsAPI, 191 ReadDISTNxMinDistanceEx MindSensorsAPI, 192 ReadDISTNxModuleType MindSensorsAPI, 192 ReadDISTNxModuleTypeEx MindSensorsAPI, 193 ReadDISTNxNumPoints MindSensorsAPI, 193 ReadDISTNxNumPointsEx MindSensorsAPI, 193 ReadDISTNxVoltage MindSensorsAPI, 194 ReadDISTNxVoltageEx
MindSensorsAPI, 194 ReadI2CBytes LowSpeedModuleFunctions, 266 ReadI2CDeviceId LowSpeedModuleFunctions, 267 ReadI2CDeviceIdEx LowSpeedModuleFunctions, 267 ReadI2CDeviceInfo LowSpeedModuleFunctions, 268 ReadI2CDeviceInfoEx LowSpeedModuleFunctions, 268 ReadI2CRegister LowSpeedModuleFunctions, 269 ReadI2CVendorId LowSpeedModuleFunctions, 269 ReadI2CVendorIdEx LowSpeedModuleFunctions, 269 ReadI2CVersion LowSpeedModuleFunctions, 270 ReadI2CVersionEx LowSpeedModuleFunctions, 270 ReadLn LoaderModuleFunctions, 389 ReadLnString LoaderModuleFunctions, 389 ReadNRLinkBytes MindSensorsAPI, 194 ReadNRLinkBytesEx MindSensorsAPI, 195 ReadNRLinkStatus MindSensorsAPI, 195 ReadNRLinkStatusEx MindSensorsAPI, 195 ReadSemData NBCCommon.h, 751 SysCallConstants, 404 ReadSensor InputModuleFunctions, 253 ReadSensorColorEx InputModuleFunctions, 253 ReadSensorColorRaw InputModuleFunctions, 254 ReadSensorHTAccel HiTechnicAPI, 119 ReadSensorHTColor HiTechnicAPI, 119
INDEX
876
ReadSensorHTColor2Active HiTechnicAPI, 120 ReadSensorHTColorNum HiTechnicAPI, 120 ReadSensorHTCompass HiTechnicAPI, 120 ReadSensorHTEOPD HiTechnicAPI, 121 ReadSensorHTGyro HiTechnicAPI, 121 ReadSensorHTIRReceiver HiTechnicAPI, 121 ReadSensorHTIRReceiverEx HiTechnicAPI, 122 ReadSensorHTIRSeeker HiTechnicAPI, 122 ReadSensorHTIRSeeker2AC HiTechnicAPI, 123 ReadSensorHTIRSeeker2Addr HiTechnicAPI, 123 ReadSensorHTIRSeeker2DC HiTechnicAPI, 124 ReadSensorHTIRSeekerDir HiTechnicAPI, 124 ReadSensorHTNormalizedColor HiTechnicAPI, 124 ReadSensorHTNormalizedColor2Active HiTechnicAPI, 125 ReadSensorHTRawColor HiTechnicAPI, 125 ReadSensorHTRawColor2 HiTechnicAPI, 126 ReadSensorHTTouchMultiplexer HiTechnicAPI, 126 ReadSensorMSAccel MindSensorsAPI, 196 ReadSensorMSAccelEx MindSensorsAPI, 196 ReadSensorMSCompass MindSensorsAPI, 197 ReadSensorMSCompassEx MindSensorsAPI, 197 ReadSensorMSDROD MindSensorsAPI, 197 ReadSensorMSPlayStation MindSensorsAPI, 197
ReadSensorMSPlayStationEx MindSensorsAPI, 198 ReadSensorMSPressure MindSensorsAPI, 199 ReadSensorMSPressureRaw MindSensorsAPI, 199 ReadSensorMSRTClock MindSensorsAPI, 199 ReadSensorMSTilt MindSensorsAPI, 200 ReadSensorMSTiltEx MindSensorsAPI, 200 ReadSensorUS LowSpeedModuleFunctions, 271 ReadSensorUSEx LowSpeedModuleFunctions, 271 RebootInFirmwareMode IOCtrlModuleFunctions, 381 ReceiveMessage CommModuleFunctions, 361 ReceiveRemoteBool CommModuleFunctions, 361 ReceiveRemoteMessageEx CommModuleFunctions, 362 ReceiveRemoteNumber CommModuleFunctions, 362 ReceiveRemoteString CommModuleFunctions, 363 RectOut DisplayModuleFunctions, 293 RectOutEx DisplayModuleFunctions, 293 RegDValue NBCCommon.h, 751 OutputFieldConstants, 487 RegIValue NBCCommon.h, 751 OutputFieldConstants, 487 RegMode NBCCommon.h, 751 OutputFieldConstants, 488 RegPValue NBCCommon.h, 752 OutputFieldConstants, 488 Remote control (direct commands) errors, 419
INDEX
877
RemoteKeepAlive CommModuleFunctions, 363 RemoteMessageRead CommModuleFunctions, 364 RemoteMessageWrite CommModuleFunctions, 364 RemotePlaySoundFile CommModuleFunctions, 364 RemotePlayTone CommModuleFunctions, 365 RemoteResetMotorPosition CommModuleFunctions, 365 RemoteResetScaledValue CommModuleFunctions, 365 RemoteSetInputMode CommModuleFunctions, 366 RemoteSetOutputState CommModuleFunctions, 366 RemoteStartProgram CommModuleFunctions, 367 RemoteStopProgram CommModuleFunctions, 367 RemoteStopSound CommModuleFunctions, 367 RenameFile LoaderModuleFunctions, 390 RESET_ALL NBCCommon.h, 752 TachoResetConstants, 480 RESET_BLOCK_COUNT NBCCommon.h, 752 TachoResetConstants, 480 RESET_BLOCKANDTACHO NBCCommon.h, 752 TachoResetConstants, 480 RESET_COUNT NBCCommon.h, 752 TachoResetConstants, 480 RESET_NONE NBCCommon.h, 752 TachoResetConstants, 480 RESET_ROTATION_COUNT NBCCommon.h, 752 TachoResetConstants, 480 ResetAllTachoCounts OutputModuleFunctions, 241
ResetBlockTachoCount OutputModuleFunctions, 241 ResetRotationCount OutputModuleFunctions, 241 ResetSensor InputModuleFunctions, 254 ResetSleepTimer CommandModuleFunctions, 316 ResetTachoCount OutputModuleFunctions, 242 ResizeFile LoaderModuleFunctions, 390 ResolveHandle LoaderModuleFunctions, 390 RIC Macro Wrappers, 203 RICArg NBCCommon.h, 752 RICMacros, 205 RICImgPoint NBCCommon.h, 753 RICMacros, 205 RICImgRect NBCCommon.h, 753 RICMacros, 206 RICMacros RICArg, 205 RICImgPoint, 205 RICImgRect, 206 RICMapArg, 206 RICMapElement, 206 RICMapFunction, 206 RICOpCircle, 207 RICOpCopyBits, 207 RICOpDescription, 207 RICOpEllipse, 208 RICOpLine, 208 RICOpNumBox, 208 RICOpPixel, 209 RICOpPolygon, 209 RICOpRect, 209 RICOpSprite, 210 RICOpVarMap, 210 RICPolygonPoints, 211 RICSpriteData, 211 RICMapArg NBCCommon.h, 753
INDEX
878
RICMacros, 206 RICMapElement NBCCommon.h, 753 RICMacros, 206 RICMapFunction NBCCommon.h, 754 RICMacros, 206 RICOpCircle NBCCommon.h, 754 RICMacros, 207 RICOpCopyBits NBCCommon.h, 754 RICMacros, 207 RICOpDescription NBCCommon.h, 755 RICMacros, 207 RICOpEllipse NBCCommon.h, 755 RICMacros, 208 RICOpLine NBCCommon.h, 755 RICMacros, 208 RICOpNumBox NBCCommon.h, 756 RICMacros, 208 RICOpPixel NBCCommon.h, 756 RICMacros, 209 RICOpPolygon NBCCommon.h, 756 RICMacros, 209 RICOpRect NBCCommon.h, 757 RICMacros, 209 RICOpSprite NBCCommon.h, 757 RICMacros, 210 RICOpVarMap NBCCommon.h, 757 RICMacros, 210 RICPolygonPoints NBCCommon.h, 758 RICMacros, 211 RICSpriteData NBCCommon.h, 758 RICMacros, 211
ROTATE_QUEUE CommandVMState, 414 NBCCommon.h, 758 RotateMotor OutputModuleFunctions, 242 RotateMotorEx OutputModuleFunctions, 242 RotateMotorExPID OutputModuleFunctions, 243 RotateMotorPID OutputModuleFunctions, 244 RotationCount NBCCommon.h, 758 OutputFieldConstants, 488 RS485Control CommModuleFunctions, 368 RS485Exit CommModuleFunctions, 368 RS485Init CommModuleFunctions, 369 RS485Read CommModuleFunctions, 369 RS485Status CommModuleFunctions, 369 RS485Uart CommModuleFunctions, 370 RS485Write CommModuleFunctions, 370 RunNRLinkMacro MindSensorsAPI, 201 RunNRLinkMacroEx MindSensorsAPI, 201 RunState NBCCommon.h, 759 OutputFieldConstants, 489 SAMPLERATE_DEFAULT NBCCommon.h, 759 SoundMisc, 439 SAMPLERATE_MAX NBCCommon.h, 759 SoundMisc, 440 SAMPLERATE_MIN NBCCommon.h, 759 SoundMisc, 440 ScaledValue
INDEX
879
InputFieldConstants, 468 NBCCommon.h, 759 SCHAR_MAX NBCCommon.h, 759 NXTLimits, 611 SCHAR_MIN NBCCommon.h, 759 NXTLimits, 612 Scout constants, 558 Scout light constants, 558 Scout light rule constants, 566 Scout mode constants, 563 Scout motion rule constants, 564 Scout sound constants, 559 Scout sound set constants, 562 Scout special effect constants, 568 Scout touch rule constants, 565 Scout transmit rule constants, 567 SCOUT_FXR_ALARM NBCCommon.h, 760 ScoutSpecialEffectConstants, 568 SCOUT_FXR_BUG NBCCommon.h, 760 ScoutSpecialEffectConstants, 568 SCOUT_FXR_NONE NBCCommon.h, 760 ScoutSpecialEffectConstants, 568 SCOUT_FXR_RANDOM NBCCommon.h, 760 ScoutSpecialEffectConstants, 569 SCOUT_FXR_SCIENCE NBCCommon.h, 760 ScoutSpecialEffectConstants, 569 SCOUT_LIGHT_OFF NBCCommon.h, 760 ScoutLightConstants, 559 SCOUT_LIGHT_ON NBCCommon.h, 760 ScoutLightConstants, 559 SCOUT_LR_AVOID NBCCommon.h, 760 ScoutLightRuleConstants, 567 SCOUT_LR_IGNORE NBCCommon.h, 760 ScoutLightRuleConstants, 567 SCOUT_LR_OFF_WHEN
NBCCommon.h, 760 ScoutLightRuleConstants, 567 SCOUT_LR_SEEK_DARK NBCCommon.h, 761 ScoutLightRuleConstants, 567 SCOUT_LR_SEEK_LIGHT NBCCommon.h, 761 ScoutLightRuleConstants, 567 SCOUT_LR_WAIT_FOR NBCCommon.h, 761 ScoutLightRuleConstants, 567 SCOUT_MODE_POWER NBCCommon.h, 761 ScoutModeConstants, 564 SCOUT_MODE_STANDALONE NBCCommon.h, 761 ScoutModeConstants, 564 SCOUT_MR_CIRCLE_LEFT NBCCommon.h, 761 ScoutMotionRuleConstants, 564 SCOUT_MR_CIRCLE_RIGHT NBCCommon.h, 761 ScoutMotionRuleConstants, 564 SCOUT_MR_FORWARD NBCCommon.h, 761 ScoutMotionRuleConstants, 564 SCOUT_MR_LOOP_A NBCCommon.h, 761 ScoutMotionRuleConstants, 565 SCOUT_MR_LOOP_AB NBCCommon.h, 761 ScoutMotionRuleConstants, 565 SCOUT_MR_LOOP_B NBCCommon.h, 762 ScoutMotionRuleConstants, 565 SCOUT_MR_NO_MOTION NBCCommon.h, 762 ScoutMotionRuleConstants, 565 SCOUT_MR_ZIGZAG NBCCommon.h, 762 ScoutMotionRuleConstants, 565 SCOUT_SNDSET_ALARM NBCCommon.h, 762 ScoutSndSetConstants, 563 SCOUT_SNDSET_BASIC NBCCommon.h, 762
INDEX
880
ScoutSndSetConstants, 563 SCOUT_SNDSET_BUG NBCCommon.h, 762 ScoutSndSetConstants, 563 SCOUT_SNDSET_NONE NBCCommon.h, 762 ScoutSndSetConstants, 563 SCOUT_SNDSET_RANDOM NBCCommon.h, 762 ScoutSndSetConstants, 563 SCOUT_SNDSET_SCIENCE NBCCommon.h, 762 ScoutSndSetConstants, 563 SCOUT_SOUND_1_BLINK NBCCommon.h, 762 ScoutSoundConstants, 560 SCOUT_SOUND_2_BLINK NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_COUNTER1 NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_COUNTER2 NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_ENTER_BRIGHT NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_ENTER_DARK NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_ENTER_NORMAL NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_ENTERSA NBCCommon.h, 763 ScoutSoundConstants, 560 SCOUT_SOUND_KEYERROR NBCCommon.h, 763 ScoutSoundConstants, 561 SCOUT_SOUND_MAIL_RECEIVED NBCCommon.h, 763 ScoutSoundConstants, 561 SCOUT_SOUND_NONE NBCCommon.h, 763 ScoutSoundConstants, 561
SCOUT_SOUND_REMOTE NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_SPECIAL1 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_SPECIAL2 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_SPECIAL3 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_TIMER1 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_TIMER2 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_TIMER3 NBCCommon.h, 764 ScoutSoundConstants, 561 SCOUT_SOUND_TOUCH1_PRES NBCCommon.h, 764 ScoutSoundConstants, 562 SCOUT_SOUND_TOUCH1_REL NBCCommon.h, 764 ScoutSoundConstants, 562 SCOUT_SOUND_TOUCH2_PRES NBCCommon.h, 764 ScoutSoundConstants, 562 SCOUT_SOUND_TOUCH2_REL NBCCommon.h, 765 ScoutSoundConstants, 562 SCOUT_TGS_LONG NBCCommon.h, 765 ScoutTransmitRuleConstants, 568 SCOUT_TGS_MEDIUM NBCCommon.h, 765 ScoutTransmitRuleConstants, 568 SCOUT_TGS_SHORT NBCCommon.h, 765 ScoutTransmitRuleConstants, 568 SCOUT_TR_AVOID NBCCommon.h, 765 ScoutTouchRuleConstants, 566 SCOUT_TR_IGNORE
INDEX
881
NBCCommon.h, 765 ScoutTouchRuleConstants, 566 SCOUT_TR_OFF_WHEN NBCCommon.h, 765 ScoutTouchRuleConstants, 566 SCOUT_TR_REVERSE NBCCommon.h, 765 ScoutTouchRuleConstants, 566 SCOUT_TR_WAIT_FOR NBCCommon.h, 765 ScoutTouchRuleConstants, 566 ScoutLightConstants SCOUT_LIGHT_OFF, 559 SCOUT_LIGHT_ON, 559 ScoutLightRuleConstants SCOUT_LR_AVOID, 567 SCOUT_LR_IGNORE, 567 SCOUT_LR_OFF_WHEN, 567 SCOUT_LR_SEEK_DARK, 567 SCOUT_LR_SEEK_LIGHT, 567 SCOUT_LR_WAIT_FOR, 567 ScoutModeConstants SCOUT_MODE_POWER, 564 SCOUT_MODE_STANDALONE, 564 ScoutMotionRuleConstants SCOUT_MR_CIRCLE_LEFT, 564 SCOUT_MR_CIRCLE_RIGHT, 564 SCOUT_MR_FORWARD, 564 SCOUT_MR_LOOP_A, 565 SCOUT_MR_LOOP_AB, 565 SCOUT_MR_LOOP_B, 565 SCOUT_MR_NO_MOTION, 565 SCOUT_MR_ZIGZAG, 565 ScoutSndSetConstants SCOUT_SNDSET_ALARM, 563 SCOUT_SNDSET_BASIC, 563 SCOUT_SNDSET_BUG, 563 SCOUT_SNDSET_NONE, 563 SCOUT_SNDSET_RANDOM, 563 SCOUT_SNDSET_SCIENCE, 563 ScoutSoundConstants SCOUT_SOUND_1_BLINK, 560 SCOUT_SOUND_2_BLINK, 560
SCOUT_SOUND_COUNTER1, 560 SCOUT_SOUND_COUNTER2, 560 SCOUT_SOUND_ENTER_BRIGHT, 560 SCOUT_SOUND_ENTER_DARK, 560 SCOUT_SOUND_ENTER_NORMAL, 560 SCOUT_SOUND_ENTERSA, 560 SCOUT_SOUND_KEYERROR, 561 SCOUT_SOUND_MAIL_RECEIVED, 561 SCOUT_SOUND_NONE, 561 SCOUT_SOUND_REMOTE, 561 SCOUT_SOUND_SPECIAL1, 561 SCOUT_SOUND_SPECIAL2, 561 SCOUT_SOUND_SPECIAL3, 561 SCOUT_SOUND_TIMER1, 561 SCOUT_SOUND_TIMER2, 561 SCOUT_SOUND_TIMER3, 561 SCOUT_SOUND_TOUCH1_PRES, 562 SCOUT_SOUND_TOUCH1_REL, 562 SCOUT_SOUND_TOUCH2_PRES, 562 SCOUT_SOUND_TOUCH2_REL, 562 ScoutSpecialEffectConstants SCOUT_FXR_ALARM, 568 SCOUT_FXR_BUG, 568 SCOUT_FXR_NONE, 568 SCOUT_FXR_RANDOM, 569 SCOUT_FXR_SCIENCE, 569 ScoutTouchRuleConstants SCOUT_TR_AVOID, 566 SCOUT_TR_IGNORE, 566 SCOUT_TR_OFF_WHEN, 566 SCOUT_TR_REVERSE, 566 SCOUT_TR_WAIT_FOR, 566 ScoutTransmitRuleConstants SCOUT_TGS_LONG, 568 SCOUT_TGS_MEDIUM, 568
INDEX
882
SCOUT_TGS_SHORT, 568 SCREEN_BACKGROUND DisplayModuleConstants, 510 NBCCommon.h, 765 SCREEN_LARGE DisplayModuleConstants, 510 NBCCommon.h, 766 SCREEN_MODE_CLEAR DisplayModuleConstants, 510 NBCCommon.h, 766 SCREEN_MODE_RESTORE DisplayModuleConstants, 510 NBCCommon.h, 766 SCREEN_SMALL DisplayModuleConstants, 510 NBCCommon.h, 766 SCREENS DisplayModuleConstants, 510 NBCCommon.h, 766 SEC_1 NBCCommon.h, 766 TimeConstants, 411 SEC_10 NBCCommon.h, 766 TimeConstants, 411 SEC_15 NBCCommon.h, 766 TimeConstants, 411 SEC_2 NBCCommon.h, 767 TimeConstants, 411 SEC_20 NBCCommon.h, 767 TimeConstants, 411 SEC_3 NBCCommon.h, 767 TimeConstants, 411 SEC_30 NBCCommon.h, 767 TimeConstants, 411 SEC_4 NBCCommon.h, 767 TimeConstants, 411 SEC_5 NBCCommon.h, 767 TimeConstants, 411
SEC_6 NBCCommon.h, 767 TimeConstants, 411 SEC_7 NBCCommon.h, 767 TimeConstants, 412 SEC_8 NBCCommon.h, 767 TimeConstants, 412 SEC_9 NBCCommon.h, 767 TimeConstants, 412 SendMessage CommModuleFunctions, 370 SendRemoteBool CommModuleFunctions, 371 SendRemoteNumber CommModuleFunctions, 371 SendRemoteString CommModuleFunctions, 371 SendResponseBool CommModuleFunctions, 372 SendResponseNumber CommModuleFunctions, 372 SendResponseString CommModuleFunctions, 372 SendRS485Bool CommModuleFunctions, 373 SendRS485Number CommModuleFunctions, 373 SendRS485String CommModuleFunctions, 373 Sensor types and modes, 77 SetAbortFlag UiModuleFunctions, 335 SetBatteryState UiModuleFunctions, 335 SetBluetoothState UiModuleFunctions, 335 SetBTInputBuffer CommModuleFunctions, 374 SetBTInputBufferInPtr CommModuleFunctions, 374 SetBTInputBufferOutPtr CommModuleFunctions, 374 SetBTOutputBuffer
INDEX
883
CommModuleFunctions, 375 SetBTOutputBufferInPtr CommModuleFunctions, 375 SetBTOutputBufferOutPtr CommModuleFunctions, 375 SetButtonLongPressCount ButtonModuleFunctions, 327 SetButtonLongReleaseCount ButtonModuleFunctions, 328 SetButtonModuleValue CommandModuleFunctions, 316 SetButtonPressCount ButtonModuleFunctions, 328 SetButtonReleaseCount ButtonModuleFunctions, 328 SetButtonShortReleaseCount ButtonModuleFunctions, 328 SetButtonState ButtonModuleFunctions, 329 SetCommandFlags UiModuleFunctions, 336 SetCommandModuleBytes CommandModuleFunctions, 316 SetCommandModuleValue CommandModuleFunctions, 317 SetCommModuleBytes CommandModuleFunctions, 317 SetCommModuleValue CommandModuleFunctions, 318 SetDisplayContrast DisplayModuleFunctions, 294 SetDisplayDisplay DisplayModuleFunctions, 294 SetDisplayEraseMask DisplayModuleFunctions, 294 SetDisplayFlags DisplayModuleFunctions, 295 SetDisplayFont DisplayModuleFunctions, 295 SetDisplayModuleBytes CommandModuleFunctions, 318 SetDisplayModuleValue CommandModuleFunctions, 318 SetDisplayNormal DisplayModuleFunctions, 295 SetDisplayPopup
DisplayModuleFunctions, 296 SetDisplayTextLinesCenterFlags DisplayModuleFunctions, 296 SetDisplayUpdateMask DisplayModuleFunctions, 296 SetHSFlags CommModuleFunctions, 375 SetHSInputBuffer CommModuleFunctions, 376 SetHSInputBufferInPtr CommModuleFunctions, 376 SetHSInputBufferOutPtr CommModuleFunctions, 376 SetHSMode CommModuleFunctions, 376 SetHSOutputBuffer CommModuleFunctions, 377 SetHSOutputBufferInPtr CommModuleFunctions, 377 SetHSOutputBufferOutPtr CommModuleFunctions, 377 SetHSSpeed CommModuleFunctions, 377 SetHSState CommModuleFunctions, 378 SetHTColor2Mode HiTechnicAPI, 127 SetHTIRSeeker2Mode HiTechnicAPI, 127 SetInCustomActiveStatus InputModuleFunctions, 254 SetInCustomPercentFullScale InputModuleFunctions, 255 SetInCustomZeroOffset InputModuleFunctions, 255 SetInDigiPinsDirection InputModuleFunctions, 255 SetInDigiPinsOutputLevel InputModuleFunctions, 256 SetInDigiPinsStatus InputModuleFunctions, 256 SetInputModuleValue CommandModuleFunctions, 319 SetInSensorBoolean InputModuleFunctions, 256 SetIOCtrlModuleValue
INDEX
884
CommandModuleFunctions, 319 SetIOMapBytes CommandModuleFunctions, 320 SetIOMapBytesByID CommandModuleFunctions, 320 SetIOMapValue CommandModuleFunctions, 321 SetIOMapValueByID CommandModuleFunctions, 321 SetLoaderModuleValue CommandModuleFunctions, 321 SetLowSpeedModuleBytes CommandModuleFunctions, 322 SetLowSpeedModuleValue CommandModuleFunctions, 322 SetOnBrickProgramPointer UiModuleFunctions, 336 SetOutputModuleValue CommandModuleFunctions, 323 SetOutPwnFreq OutputModuleFunctions, 244 SetScreenMode NBCCommon.h, 768 SysCallConstants, 404 SetSensorColorBlue InputModuleFunctions, 256 SetSensorColorFull InputModuleFunctions, 257 SetSensorColorGreen InputModuleFunctions, 257 SetSensorColorNone InputModuleFunctions, 257 SetSensorColorRed InputModuleFunctions, 258 SetSensorHTEOPD HiTechnicAPI, 127 SetSensorHTGyro HiTechnicAPI, 128 SetSensorLight InputModuleFunctions, 258 SetSensorLowspeed InputModuleFunctions, 258 SetSensorMode InputModuleFunctions, 259 SetSensorMSDRODActive MindSensorsAPI, 201
SetSensorMSDRODInactive MindSensorsAPI, 202 SetSensorMSPressure MindSensorsAPI, 202 SetSensorSound InputModuleFunctions, 259 SetSensorTouch InputModuleFunctions, 259 SetSensorType InputModuleFunctions, 259 SetSensorUltrasonic InputModuleFunctions, 260 SetSleepTimeout UiModuleFunctions, 336 SetSleepTimeoutVal NBCCommon.h, 768 SysCallConstants, 404 SetSleepTimer UiModuleFunctions, 336 SetSoundDuration SoundModuleFunctions, 302 SetSoundFlags SoundModuleFunctions, 302 SetSoundFrequency SoundModuleFunctions, 303 SetSoundMode SoundModuleFunctions, 303 SetSoundModuleState SoundModuleFunctions, 303 SetSoundModuleValue CommandModuleFunctions, 323 SetSoundSampleRate SoundModuleFunctions, 304 SetSoundState SoundModuleFunctions, 304 SetSoundVolume SoundModuleFunctions, 304 SetUIButton UiModuleFunctions, 336 SetUIModuleValue CommandModuleFunctions, 323 SetUIState UiModuleFunctions, 337 SetUSBInputBuffer CommModuleFunctions, 378 SetUSBInputBufferInPtr
INDEX
885
CommModuleFunctions, 378 SetUSBInputBufferOutPtr CommModuleFunctions, 378 SetUSBOutputBuffer CommModuleFunctions, 379 SetUSBOutputBufferInPtr CommModuleFunctions, 379 SetUSBOutputBufferOutPtr CommModuleFunctions, 379 SetUSBPollBuffer CommModuleFunctions, 379 SetUSBPollBufferInPtr CommModuleFunctions, 380 SetUSBPollBufferOutPtr CommModuleFunctions, 380 SetUSBState CommModuleFunctions, 380 SetUsbState UiModuleFunctions, 337 SetVMRunState UiModuleFunctions, 337 SetVolume UiModuleFunctions, 337 SHRT_MAX NBCCommon.h, 768 NXTLimits, 612 SHRT_MIN NBCCommon.h, 768 NXTLimits, 612 SignedRandom cstdlibAPI, 394 SIZE_OF_BDADDR CommMiscConstants, 526 NBCCommon.h, 768 SIZE_OF_BRICK_NAME CommMiscConstants, 526 NBCCommon.h, 768 SIZE_OF_BT_CONNECT_TABLE CommMiscConstants, 526 NBCCommon.h, 768 SIZE_OF_BT_DEVICE_TABLE CommMiscConstants, 526 NBCCommon.h, 768 SIZE_OF_BT_NAME CommMiscConstants, 526 NBCCommon.h, 768
SIZE_OF_BT_PINCODE CommMiscConstants, 526 NBCCommon.h, 768 SIZE_OF_BTBUF CommMiscConstants, 527 NBCCommon.h, 769 SIZE_OF_CLASS_OF_DEVICE CommMiscConstants, 527 NBCCommon.h, 769 SIZE_OF_HSBUF CommMiscConstants, 527 NBCCommon.h, 769 SIZE_OF_USBBUF CommMiscConstants, 527 NBCCommon.h, 769 SIZE_OF_USBDATA CommMiscConstants, 527 NBCCommon.h, 769 Sound module, 84 Sound module constants, 434 Sound module functions, 297 Sound module IOMAP offsets, 438 Sound module miscellaneous constants, 439 SOUND_CLICK NBCCommon.h, 769 RCXSoundConstants, 557 SOUND_DOUBLE_BEEP NBCCommon.h, 769 RCXSoundConstants, 557 SOUND_DOWN NBCCommon.h, 769 RCXSoundConstants, 557 SOUND_FAST_UP NBCCommon.h, 769 RCXSoundConstants, 557 SOUND_FLAGS_IDLE NBCCommon.h, 769 SoundFlagsConstants, 436 SOUND_FLAGS_RUNNING NBCCommon.h, 770 SoundFlagsConstants, 436 SOUND_FLAGS_UPDATE NBCCommon.h, 770 SoundFlagsConstants, 436 SOUND_LOW_BEEP
INDEX
886
NBCCommon.h, 770 RCXSoundConstants, 557 SOUND_MODE_LOOP NBCCommon.h, 770 SoundModeConstants, 437 SOUND_MODE_ONCE NBCCommon.h, 770 SoundModeConstants, 437 SOUND_MODE_TONE NBCCommon.h, 770 SoundModeConstants, 437 SOUND_STATE_FILE NBCCommon.h, 770 SoundStateConstants, 436 SOUND_STATE_IDLE NBCCommon.h, 770 SoundStateConstants, 436 SOUND_STATE_STOP NBCCommon.h, 770 SoundStateConstants, 436 SOUND_STATE_TONE NBCCommon.h, 770 SoundStateConstants, 437 SOUND_UP NBCCommon.h, 771 RCXSoundConstants, 557 SoundFlags constants, 435 SoundFlagsConstants SOUND_FLAGS_IDLE, 436 SOUND_FLAGS_RUNNING, 436 SOUND_FLAGS_UPDATE, 436 SoundGetState NBCCommon.h, 771 SysCallConstants, 404 SoundIOMAP SoundOffsetDuration, 438 SoundOffsetFlags, 438 SoundOffsetFreq, 438 SoundOffsetMode, 438 SoundOffsetSampleRate, 438 SoundOffsetSoundFilename, 438 SoundOffsetState, 439 SoundOffsetVolume, 439 SoundMisc FREQUENCY_MAX, 439 FREQUENCY_MIN, 439
SAMPLERATE_DEFAULT, 439 SAMPLERATE_MAX, 440 SAMPLERATE_MIN, 440 SoundMode constants, 437 SoundModeConstants SOUND_MODE_LOOP, 437 SOUND_MODE_ONCE, 437 SOUND_MODE_TONE, 437 SoundModuleFunctions GetSoundDuration, 299 GetSoundFrequency, 299 GetSoundMode, 300 GetSoundSampleRate, 300 GetSoundState, 300 GetSoundVolume, 300 PlayFile, 301 PlayFileEx, 301 PlayTone, 301 PlayToneEx, 302 SetSoundDuration, 302 SetSoundFlags, 302 SetSoundFrequency, 303 SetSoundMode, 303 SetSoundModuleState, 303 SetSoundSampleRate, 304 SetSoundState, 304 SetSoundVolume, 304 SoundModuleID ModuleIDConstants, 214 NBCCommon.h, 771 SoundModuleName ModuleNameConstants, 213 NBCCommon.h, 771 SoundOffsetDuration NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetFlags NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetFreq NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetMode NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetSampleRate
INDEX
887
NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetSoundFilename NBCCommon.h, 771 SoundIOMAP, 438 SoundOffsetState NBCCommon.h, 772 SoundIOMAP, 439 SoundOffsetVolume NBCCommon.h, 772 SoundIOMAP, 439 SoundPlayFile NBCCommon.h, 772 SysCallConstants, 404 SoundPlayTone NBCCommon.h, 772 SysCallConstants, 404 SoundSetState NBCCommon.h, 772 SysCallConstants, 404 SoundState constants, 436 SoundStateConstants SOUND_STATE_FILE, 436 SOUND_STATE_IDLE, 436 SOUND_STATE_STOP, 436 SOUND_STATE_TONE, 437 SPECIALS DisplayModuleConstants, 511 NBCCommon.h, 772 Standard I2C constants, 501 Standard-C API functions, 216 STAT_COMM_PENDING CommandModuleConstants, 81 NBCCommon.h, 772 STAT_MSG_EMPTY_MAILBOX CommandModuleConstants, 81 NBCCommon.h, 772 STATUSICON_BATTERY DisplayModuleConstants, 511 NBCCommon.h, 772 STATUSICON_BLUETOOTH DisplayModuleConstants, 511 NBCCommon.h, 772 STATUSICON_USB DisplayModuleConstants, 511 NBCCommon.h, 773
STATUSICON_VM DisplayModuleConstants, 511 NBCCommon.h, 773 STATUSICONS DisplayModuleConstants, 511 NBCCommon.h, 773 STATUSTEXT DisplayModuleConstants, 511 NBCCommon.h, 773 STEPICON_1 DisplayModuleConstants, 511 NBCCommon.h, 773 STEPICON_2 DisplayModuleConstants, 511 NBCCommon.h, 773 STEPICON_3 DisplayModuleConstants, 511 NBCCommon.h, 773 STEPICON_4 DisplayModuleConstants, 512 NBCCommon.h, 773 STEPICON_5 DisplayModuleConstants, 512 NBCCommon.h, 773 STEPICONS DisplayModuleConstants, 512 NBCCommon.h, 773 STEPLINE DisplayModuleConstants, 512 NBCCommon.h, 774 STOP_REQ CommandVMState, 414 NBCCommon.h, 774 SysCallConstants ColorSensorRead, 398 CommBTCheckStatus, 398 CommBTConnection, 398 CommBTOnOff, 398 CommBTRead, 398 CommBTWrite, 398 CommExecuteFunction, 398 CommHSCheckStatus, 398 CommHSControl, 399 CommHSRead, 399 CommHSWrite, 399 CommLSCheckStatus, 399
INDEX
888
CommLSRead, 399 CommLSWrite, 399 CommLSWriteEx, 399 ComputeCalibValue, 399 DatalogGetTimes, 399 DatalogWrite, 399 DisplayExecuteFunction, 400 DrawCircle, 400 DrawEllipse, 400 DrawFont, 400 DrawGraphic, 400 DrawGraphicArray, 400 DrawLine, 400 DrawPoint, 400 DrawPolygon, 400 DrawRect, 400 DrawText, 401 FileClose, 401 FileDelete, 401 FileFindFirst, 401 FileFindNext, 401 FileOpenAppend, 401 FileOpenRead, 401 FileOpenReadLinear, 401 FileOpenWrite, 401 FileOpenWriteLinear, 401 FileOpenWriteNonLinear, 402 FileRead, 402 FileRename, 402 FileResize, 402 FileResolveHandle, 402 FileSeek, 402 FileWrite, 402 GetStartTick, 402 IOMapRead, 402 IOMapReadByID, 402 IOMapWrite, 403 IOMapWriteByID, 403 KeepAlive, 403 ListFiles, 403 LoaderExecuteFunction, 403 MessageRead, 403 MessageWrite, 403 RandomNumber, 403 ReadButton, 403 ReadSemData, 404
SetScreenMode, 404 SetSleepTimeoutVal, 404 SoundGetState, 404 SoundPlayFile, 404 SoundPlayTone, 404 SoundSetState, 404 UpdateCalibCacheInfo, 404 WriteSemData, 404 System Call function constants, 396 TachoCount NBCCommon.h, 774 OutputFieldConstants, 489 TachoLimit NBCCommon.h, 774 OutputFieldConstants, 489 Tachometer counter reset ags, 479 TachoResetConstants RESET_ALL, 480 RESET_BLOCK_COUNT, 480 RESET_BLOCKANDTACHO, 480 RESET_COUNT, 480 RESET_NONE, 480 RESET_ROTATION_COUNT, 480 TEMP_FQ_1 NBCCommon.h, 774 TempI2CConstants, 504 TEMP_FQ_2 NBCCommon.h, 774 TempI2CConstants, 504 TEMP_FQ_4 NBCCommon.h, 774 TempI2CConstants, 504 TEMP_FQ_6 NBCCommon.h, 775 TempI2CConstants, 505 TEMP_I2C_ADDRESS NBCCommon.h, 775 TempI2CConstants, 505 TEMP_OS_ONESHOT NBCCommon.h, 775 TempI2CConstants, 505 TEMP_POL_HIGH NBCCommon.h, 775 TempI2CConstants, 505 TEMP_POL_LOW
INDEX
889
NBCCommon.h, 775 TempI2CConstants, 505 TEMP_REG_CONFIG NBCCommon.h, 775 TempI2CConstants, 505 TEMP_REG_TEMP NBCCommon.h, 775 TempI2CConstants, 505 TEMP_REG_THIGH NBCCommon.h, 775 TempI2CConstants, 505 TEMP_REG_TLOW NBCCommon.h, 775 TempI2CConstants, 505 TEMP_RES_10BIT NBCCommon.h, 775 TempI2CConstants, 505 TEMP_RES_11BIT NBCCommon.h, 776 TempI2CConstants, 506 TEMP_RES_12BIT NBCCommon.h, 776 TempI2CConstants, 506 TEMP_RES_9BIT NBCCommon.h, 776 TempI2CConstants, 506 TEMP_SD_CONTINUOUS NBCCommon.h, 776 TempI2CConstants, 506 TEMP_SD_SHUTDOWN NBCCommon.h, 776 TempI2CConstants, 506 TEMP_TM_COMPARATOR NBCCommon.h, 776 TempI2CConstants, 506 TEMP_TM_INTERRUPT NBCCommon.h, 776 TempI2CConstants, 506 Temperature sensor constants, 504 TempI2CConstants TEMP_FQ_1, 504 TEMP_FQ_2, 504 TEMP_FQ_4, 504 TEMP_FQ_6, 505 TEMP_I2C_ADDRESS, 505 TEMP_OS_ONESHOT, 505
TEMP_POL_HIGH, 505 TEMP_POL_LOW, 505 TEMP_REG_CONFIG, 505 TEMP_REG_TEMP, 505 TEMP_REG_THIGH, 505 TEMP_REG_TLOW, 505 TEMP_RES_10BIT, 505 TEMP_RES_11BIT, 506 TEMP_RES_12BIT, 506 TEMP_RES_9BIT, 506 TEMP_SD_CONTINUOUS, 506 TEMP_SD_SHUTDOWN, 506 TEMP_TM_COMPARATOR, 506 TEMP_TM_INTERRUPT, 506 Text line constants, 520 TEXTLINE_1 DisplayTextLineConstants, 520 NBCCommon.h, 776 TEXTLINE_2 DisplayTextLineConstants, 520 NBCCommon.h, 776 TEXTLINE_3 DisplayTextLineConstants, 520 NBCCommon.h, 776 TEXTLINE_4 DisplayTextLineConstants, 520 NBCCommon.h, 777 TEXTLINE_5 DisplayTextLineConstants, 520 NBCCommon.h, 777 TEXTLINE_6 DisplayTextLineConstants, 521 NBCCommon.h, 777 TEXTLINE_7 DisplayTextLineConstants, 521 NBCCommon.h, 777 TEXTLINE_8 DisplayTextLineConstants, 521 NBCCommon.h, 777 TEXTLINES DisplayTextLineConstants, 521 NBCCommon.h, 777 TextOut DisplayModuleFunctions, 296 TextOutEx DisplayModuleFunctions, 297
INDEX
890
Third-party NXT devices, 216 Time constants, 406 TimeConstants MIN_1, 407 MS_1, 407 MS_10, 408 MS_100, 408 MS_150, 408 MS_2, 408 MS_20, 408 MS_200, 408 MS_250, 408 MS_3, 408 MS_30, 408 MS_300, 408 MS_350, 409 MS_4, 409 MS_40, 409 MS_400, 409 MS_450, 409 MS_5, 409 MS_50, 409 MS_500, 409 MS_6, 409 MS_60, 409 MS_600, 410 MS_7, 410 MS_70, 410 MS_700, 410 MS_8, 410 MS_80, 410 MS_800, 410 MS_9, 410 MS_90, 410 MS_900, 410 SEC_1, 411 SEC_10, 411 SEC_15, 411 SEC_2, 411 SEC_20, 411 SEC_3, 411 SEC_30, 411 SEC_4, 411 SEC_5, 411 SEC_6, 411 SEC_7, 412
SEC_8, 412 SEC_9, 412 TIMES_UP CommandVMState, 415 NBCCommon.h, 777 Tone constants, 440 TONE_A3 NBCCommon.h, 777 ToneConstants, 441 TONE_A4 NBCCommon.h, 777 ToneConstants, 441 TONE_A5 NBCCommon.h, 777 ToneConstants, 442 TONE_A6 NBCCommon.h, 778 ToneConstants, 442 TONE_A7 NBCCommon.h, 778 ToneConstants, 442 TONE_AS3 NBCCommon.h, 778 ToneConstants, 442 TONE_AS4 NBCCommon.h, 778 ToneConstants, 442 TONE_AS5 NBCCommon.h, 778 ToneConstants, 442 TONE_AS6 NBCCommon.h, 778 ToneConstants, 442 TONE_AS7 NBCCommon.h, 778 ToneConstants, 442 TONE_B3 NBCCommon.h, 778 ToneConstants, 442 TONE_B4 NBCCommon.h, 778 ToneConstants, 442 TONE_B5 NBCCommon.h, 778 ToneConstants, 443 TONE_B6
INDEX
891
NBCCommon.h, 779 ToneConstants, 443 TONE_B7 NBCCommon.h, 779 ToneConstants, 443 TONE_C4 NBCCommon.h, 779 ToneConstants, 443 TONE_C5 NBCCommon.h, 779 ToneConstants, 443 TONE_C6 NBCCommon.h, 779 ToneConstants, 443 TONE_C7 NBCCommon.h, 779 ToneConstants, 443 TONE_CS4 NBCCommon.h, 779 ToneConstants, 443 TONE_CS5 NBCCommon.h, 779 ToneConstants, 443 TONE_CS6 NBCCommon.h, 779 ToneConstants, 443 TONE_CS7 NBCCommon.h, 779 ToneConstants, 444 TONE_D4 NBCCommon.h, 780 ToneConstants, 444 TONE_D5 NBCCommon.h, 780 ToneConstants, 444 TONE_D6 NBCCommon.h, 780 ToneConstants, 444 TONE_D7 NBCCommon.h, 780 ToneConstants, 444 TONE_DS4 NBCCommon.h, 780 ToneConstants, 444 TONE_DS5 NBCCommon.h, 780
ToneConstants, 444 TONE_DS6 NBCCommon.h, 780 ToneConstants, 444 TONE_DS7 NBCCommon.h, 780 ToneConstants, 444 TONE_E4 NBCCommon.h, 780 ToneConstants, 444 TONE_E5 NBCCommon.h, 780 ToneConstants, 445 TONE_E6 NBCCommon.h, 781 ToneConstants, 445 TONE_E7 NBCCommon.h, 781 ToneConstants, 445 TONE_F4 NBCCommon.h, 781 ToneConstants, 445 TONE_F5 NBCCommon.h, 781 ToneConstants, 445 TONE_F6 NBCCommon.h, 781 ToneConstants, 445 TONE_F7 NBCCommon.h, 781 ToneConstants, 445 TONE_FS4 NBCCommon.h, 781 ToneConstants, 445 TONE_FS5 NBCCommon.h, 781 ToneConstants, 445 TONE_FS6 NBCCommon.h, 781 ToneConstants, 445 TONE_FS7 NBCCommon.h, 781 ToneConstants, 446 TONE_G4 NBCCommon.h, 782 ToneConstants, 446
INDEX
892
TONE_G5 NBCCommon.h, 782 ToneConstants, 446 TONE_G6 NBCCommon.h, 782 ToneConstants, 446 TONE_G7 NBCCommon.h, 782 ToneConstants, 446 TONE_GS4 NBCCommon.h, 782 ToneConstants, 446 TONE_GS5 NBCCommon.h, 782 ToneConstants, 446 TONE_GS6 NBCCommon.h, 782 ToneConstants, 446 TONE_GS7 NBCCommon.h, 782 ToneConstants, 446 ToneConstants TONE_A3, 441 TONE_A4, 441 TONE_A5, 442 TONE_A6, 442 TONE_A7, 442 TONE_AS3, 442 TONE_AS4, 442 TONE_AS5, 442 TONE_AS6, 442 TONE_AS7, 442 TONE_B3, 442 TONE_B4, 442 TONE_B5, 443 TONE_B6, 443 TONE_B7, 443 TONE_C4, 443 TONE_C5, 443 TONE_C6, 443 TONE_C7, 443 TONE_CS4, 443 TONE_CS5, 443 TONE_CS6, 443 TONE_CS7, 444 TONE_D4, 444
TONE_D5, 444 TONE_D6, 444 TONE_D7, 444 TONE_DS4, 444 TONE_DS5, 444 TONE_DS6, 444 TONE_DS7, 444 TONE_E4, 444 TONE_E5, 445 TONE_E6, 445 TONE_E7, 445 TONE_F4, 445 TONE_F5, 445 TONE_F6, 445 TONE_F7, 445 TONE_FS4, 445 TONE_FS5, 445 TONE_FS6, 445 TONE_FS7, 446 TONE_G4, 446 TONE_G5, 446 TONE_G6, 446 TONE_G7, 446 TONE_GS4, 446 TONE_GS5, 446 TONE_GS6, 446 TONE_GS7, 446 TOPLINE DisplayModuleConstants, 512 NBCCommon.h, 782 TRAIN_CHANNEL_1 IRTrainChannels, 589 NBCCommon.h, 782 TRAIN_CHANNEL_2 IRTrainChannels, 589 NBCCommon.h, 783 TRAIN_CHANNEL_3 IRTrainChannels, 589 NBCCommon.h, 783 TRAIN_CHANNEL_ALL IRTrainChannels, 589 NBCCommon.h, 783 TRAIN_FUNC_DECR_SPEED IRTrainFuncs, 588 NBCCommon.h, 783 TRAIN_FUNC_INCR_SPEED
INDEX
893
IRTrainFuncs, 588 NBCCommon.h, 783 TRAIN_FUNC_STOP IRTrainFuncs, 588 NBCCommon.h, 783 TRAIN_FUNC_TOGGLE_LIGHT IRTrainFuncs, 588 NBCCommon.h, 783 TRUE MiscConstants, 216 NBCCommon.h, 783 TurnRatio NBCCommon.h, 783 OutputFieldConstants, 489 Type InputFieldConstants, 468 NBCCommon.h, 784 UCHAR_MAX NBCCommon.h, 784 NXTLimits, 612 UF_PENDING_UPDATES NBCCommon.h, 784 OutUFConstants, 478 UF_UPDATE_MODE NBCCommon.h, 784 OutUFConstants, 478 UF_UPDATE_PID_VALUES NBCCommon.h, 784 OutUFConstants, 478 UF_UPDATE_RESET_BLOCK_COUNT NBCCommon.h, 784 OutUFConstants, 479 UF_UPDATE_RESET_COUNT NBCCommon.h, 784 OutUFConstants, 479 UF_UPDATE_RESET_ROTATION_COUNT NBCCommon.h, 785 OutUFConstants, 479 UF_UPDATE_SPEED NBCCommon.h, 785 OutUFConstants, 479 UF_UPDATE_TACHO_LIMIT NBCCommon.h, 785
OutUFConstants, 479 Ui module, 85 Ui module constants, 451 Ui module functions, 329 Ui module IOMAP offsets, 459 UI_BT_CONNECT_REQUEST NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BT_ERROR_ATTENTION NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BT_PIN_REQUEST NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BT_STATE_CONNECTED NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BT_STATE_OFF NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BT_STATE_VISIBLE NBCCommon.h, 785 UiBluetoothStateConstants, 457 UI_BUTTON_ENTER NBCCommon.h, 785 UiButtonConstants, 456 UI_BUTTON_EXIT NBCCommon.h, 786 UiButtonConstants, 456 UI_BUTTON_LEFT NBCCommon.h, 786 UiButtonConstants, 456 UI_BUTTON_NONE NBCCommon.h, 786 UiButtonConstants, 456 UI_BUTTON_RIGHT NBCCommon.h, 786 UiButtonConstants, 456 UI_FLAGS_BUSY NBCCommon.h, 786 UiFlagsConstants, 452 UI_FLAGS_DISABLE_EXIT NBCCommon.h, 786 UiFlagsConstants, 452 UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER
INDEX
894
NBCCommon.h, 786 UiFlagsConstants, 452 UI_FLAGS_ENABLE_STATUS_UPDATE NBCCommon.h, 786 UiFlagsConstants, 452 UI_FLAGS_EXECUTE_LMS_FILE NBCCommon.h, 786 UiFlagsConstants, 453 UI_FLAGS_REDRAW_STATUS NBCCommon.h, 786 UiFlagsConstants, 453 UI_FLAGS_RESET_SLEEP_TIMER NBCCommon.h, 787 UiFlagsConstants, 453 UI_FLAGS_UPDATE NBCCommon.h, 787 UiFlagsConstants, 453 UI_STATE_BT_ERROR NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_CONNECT_REQUEST NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_DRAW_MENU NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_ENTER_PRESSED NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_EXECUTE_FILE NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_EXECUTING_FILE NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_EXIT_PRESSED NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_INIT_DISPLAY NBCCommon.h, 787 UiStateConstants, 454 UI_STATE_INIT_INTRO NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_INIT_LOW_BATTERY
NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_INIT_MENU NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_INIT_WAIT NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_LEFT_PRESSED NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_LOW_BATTERY NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_NEXT_MENU NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_RIGHT_PRESSED NBCCommon.h, 788 UiStateConstants, 455 UI_STATE_TEST_BUTTONS NBCCommon.h, 788 UiStateConstants, 455 UI_VM_IDLE NBCCommon.h, 788 UiVMRunStateConstants, 458 UI_VM_RESET1 NBCCommon.h, 789 UiVMRunStateConstants, 458 UI_VM_RESET2 NBCCommon.h, 789 UiVMRunStateConstants, 458 UI_VM_RUN_FREE NBCCommon.h, 789 UiVMRunStateConstants, 458 UI_VM_RUN_PAUSE NBCCommon.h, 789 UiVMRunStateConstants, 459 UI_VM_RUN_SINGLE NBCCommon.h, 789 UiVMRunStateConstants, 459 UiBluetoothStateConstants UI_BT_CONNECT_REQUEST, 457 UI_BT_ERROR_ATTENTION, 457 UI_BT_PIN_REQUEST, 457
INDEX
895
UI_BT_STATE_CONNECTED, 457 UI_BT_STATE_OFF, 457 UI_BT_STATE_VISIBLE, 457 UIButton constants, 456 UiButtonConstants UI_BUTTON_ENTER, 456 UI_BUTTON_EXIT, 456 UI_BUTTON_LEFT, 456 UI_BUTTON_NONE, 456 UI_BUTTON_RIGHT, 456 UiFlagsConstants UI_FLAGS_BUSY, 452 UI_FLAGS_DISABLE_EXIT, 452 UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER, 452 UI_FLAGS_ENABLE_STATUS_UPDATE, 452 UI_FLAGS_EXECUTE_LMS_FILE, 453 UI_FLAGS_REDRAW_STATUS, 453 UI_FLAGS_RESET_SLEEP_TIMER, 453 UI_FLAGS_UPDATE, 453 UiIOMAP UIOffsetAbortFlag, 460 UIOffsetBatteryState, 460 UIOffsetBatteryVoltage, 460 UIOffsetBluetoothState, 460 UIOffsetButton, 460 UIOffsetError, 460 UIOffsetFlags, 460 UIOffsetForceOff, 460 UIOffsetLMSlename, 460 UIOffsetOBPPointer, 460 UIOffsetPMenu, 461 UIOffsetRechargeable, 461 UIOffsetRunState, 461 UIOffsetSleepTimeout, 461 UIOffsetSleepTimer, 461 UIOffsetState, 461 UIOffsetUsbState, 461 UIOffsetVolume, 461 UiModuleFunctions ForceOff, 331 GetAbortFlag, 331
GetBatteryLevel, 332 GetBatteryState, 332 GetBluetoothState, 332 GetCommandFlags, 332 GetOnBrickProgramPointer, 333 GetRechargeableBattery, 333 GetSleepTimeout, 333 GetSleepTimer, 333 GetUIButton, 334 GetUIState, 334 GetUsbState, 334 GetVMRunState, 334 GetVolume, 335 SetAbortFlag, 335 SetBatteryState, 335 SetBluetoothState, 335 SetCommandFlags, 336 SetOnBrickProgramPointer, 336 SetSleepTimeout, 336 SetSleepTimer, 336 SetUIButton, 336 SetUIState, 337 SetUsbState, 337 SetVMRunState, 337 SetVolume, 337 UIModuleID ModuleIDConstants, 214 NBCCommon.h, 789 UIModuleName ModuleNameConstants, 213 NBCCommon.h, 789 UINT_MAX NBCCommon.h, 789 NXTLimits, 612 UIOffsetAbortFlag NBCCommon.h, 789 UiIOMAP, 460 UIOffsetBatteryState NBCCommon.h, 790 UiIOMAP, 460 UIOffsetBatteryVoltage NBCCommon.h, 790 UiIOMAP, 460 UIOffsetBluetoothState NBCCommon.h, 790 UiIOMAP, 460
INDEX
896
UIOffsetButton NBCCommon.h, 790 UiIOMAP, 460 UIOffsetError NBCCommon.h, 790 UiIOMAP, 460 UIOffsetFlags NBCCommon.h, 790 UiIOMAP, 460 UIOffsetForceOff NBCCommon.h, 790 UiIOMAP, 460 UIOffsetLMSlename NBCCommon.h, 790 UiIOMAP, 460 UIOffsetOBPPointer NBCCommon.h, 790 UiIOMAP, 460 UIOffsetPMenu NBCCommon.h, 790 UiIOMAP, 461 UIOffsetRechargeable NBCCommon.h, 791 UiIOMAP, 461 UIOffsetRunState NBCCommon.h, 791 UiIOMAP, 461 UIOffsetSleepTimeout NBCCommon.h, 791 UiIOMAP, 461 UIOffsetSleepTimer NBCCommon.h, 791 UiIOMAP, 461 UIOffsetState NBCCommon.h, 791 UiIOMAP, 461 UIOffsetUsbState NBCCommon.h, 791 UiIOMAP, 461 UIOffsetVolume NBCCommon.h, 791 UiIOMAP, 461 UIState constants, 453 UiStateConstants UI_STATE_BT_ERROR, 454
UI_STATE_CONNECT_REQUEST, 454 UI_STATE_DRAW_MENU, 454 UI_STATE_ENTER_PRESSED, 454 UI_STATE_EXECUTE_FILE, 454 UI_STATE_EXECUTING_FILE, 454 UI_STATE_EXIT_PRESSED, 454 UI_STATE_INIT_DISPLAY, 454 UI_STATE_INIT_INTRO, 455 UI_STATE_INIT_LOW_BATTERY, 455 UI_STATE_INIT_MENU, 455 UI_STATE_INIT_WAIT, 455 UI_STATE_LEFT_PRESSED, 455 UI_STATE_LOW_BATTERY, 455 UI_STATE_NEXT_MENU, 455 UI_STATE_RIGHT_PRESSED, 455 UI_STATE_TEST_BUTTONS, 455 UiVMRunStateConstants UI_VM_IDLE, 458 UI_VM_RESET1, 458 UI_VM_RESET2, 458 UI_VM_RUN_FREE, 458 UI_VM_RUN_PAUSE, 459 UI_VM_RUN_SINGLE, 459 ULONG_MAX NBCCommon.h, 791 NXTLimits, 612 Ultrasonic sensor constants, 502 UpdateCalibCacheInfo NBCCommon.h, 791 SysCallConstants, 404 UpdateFlags NBCCommon.h, 791 OutputFieldConstants, 490 US_CMD_CONTINUOUS NBCCommon.h, 792 USI2CConstants, 502 US_CMD_EVENTCAPTURE NBCCommon.h, 792 USI2CConstants, 502 US_CMD_OFF NBCCommon.h, 792 USI2CConstants, 502
INDEX
897
US_CMD_SINGLESHOT NBCCommon.h, 792 USI2CConstants, 502 US_CMD_WARMRESET NBCCommon.h, 792 USI2CConstants, 503 US_REG_ACTUAL_ZERO NBCCommon.h, 792 USI2CConstants, 503 US_REG_CM_INTERVAL NBCCommon.h, 792 USI2CConstants, 503 US_REG_FACTORY_ACTUAL_ZERO NBCCommon.h, 792 USI2CConstants, 503 US_REG_FACTORY_SCALE_DIVISOR NBCCommon.h, 792 USI2CConstants, 503 US_REG_FACTORY_SCALE_FACTOR NBCCommon.h, 793 USI2CConstants, 503 US_REG_MEASUREMENT_UNITS NBCCommon.h, 793 USI2CConstants, 503 US_REG_SCALE_DIVISOR NBCCommon.h, 793 USI2CConstants, 503 US_REG_SCALE_FACTOR NBCCommon.h, 793 USI2CConstants, 503 USB_CMD_READY CommStatusCodesConstants, 543 NBCCommon.h, 793 USB_PROTOCOL_OVERHEAD CommMiscConstants, 527 NBCCommon.h, 793 USHRT_MAX NBCCommon.h, 793 NXTLimits, 612 USI2CConstants US_CMD_CONTINUOUS, 502 US_CMD_EVENTCAPTURE, 502 US_CMD_OFF, 502 US_CMD_SINGLESHOT, 502 US_CMD_WARMRESET, 503
US_REG_ACTUAL_ZERO, 503 US_REG_CM_INTERVAL, 503 US_REG_FACTORY_ACTUAL_ZERO, 503 US_REG_FACTORY_SCALE_DIVISOR, 503 US_REG_FACTORY_SCALE_FACTOR, 503 US_REG_MEASUREMENT_UNITS, 503 US_REG_SCALE_DIVISOR, 503 US_REG_SCALE_FACTOR, 503 VM run state constants, 458 VM state constants, 414 Wait CommandModuleFunctions, 324 Write LoaderModuleFunctions, 391 WriteBytes LoaderModuleFunctions, 391 WriteBytesEx LoaderModuleFunctions, 391 WriteI2CRegister LowSpeedModuleFunctions, 271 WriteLn LoaderModuleFunctions, 392 WriteLnString LoaderModuleFunctions, 392 WriteNRLinkBytes MindSensorsAPI, 202 WriteNRLinkBytesEx MindSensorsAPI, 202 WriteSemData NBCCommon.h, 793 SysCallConstants, 404 WriteString LoaderModuleFunctions, 393