You are on page 1of 915

NBC

Version 1.2.1 r3 Generated by Doxygen 1.6.2


Tue Jun 29 02:01:18 2010

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 . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.4 3.5 3.6

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 . . . . . . . . . . . . . . . . . .

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

CONTENTS

ii

3.6.5 3.6.6 3.6.7 3.6.8 3.6.9

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 . . . . . . . . . . . . . . . . . . . . .

NXT Firmware Modules . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.3

Input module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.4

Input module constants . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1 4.4.2 Detailed Description . . . . . . . . . . . . . . . . . . . . . . Dene Documentation . . . . . . . . . . . . . . . . . . . . .

4.5

Sensor types and modes . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.6

Output module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.6.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.7

Output module constants . . . . . . . . . . . . . . . . . . . . . . . . 4.7.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.8

Command module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8.1 Detailed Description . . . . . . . . . . . . . . . . . . . . . .

4.9

Command module constants . . . . . . . . . . . . . . . . . . . . . .

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

CONTENTS

iii

4.9.1 4.9.2

Detailed Description . . . . . . . . . . . . . . . . . . . . . . Dene Documentation . . . . . . . . . . . . . . . . . . . . .

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 . . . . . . . . . . . . . . . . . . . . . . .

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

1 NBC Programmers Guide

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

NBCCommon.h File Reference . . . . . . . . . . . . . . . . . . . . . 5.2.1 5.2.2 Detailed Description . . . . . . . . . . . . . . . . . . . . . . Dene Documentation . . . . . . . . . . . . . . . . . . . . .

NBC Programmers Guide


June 28, 2010

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

2 Introduction

by John Hansen Introduction The NBC Language

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

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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! */

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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 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:

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

endt 3.2.1.1 endt

End thread A thread denition ends with the endt keyword.


thread main // thread body goes here 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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

A data segment also ends with the ends keyword.


dseg segment // data definitions go here dseg ends

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.2

Program Structure

11

thread dseg // dseg endt

main segment or here - still global, though ends

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Examples of scalar variable declarations are as follow:


dseg segment x byte y byte 12 z sword -2048 myVar big 0x12345 var1 dword 0xFF myMutex mutex bTrue byte 1 dseg ends // // // // // // // initialized to zero by default initialize to 12 a signed value use a type alias value is 255 mutexes ignore initialization, if present byte variables can be used as booleans

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

The ubyte type

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

The sbyte type

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.2

Program Structure

15

3.2.4.4.5

word

The word type

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

The uword type

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

sword The sword type

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

The dword type

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.2

Program Structure

16

a ulong b long c dword d udword e dd dseg ends

0xdeadbeef 80000 150000 200000 400000

3.2.4.4.10

udword

The udword type

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

The sdword type

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

long The long type

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.2

Program Structure

17

c dword 150000 d udword 200000 e dd 400000 dseg ends

3.2.4.4.14

ulong

The ulong type

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

The slong type

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

The oat type

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

The mutex type

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

#include "foo.h" // ok #include <foo.h> // error!

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

thread main ELEMENT_OUT(1) ELEMENT_OUT(2) wait SEC_2 endt

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.3

The Preprocessor

20

This is the same as writing


dseg b1 b2 dseg segment byte byte 1 ends

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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:

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.5

Expression Evaluator

22

Token __FILE__ __LINE__ __VER__ __THREADNAME__ __I__, __J__

__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:

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

23

+ /

% & | << >> () PI

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

The expression evaluator also supports the following compile-time functions:


tan(x), sin(x), cos(x) sinh(x), cosh(x) arctan(x), cotan(x) arg(x) exp(x), ln(x), log10(x), log2(x), logn(x, n) sqr(x), sqrt(x) trunc(x), int(x), ceil(x), floor(x), heav(x) abs(x), sign(x), zero(x), ph(x) rnd(x), random(x) max(x, y), min(x, y) power(x, exp), intpower(x, exp)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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 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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

cmp tst 3.6.5.1 cmp

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 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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

42

3.6.7.1

System call structures

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

The TFileOpen structure.

// 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

Possible Result values include Loader module error codes.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

45

3.6.7.1.4

TFileReadWrite

The TFileReadWrite structure.

// 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.

// FileClose TFileClose Result FileHandle TFileClose

struct word byte ends

// The function call result. // The file handle to close.

Possible Result values include Loader module error codes. 3.6.7.1.6 TFileResolveHandle The TFileResolveHandle structure.

// FileResolveHandle TFileResolveHandle Result FileHandle WriteHandle Filename dle. TFileResolveHandle

struct word byte byte byte[] ends

// // // //

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.

Possible Result values include Loader module error codes.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

46

3.6.7.1.8

TFileDelete The TFileDelete structure.

// FileDelete TFileDelete struct Result word Filename byte[] TFileDelete ends

// The function call result. // The name of the file to delete.

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

The TSoundPlayTone structure.

// 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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

47

3.6.7.1.12

TSoundSetState

The TSoundSetState structure.

// 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.

// DrawText TDrawText Result ucceeded. Location Text Options TDrawText

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.

// DrawPoint TDrawPoint Result ucceeded. Location Options TDrawPoint

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.

// DrawLine TDrawLine Result ucceeded. StartLoc EndLoc Options TDrawLine

struct sbyte // The function call result. NO_ERR means it s

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

See Drawing option constants for valid Options values.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

48

3.6.7.1.16

TDrawCircle

The TDrawCircle structure.

// DrawCircle TDrawCircle Result ucceeded. Center Size Options TDrawCircle

struct sbyte // The function call result. NO_ERR means it s

byte dword ends

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.

// DrawRect TDrawRect Result ucceeded. Location Size Options TDrawRect

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.

// DrawGraphic TDrawGraphic Result Location Filename Variables Options TDrawGraphic

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.

// SetScreenMode TSetScreenMode struct Result ScreenMode dword TSetScreenMode ends

sbyte

// The function call result, always NO_ERR. // The requested screen mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

TCommLSCheckStatus The TCommLSCheckStatus structure

// CommLSCheckStatus TCommLSCheckStatus Result Port byte BytesReady byte rt. TCommLSCheckStatus

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

// RandomNumber TRandomNumber struct Result TRandomNumber ends

sword

// The random number.

3.6.7.1.25

TGetStartTick The TGetStartTick structure

// GetStartTick TGetStartTick struct Result TGetStartTick ends

dword

// The returned tick value.

3.6.7.1.26

TMessageWrite The TMessageWrite structure

// 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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

// CommBTCheckStatus TCommBTCheckStatus Result Connection byte TCommBTCheckStatus

3.6.7.1.29

TCommBTWrite

The TCommBTWrite structure

// CommBTWrite TCommBTWrite struct Result Connection byte Buffer TCommBTWrite ends

sbyte byte[]

3.6.7.1.30

TCommBTRead
struct

The TCommBTRead structure

// CommBTRead TCommBTRead Result Count Buffer TCommBTRead

sbyte byte byte[] ends

3.6.7.1.31

TKeepAlive The TKeepAlive structure


struct dword ends

// KeepAlive TKeepAlive Result TKeepAlive

3.6.7.1.32

TIOMapRead The TIOMapRead structure


struct sbyte byte[] word word byte[] ends

// IOMapRead TIOMapRead Result ModuleName Offset Count Buffer TIOMapRead

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

52

3.6.7.1.33

TIOMapWrite

The TIOMapWrite structure

// IOMapWrite TIOMapWrite Result ModuleName Offset Buffer TIOMapWrite

struct sbyte byte[] word byte[] ends

3.6.7.1.34

TIOMapReadByID

The TIOMapReadByID structure

// IOMapReadByID TIOMapReadByID struct Result sbyte ModuleID long Offset word Count word Buffer byte[] TIOMapReadByID ends

3.6.7.1.35

TIOMapWriteByID

The TIOMapWriteByID structure

// IOMapWriteByID TIOMapWriteByID struct Result sbyte ModuleID long Offset word Buffer byte[] TIOMapWriteByID ends

3.6.7.1.36

TDisplayExecuteFunction The TDisplayExecuteFunction structure

// 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

The TCommExecuteFunction structure

// CommExecuteFunction TCommExecuteFunction struct Result word

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

53

Cmd byte Param1 byte Param2 byte Param3 byte Name byte[] RetVal word TCommExecuteFunction ends

3.6.7.1.38

TLoaderExecuteFunction The TLoaderExecuteFunction structure

// LoaderExecuteFunction TLoaderExecuteFunction struct Result word Cmd byte Filename byte[] Buffer byte[] Length long TLoaderExecuteFunction ends

3.6.7.1.39

TFileFind

The TFileFind structure

// FileFindFirst, FileFindNext TFileFind struct Result word FileHandle byte Filename byte[] Length dword TFileFind ends

3.6.7.1.40

TCommHSControl

The TCommHSControl structure

// CommHSControl TCommHSControl struct Result sbyte Command byte BaudRate byte Mode word TCommHSControl ends

3.6.7.1.41

TCommHSCheckStatus The TCommHSCheckStatus structure

// CommHSCheckStatus TCommHSCheckStatus struct SendingData byte DataAvailable byte TCommHSCheckStatus ends

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

54

3.6.7.1.42

TCommHSReadWrite The TCommHSReadWrite structure

// CommHSRead, CommHSWrite TCommHSReadWrite struct Status sbyte Buffer byte[] TCommHSReadWrite ends

3.6.7.1.43

TCommLSWriteEx

The TCommLSWriteEx structure

// CommLSWriteEx TCommLSWriteEx struct Result sbyte Port byte Buffer ReturnLen byte NoRestartOnRead byte TCommLSWriteEx ends

byte[]

3.6.7.1.44

TFileSeek

The TFileSeek structure

//FileSeek TFileSeek Result FileHandle Origin Length TFileSeek

struct word byte byte sdword ends

3.6.7.1.45

TFileResize
struct

The TFileResize structure

//FileResize TFileResize Result FileHandle NewSize TFileResize

word byte word ends

3.6.7.1.46

TDrawGraphicArray

The TDrawGraphicArray structure

// 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

See Drawing option constants for valid Options values.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

55

3.6.7.1.47

TDrawPolygon

The TDrawPolygon structure

// DrawPolygon TDrawPolygon struct Result sbyte Points TLocation[] Options dword TDrawPolygon ends

3.6.7.1.48

TDrawEllipse The TDrawEllipse structure


struct sbyte TLocation byte byte dword ends

// DrawEllipse TDrawEllipse Result Center SizeX SizeY Options TDrawEllipse

3.6.7.1.49

TDrawFont
struct

The TDrawFont structure

// DrawFont TDrawFont Result Location Filename Text Options TDrawFont

sbyte TLocation byte[] byte[] dword ends

3.6.7.1.50

TColorSensorRead Parameters for the ColorSensorRead system call.

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

The TDatalogWrite structure

// DatalogWrite TDatalogWrite struct Result sbyte Message byte[] TDatalogWrite ends

3.6.7.1.52

TDatalogGetTimes

The TDatalogGetTimes structure

// DatalogGetTimes TDatalogGetTimes SyncTime dword SyncTick dword TDatalogGetTimes

struct

ends

3.6.7.1.53

TSetSleepTimeout The TSetSleepTimeout structure


struct sbyte dword ends

// SetSleepTimeout TSetSleepTimeout Result TheSleepTimeoutMS TSetSleepTimeout

3.6.7.1.54

TCommBTOnOff

The TCommBTOnOff structure

// CommBTOnOff TCommBTOnOff struct Result PowerState byte TCommBTOnOff ends

word

3.6.7.1.55

TCommBTConnection

The TCommBTConnection structure

// CommBTConnection TCommBTConnection struct Result word Action byte Name byte[] ConnectionSlot byte TCommBTConnection ends

3.6.7.1.56

TReadSemData The TReadSemData structure

// ReadSemData TReadSemData struct SemData byte Request byte TReadSemData ends

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

57

3.6.7.1.57

TWriteSemData

The TWriteSemData structure

// WriteSemData TWriteSemData struct SemData byte Request byte NewVal byte ClearBits byte TWriteSemData ends

3.6.7.1.58

TUpdateCalibCacheInfo

The TUpdateCalibCacheInfo structure

// UpdateCalibCacheInfo TUpdateCalibCacheInfo struct Result byte Name byte[] MinVal word MaxVal word TUpdateCalibCacheInfo ends

3.6.7.1.59

TComputeCalibValue

The TComputeCalibValue structure

// ComputeCalibValue TComputeCalibValue struct Result byte Name byte[] RawVal word TComputeCalibValue ends

3.6.7.1.60

TListFiles The TListFiles structure

// ListFiles TListFiles Result Pattern FileList TListFiles

struct sbyte byte[] byte[][] ends

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

58

add endTick, currTick, waitms Loop: gettick currTick brcmp LT, Loop, currTick, endTick

wait waitv wait2 gettick 3.6.8.1 wait

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

gettick x // set x to the current system tick count

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

The arrop Statement

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

// acquire mutex for subroutine

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

3.6

Statements

70

compend compchktype 3.6.14.1 sizeof

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4 Module Documentation

72

// compile this if sizeof(arg3) != 2 compend

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

NXT Firmware Modules

73

4.1.2.3

#dene GTEQ 0x03 The rst value is greater than or equal to the second.

4.1.2.4

#dene LT 0x00 The rst value is less than the second.

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

NXT Firmware Modules

Documentation common to all NXT rmware modules. Modules Output module


Constants and functions related to the Output module.

Input module
Constants and functions related to the Input module.

Low Speed module


Constants and functions related to the Low Speed 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

Constants and functions related to the Button module.

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.

NXT rmware module names


Constant string names for all the NXT rmware modules.

NXT rmware module IDs


Constant numeric IDs for all the NXT rmware modules.

4.2.1

Detailed Description

Documentation common to all NXT rmware modules.

4.3

Input module

Constants and functions related to the Input module. Modules Input module functions
Functions for accessing and modifying input module features.

Input module constants


Constants that are part of the NXT rmwares Input module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.4

Input module constants

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

Input module constants

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.

Input eld constants


Constants for use with SetInput() and GetInput().

Color sensor array indices


Constants for use with color sensor value arrays to index RGB and blank return values.

Color values
Constants for use with the ColorValue returned by the color sensor in full color mode.

Color calibration state constants


Constants for use with the color calibration state function.

Color calibration constants


Constants for use with the color calibration functions.

Input module IOMAP offsets


Constant offsets into the Input module IOMAP structure.

Sensor types and modes


Constants that are used for dening sensor types and modes.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.4

Input module constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.5

Sensor types and modes

77

4.5

Sensor types and modes

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.

NBC sensor mode constants


Use sensor mode constants to congure an input port for the desired sensor mode.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

Output module constants


Constants that are part of the NXT rmwares Output module.

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

Output module constants

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.

Output port update ag constants


Use these constants to specify which motor values need to be updated.

Tachometer counter reset ags


Use these constants to specify which of the three tachometer counters should be reset.

Output port mode constants


Use these constants to congure the desired mode for the specied motor(s): coast, motoron, brake, or regulated.

Output port option constants


Use these constants to congure the desired options for the specied motor(s): hold at limit and ramp down to limit.

Output port run state constants


Use these constants to congure the desired run state for the specied motor(s): idle, rampup, running, rampdown, or hold.

Output port regulation mode constants


Use these constants to congure the desired regulation mode for the specied motor(s): none, speed regulation, or multi-motor synchronization.

Output eld constants


Constants for use with SetOutput() and GetOutput().

Output module IOMAP offsets


Constant offsets into the Output module IOMAP structure.

4.7.1

Detailed Description

Constants that are part of the NXT rmwares Output module.

4.8

Command module

Constants and functions related to the Command module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.9

Command module constants

80

Modules Command module functions


Functions for accessing and modifying Command module features.

Command module constants


Constants that are part of the NXT rmwares Command module.

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

Command module constants

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.

System Call function constants


Constants for use in the SysCall() function or NBC syscall 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.

Communications specic errors


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.10

Comm module

81

Constants dening communication error conditions.

Remote control (direct commands) errors


Constants dening errors that can occur during remote control (RC) direct command operations.

Program status constants


Constants dening various states of the command module virtual machine.

Command module IOMAP offsets


Constant offsets into the Command module IOMAP structure.

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

Constants and functions related to the Comm module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.11

Button module

82

Modules Comm module functions


Functions for accessing and modifying Comm module features.

Comm module constants


Constants that are part of the NXT rmwares Comm module.

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

Constants and functions related to the Button module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.12

IOCtrl module

83

Modules Button module functions


Functions for accessing and modifying Button module features.

Button module constants


Constants that are part of the NXT rmwares Button module.

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.

IOCtrl module constants


Constants that are part of the NXT rmwares IOCtrl module.

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.14

Sound module

84

Functions for accessing and modifying Loader module features.

Loader module constants


Constants that are part of the NXT rmwares Loader module.

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.

Sound module constants


Constants that are part of the NXT rmwares Sound module.

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

Constants and functions related to the Ui module. Modules Ui module functions


Functions for accessing and modifying Ui module features.

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

Low Speed module

Constants and functions related to the Low Speed module. Modules LowSpeed module functions
Functions for accessing and modifying low speed module features.

LowSpeed module constants

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.16

Low Speed module

86

Constants that are part of the NXT rmwares LowSpeed module.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

Display module constants


Constants that are part of the NXT rmwares Display module.

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

HiTechnic API Functions

Functions for accessing and modifying HiTechnic devices. Modules HiTechnic device constants
Constants that are for use with HiTechnic devices.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

88

Denes #dene SetSensorHTGyro(_port) __SetSensorHTGyro(_port)


Set sensor as HiTechnic Gyro.

#dene ReadSensorHTGyro(_p, _offset, _val) __ReadSensorHTGyro(_p, _offset, _val)


Read HiTechnic Gyro sensor.

#dene SetSensorHTEOPD(_port, _bStd) __SetSensorHTEOPD(_port, _bStd)


Set sensor as HiTechnic EOPD.

#dene ReadSensorHTEOPD(_port, _val) __ReadSensorHTEOPD(_port, _val)


Read HiTechnic EOPD sensor.

#dene ReadSensorHTTouchMultiplexer(_p, _t1, _t2, ReadSensorHTTouchMultiplexer(_p, _t1, _t2, _t3, _t4)


Read HiTechnic touch multiplexer.

_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.

#dene HTPFRepeat(_port, _count, _delay, HTPFRepeatLastCommand(_port, _count, _delay, _result)

_result)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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.

#dene HTRCXSetIRLinkPort(_port) __HTRCXSetIRLinkPort(_port)


HTRCXSetIRLinkPort function.

#dene HTRCXBatteryLevel(_result) __HTRCXBatteryLevel(_result)


HTRCXBatteryLevel function.

#dene HTRCXPoll(_src, _value, _result) __HTRCXPoll(_src, _value, _result)


HTRCXPoll function Send the Poll command to an RCX to read a signed 2-byte value at the specied source and value combination.

#dene HTRCXPollMemory(_address, address, _result)


HTRCXPollMemory function.

_result) __HTRCXPollMemory(_-

#dene HTRCXAddToDatalog(_src, _value) __HTRCXAddToDatalog(_src, _value)


HTRCXAddToDatalog function.

#dene HTRCXClearAllEvents() ClearAllEventsOp)


HTRCXClearAllEvents function.

__HTRCXOpNoArgs(RCX_-

#dene HTRCXClearCounter(_counter) __HTRCXClearCounter(_counter)


HTRCXClearCounter function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

90

#dene HTRCXClearMsg() __HTRCXOpNoArgs(RCX_ClearMsgOp)


HTRCXClearMsg function.

#dene HTRCXClearSensor(_port) __HTRCXClearSensor(_port)


HTRCXClearSensor function.

#dene HTRCXClearSound() __HTRCXOpNoArgs(RCX_ClearSoundOp)


HTRCXClearSound function.

#dene HTRCXClearTimer(_timer) __HTRCXClearTimer(_timer)


HTRCXClearTimer function.

#dene HTRCXCreateDatalog(_size) __HTRCXCreateDatalog(_size)


HTRCXCreateDatalog function.

#dene HTRCXDecCounter(_counter) __HTRCXDecCounter(_counter)


HTRCXDecCounter function.

#dene HTRCXDeleteSub(_s) __HTRCXDeleteSub(_s)


HTRCXDeleteSub function.

#dene HTRCXDeleteSubs() __HTRCXOpNoArgs(RCX_DeleteSubsOp)


HTRCXDeleteSubs function.

#dene HTRCXDeleteTask(_t) __HTRCXDeleteTask(_t)


HTRCXDeleteTask function.

#dene HTRCXDeleteTasks() __HTRCXOpNoArgs(RCX_DeleteTasksOp)


HTRCXDeleteTasks function.

#dene HTRCXDisableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_OFF)


HTRCXDisableOutput function.

#dene HTRCXEnableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_ON)


HTRCXEnableOutput function.

#dene HTRCXEvent(_src, _value) __HTRCXEvent(_src, _value)


HTRCXEvent function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

91

#dene HTRCXFloat(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_FLOAT)


HTRCXFloat function.

#dene HTRCXFwd(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_FWD)


HTRCXFwd function.

#dene HTRCXIncCounter(_counter) __HTRCXIncCounter(_counter)


HTRCXIncCounter function.

#dene HTRCXInvertOutput(_outputs) outputs, RCX_OUT_REV)


HTRCXInvertOutput function.

__HTRCXSetGlobalDirection(_-

#dene HTRCXMuteSound() __HTRCXOpNoArgs(RCX_MuteSoundOp)


HTRCXMuteSound function.

#dene HTRCXObvertOutput(_outputs) outputs, RCX_OUT_FWD)


HTRCXObvertOutput function.

__HTRCXSetGlobalDirection(_-

#dene HTRCXOff(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_OFF)


HTRCXOff function.

#dene HTRCXOn(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_ON)


HTRCXOn function.

#dene HTRCXOnFor(_outputs, _ms) __HTRCXOnFor(_outputs, _ms)


HTRCXOnFor function.

#dene HTRCXOnFwd(_outputs) __HTRCXOnFwd(_outputs)


HTRCXOnFwd function.

#dene HTRCXOnRev(_outputs) __HTRCXOnRev(_outputs)


HTRCXOnRev function.

#dene HTRCXPBTurnOff() __HTRCXOpNoArgs(RCX_PBTurnOffOp)


HTRCXPBTurnOff function.

#dene HTRCXPing() __HTRCXOpNoArgs(RCX_PingOp)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

92

HTRCXPing function.

#dene HTRCXPlaySound(_snd) __HTRCXPlaySound(_snd)


HTRCXPlaySound function.

#dene HTRCXPlayTone(_freq, _duration) __HTRCXPlayTone(_freq, _duration)


HTRCXPlayTone function.

#dene HTRCXPlayToneVar(_varnum, _duration) __HTRCXPlayToneVar(_varnum, _duration)


HTRCXPlayToneVar function.

#dene HTRCXRemote(_cmd) __HTRCXRemote(_cmd)


HTRCXRemote function.

#dene HTRCXRev(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_REV)


HTRCXRev function.

#dene HTRCXSelectDisplay(_src, _value) __HTRCXSelectDisplay(_src, _value)


HTRCXSelectDisplay function.

#dene HTRCXSelectProgram(_prog) __HTRCXSelectProgram(_prog)


HTRCXSelectProgram function.

#dene HTRCXSendSerial(_rst, _count) __HTRCXSendSerial(_rst, _count)


HTRCXSendSerial function.

#dene HTRCXSetDirection(_outputs, _dir) __HTRCXSetDirection(_outputs, _dir)


HTRCXSetDirection function.

#dene HTRCXSetEvent(_evt, _src, _type) __HTRCXSetEvent(_evt, _src, _type)


HTRCXSetEvent function.

#dene HTRCXSetGlobalDirection(_outputs, HTRCXSetGlobalDirection(_outputs, _dir)


HTRCXSetGlobalDirection function.

_dir)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

93

#dene HTRCXSetGlobalOutput(_outputs, HTRCXSetGlobalOutput(_outputs, _mode)


HTRCXSetGlobalOutput function.

_mode)

__-

#dene HTRCXSetMaxPower(_outputs, _pwrsrc, HTRCXSetMaxPower(_outputs, _pwrsrc, _pwrval)


HTRCXSetMaxPower function.

_pwrval)

__-

#dene HTRCXSetMessage(_msg) __HTRCXSetMessage(_msg)


HTRCXSetMessage function.

#dene HTRCXSetOutput(_outputs, _mode) __HTRCXSetOutput(_outputs, _mode)


HTRCXSetOutput function.

#dene HTRCXSetPower(_outputs, _pwrsrc, _pwrval) __HTRCXSetPower(_outputs, _pwrsrc, _pwrval)


HTRCXSetPower function.

#dene HTRCXSetPriority(_p) __HTRCXSetPriority(_p)


HTRCXSetPriority function.

#dene HTRCXSetSensorMode(_port, _mode) __HTRCXSetSensorMode(_port, _mode)


HTRCXSetSensorMode function.

#dene HTRCXSetSensorType(_port, _type) __HTRCXSetSensorType(_port, _type)


HTRCXSetSensorType function.

#dene HTRCXSetSleepTime(_t) __HTRCXSetSleepTime(_t)


HTRCXSetSleepTime function.

#dene HTRCXSetTxPower(_pwr) __HTRCXSetTxPower(_pwr)


HTRCXSetTxPower function.

#dene HTRCXSetWatch(_hours, _minutes) __HTRCXSetWatch(_hours, _minutes)


HTRCXSetWatch function.

#dene HTRCXStartTask(_t) __HTRCXStartTask(_t)


HTRCXStartTask function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

94

#dene HTRCXStopAllTasks() StopAllTasksOp)


HTRCXStopAllTasks function.

__HTRCXOpNoArgs(RCX_-

#dene HTRCXStopTask(_t) __HTRCXStopTask(_t)


HTRCXStopTask function.

#dene HTRCXToggle(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_TOGGLE)


HTRCXToggle function.

#dene HTRCXUnmuteSound() UnmuteSoundOp)


HTRCXUnmuteSound function.

__HTRCXOpNoArgs(RCX_-

#dene HTScoutCalibrateSensor() LSCalibrateOp)


HTScoutCalibrateSensor function.

__HTRCXOpNoArgs(RCX_-

#dene HTScoutMuteSound() __HTScoutMuteSound()


HTScoutMuteSound function.

#dene HTScoutSelectSounds(_grp) __HTScoutSelectSounds(_grp)


HTScoutSelectSounds function.

#dene HTScoutSendVLL(_src, _value) __HTScoutSendVLL(_src, _value)


HTScoutSendVLL function.

#dene HTScoutSetEventFeedback(_src, HTScoutSetEventFeedback(_src, _value)


HTScoutSetEventFeedback function.

_value)

__-

#dene HTScoutSetLight(_x) __HTScoutSetLight(_x)


HTScoutSetLight function.

#dene HTScoutSetScoutMode(_mode) __HTScoutSetScoutMode(_mode)


HTScoutSetScoutMode function.

#dene HTScoutSetSensorClickTime(_src, HTScoutSetSensorClickTime(_src, _value)


HTScoutSetSensorClickTime function.

_value)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

95

#dene HTScoutSetSensorHysteresis(_src, HTScoutSetSensorHysteresis(_src, _value)


HTScoutSetSensorHysteresis function.

_value)

__-

#dene HTScoutSetSensorLowerLimit(_src, HTScoutSetSensorLowerLimit(_src, _value)


HTScoutSetSensorLowerLimit function.

_value)

__-

#dene HTScoutSetSensorUpperLimit(_src, HTScoutSetSensorUpperLimit(_src, _value)


HTScoutSetSensorUpperLimit function.

_value)

__-

#dene HTScoutUnmuteSound() __HTScoutUnmuteSound()


HTScoutUnmuteSound function.

#dene ReadSensorHTCompass(_port, _value) __ReadSensorHTCompass(_port, _value)


Read HiTechnic compass.

#dene ReadSensorHTColorNum(_port, ReadSensorHTColorNum(_port, _value)


Read HiTechnic color sensor color number.

_value)

__-

#dene ReadSensorHTIRSeekerDir(_port, ReadSensorHTIRSeekerDir(_port, _value)


Read HiTechnic IRSeeker direction.

_value)

__-

#dene ReadSensorHTIRSeeker2Addr(_port, _addr, ReadSensorHTIRSeeker2Addr(_port, _addr, _value)


Read HiTechnic IRSeeker2 register.

_value)

__-

#dene ReadSensorHTAccel(_port, _x, ReadSensorHTAccel(_port, _x, _y, _z, _result)


Read HiTechnic acceleration values.

_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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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.

#dene SetHTIRSeeker2Mode(_port, SetHTIRSeeker2Mode(_port, _mode, _result)


Set HiTechnic IRSeeker2 mode.

_mode,

_result)

__-

#dene SetHTColor2Mode(_port, _mode, _result) __SetHTColor2Mode(_port, _mode, _result)


Set HiTechnic Color2 mode.

#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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

97

#dene ReadSensorHTIRReceiver(_port, _pfdata, ReadSensorHTIRReceiver(_port, _pfdata, _result)


Read HiTechnic IRReceiver Power Function bytes.

_result)

__-

#dene ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, _result)


Read HiTechnic IRReceiver Power Function value.

_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

HiTechnic API Functions

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

HiTechnic API Functions

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

#dene HTPFRepeat(_port, _count, _delay, _result) __HTPFRepeatLastCommand(_port, _count, _delay, _result)

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

HiTechnic API Functions

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

HiTechnic API Functions

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

HiTechnic API Functions

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

#dene HTRCXAddToDatalog(_src, _value) __HTRCXAddToDatalog(_src, _value)

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

#dene HTRCXBatteryLevel(_result) __HTRCXBatteryLevel(_result)

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

#dene HTRCXClearAllEvents() __HTRCXOpNoArgs(RCX_ClearAllEventsOp)

HTRCXClearAllEvents function. Send the ClearAllEvents command to an RCX.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

103

4.18.2.14

#dene HTRCXClearCounter(_counter) __HTRCXClearCounter(_counter)

HTRCXClearCounter function. Send the ClearCounter command to an RCX. Parameters: _counter The counter to clear.

4.18.2.15

#dene HTRCXClearMsg() __HTRCXOpNoArgs(RCX_ClearMsgOp)

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

#dene HTRCXClearSound() __HTRCXOpNoArgs(RCX_ClearSoundOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

104

4.18.2.19

#dene HTRCXCreateDatalog(_size) __HTRCXCreateDatalog(_size)

HTRCXCreateDatalog function. Send the CreateDatalog command to an RCX. Parameters: _size The new datalog size.

4.18.2.20

#dene HTRCXDecCounter(_counter) __HTRCXDecCounter(_counter)

HTRCXDecCounter function. Send the DecCounter command to an RCX. Parameters: _counter The counter to decrement.

4.18.2.21

#dene HTRCXDeleteSub(_s) __HTRCXDeleteSub(_s)

HTRCXDeleteSub function. Send the DeleteSub command to an RCX. Parameters: _s The subroutine number to delete.

4.18.2.22

#dene HTRCXDeleteSubs() __HTRCXOpNoArgs(RCX_DeleteSubsOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

105

4.18.2.24

#dene HTRCXDeleteTasks() __HTRCXOpNoArgs(RCX_DeleteTasksOp)

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

#dene HTRCXEnableOutput(_outputs) __HTRCXSetGlobalOutput(_outputs, RCX_OUT_ON)

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

#dene HTRCXEvent(_src, _value) __HTRCXEvent(_src, _value)

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

#dene HTRCXFloat(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_FLOAT)

HTRCXFloat function. Send commands to an RCX to oat the specied outputs.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

106

Parameters: _outputs The RCX output(s) to oat. See RCX output constants.

4.18.2.29

#dene HTRCXFwd(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_FWD)

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

#dene HTRCXIncCounter(_counter) __HTRCXIncCounter(_counter)

HTRCXIncCounter function. Send the IncCounter command to an RCX. Parameters: _counter The counter to increment.

4.18.2.31

#dene HTRCXInvertOutput(_outputs) __HTRCXSetGlobalDirection(_outputs, RCX_OUT_REV)

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

#dene HTRCXMuteSound() __HTRCXOpNoArgs(RCX_MuteSoundOp)

HTRCXMuteSound function. Send the MuteSound command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

107

4.18.2.33

#dene HTRCXObvertOutput(_outputs) __HTRCXSetGlobalDirection(_outputs, RCX_OUT_FWD)

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

#dene HTRCXOff(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_OFF)

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

#dene HTRCXOn(_outputs) __HTRCXSetOutput(_outputs, RCX_OUT_ON)

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

#dene HTRCXOnFor(_outputs, _ms) __HTRCXOnFor(_outputs, _ms)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

108

4.18.2.37

#dene HTRCXOnFwd(_outputs) __HTRCXOnFwd(_outputs)

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

#dene HTRCXOnRev(_outputs) __HTRCXOnRev(_outputs)

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

#dene HTRCXPBTurnOff() __HTRCXOpNoArgs(RCX_PBTurnOffOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

109

4.18.2.42

#dene HTRCXPlayTone(_freq, _duration) __HTRCXPlayTone(_freq, _duration)

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

#dene HTRCXPlayToneVar(_varnum, _duration) __HTRCXPlayToneVar(_varnum, _duration)

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

#dene HTRCXPoll(_src, _value, _result) __HTRCXPoll(_src, _value, _result)

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

#dene HTRCXPollMemory(_address, _result) __HTRCXPollMemory(_address, _result)

HTRCXPollMemory function. Send the PollMemory command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

110

Parameters: _address The RCX memory address. _result The value read from the specied address.

4.18.2.46

#dene HTRCXRemote(_cmd) __HTRCXRemote(_cmd)

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

#dene HTRCXRev(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_REV)

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

#dene HTRCXSelectDisplay(_src, _value) __HTRCXSelectDisplay(_src, _value)

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

#dene HTRCXSelectProgram(_prog) __HTRCXSelectProgram(_prog)

HTRCXSelectProgram function. Send the SelectProgram command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

111

Parameters: _prog The program number to select.

4.18.2.50

#dene HTRCXSendSerial(_rst, _count) __HTRCXSendSerial(_rst, _count)

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

#dene HTRCXSetDirection(_outputs, _dir) __HTRCXSetDirection(_outputs, _dir)

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

#dene HTRCXSetEvent(_evt, _src, _type) __HTRCXSetEvent(_evt, _src, _type)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

112

4.18.2.53

#dene HTRCXSetGlobalDirection(_outputs, _dir) __HTRCXSetGlobalDirection(_outputs, _dir)

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

#dene HTRCXSetGlobalOutput(_outputs, _mode) __HTRCXSetGlobalOutput(_outputs, _mode)

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

#dene HTRCXSetIRLinkPort(_port) __HTRCXSetIRLinkPort(_port)

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

#dene HTRCXSetMaxPower(_outputs, _pwrsrc, _pwrval) __HTRCXSetMaxPower(_outputs, _pwrsrc, _pwrval)

HTRCXSetMaxPower function. Send the SetMaxPower command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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

#dene HTRCXSetMessage(_msg) __HTRCXSetMessage(_msg)

HTRCXSetMessage function. Send the SetMessage command to an RCX. Parameters: _msg The numeric message to send.

4.18.2.58

#dene HTRCXSetOutput(_outputs, _mode) __HTRCXSetOutput(_outputs, _mode)

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

#dene HTRCXSetPower(_outputs, _pwrsrc, _pwrval) __HTRCXSetPower(_outputs, _pwrsrc, _pwrval)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

114

4.18.2.60

#dene HTRCXSetPriority(_p) __HTRCXSetPriority(_p)

HTRCXSetPriority function. Send the SetPriority command to an RCX. Parameters: _p The new task priority.

4.18.2.61

#dene HTRCXSetSensorMode(_port, _mode) __HTRCXSetSensorMode(_port, _mode)

HTRCXSetSensorMode function. Send the SetSensorMode command to an RCX. Parameters: _port The RCX sensor port. _mode The RCX sensor mode.

4.18.2.62

#dene HTRCXSetSensorType(_port, _type) __HTRCXSetSensorType(_port, _type)

HTRCXSetSensorType function. Send the SetSensorType command to an RCX. Parameters: _port The RCX sensor port. _type The RCX sensor type.

4.18.2.63

#dene HTRCXSetSleepTime(_t) __HTRCXSetSleepTime(_t)

HTRCXSetSleepTime function. Send the SetSleepTime command to an RCX. Parameters: _t The new sleep time value.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

115

4.18.2.64

#dene HTRCXSetTxPower(_pwr) __HTRCXSetTxPower(_pwr)

HTRCXSetTxPower function. Send the SetTxPower command to an RCX. Parameters: _pwr The IR transmit power level.

4.18.2.65

#dene HTRCXSetWatch(_hours, _minutes) __HTRCXSetWatch(_hours, _minutes)

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

#dene HTRCXStartTask(_t) __HTRCXStartTask(_t)

HTRCXStartTask function. Send the StartTask command to an RCX. Parameters: _t The task number to start.

4.18.2.67

#dene HTRCXStopAllTasks() __HTRCXOpNoArgs(RCX_StopAllTasksOp)

HTRCXStopAllTasks function. Send the StopAllTasks command to an RCX. 4.18.2.68 #dene HTRCXStopTask(_t) __HTRCXStopTask(_t)

HTRCXStopTask function. Send the StopTask command to an RCX.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

116

Parameters: _t The task number to stop.

4.18.2.69

#dene HTRCXToggle(_outputs) __HTRCXSetDirection(_outputs, RCX_OUT_TOGGLE)

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

#dene HTRCXUnmuteSound() __HTRCXOpNoArgs(RCX_UnmuteSoundOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

117

4.18.2.74

#dene HTScoutSendVLL(_src, _value) __HTScoutSendVLL(_src, _value)

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

#dene HTScoutSetEventFeedback(_src, _value) __HTScoutSetEventFeedback(_src, _value)

HTScoutSetEventFeedback function. Scout. Parameters:

Send the SetEventFeedback command to a

_src The Scout source. See RCX and Scout source constants. _value The Scout value.

4.18.2.76

#dene HTScoutSetLight(_x) __HTScoutSetLight(_x)

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

#dene HTScoutSetScoutMode(_mode) __HTScoutSetScoutMode(_mode)

HTScoutSetScoutMode function. Send the SetScoutMode command to a Scout. Parameters: _mode Set the scout mode. See Scout mode constants.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

118

4.18.2.78

#dene HTScoutSetSensorClickTime(_src, _value) __HTScoutSetSensorClickTime(_src, _value)

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

#dene HTScoutSetSensorHysteresis(_src, _value) __HTScoutSetSensorHysteresis(_src, _value)

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

#dene HTScoutSetSensorLowerLimit(_src, _value) __HTScoutSetSensorLowerLimit(_src, _value)

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

#dene HTScoutSetSensorUpperLimit(_src, _value) __HTScoutSetSensorUpperLimit(_src, _value)

HTScoutSetSensorUpperLimit function. Send the SetSensorUpperLimit command to a Scout.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

119

Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.

4.18.2.82

#dene HTScoutUnmuteSound() __HTScoutUnmuteSound()

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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

#dene ReadSensorHTColorNum(_port, _value) __ReadSensorHTColorNum(_port, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

121

4.18.2.87

#dene ReadSensorHTCompass(_port, _value) __ReadSensorHTCompass(_port, _value)

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

#dene ReadSensorHTEOPD(_port, _val) __ReadSensorHTEOPD(_port, _val)

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

#dene ReadSensorHTGyro(_p, _offset, _val) __ReadSensorHTGyro(_p, _offset, _val)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

122

4.18.2.90

#dene ReadSensorHTIRReceiver(_port, _pfdata, _result) __ReadSensorHTIRReceiver(_port, _pfdata, _result)

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

#dene ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, _result) __ReadSensorHTIRReceiverEx(_port, _reg, _pfchar, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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

#dene ReadSensorHTIRSeeker2Addr(_port, _addr, _value) __ReadSensorHTIRSeeker2Addr(_port, _addr, _value)

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

HiTechnic API Functions

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

#dene ReadSensorHTIRSeekerDir(_port, _value) __ReadSensorHTIRSeekerDir(_port, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.18

HiTechnic API Functions

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

#dene SetHTColor2Mode(_port, _mode, _result) __SetHTColor2Mode(_port, _mode, _result)

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

#dene SetHTIRSeeker2Mode(_port, _mode, _result) __SetHTIRSeeker2Mode(_port, _mode, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

128

4.18.2.104

#dene SetSensorHTEOPD(_port, _bStd) __SetSensorHTEOPD(_port, _bStd)

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

#dene SetSensorHTGyro(_port) __SetSensorHTGyro(_port)

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

MindSensors API Functions

Functions for accessing and modifying MindSensors devices. Modules MindSensors device constants
Constants that are for use with MindSensors devices.

Denes #dene ReadSensorMSCompass(_port, ReadSensorMSCompassEx(_port, 0x02, _value)


Read mindsensors compass value.

_value)

__-

#dene ReadSensorMSCompassEx(_port, ReadSensorMSCompassEx(_port, _addr, _value)


Read mindsensors compass value.

_addr,

_value)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

129

#dene ReadSensorMSDROD(_port, _value) __ReadSensorMSDROD(_port, _value)


Read mindsensors DROD value.

#dene port)

SetSensorMSDRODActive(_port)

__SetSensorMSDRODActive(_-

Congure a mindsensors DROD active sensor.

#dene SetSensorMSDRODInactive(_port) __SetSensorMSDRODInactive(_port)


Congure a mindsensors DROD inactive sensor.

#dene ReadSensorMSPressureRaw(_port, ReadSensorMSPressureRaw(_port, _value)


Read mindsensors raw pressure value.

_value)

__-

#dene ReadSensorMSPressure(_port, _value) __ReadSensorMSPressure(_port, _value)


Read mindsensors processed pressure value.

#dene SetSensorMSPressure(_port) __SetSensorMSPressure(_port)


Congure a mindsensors pressure sensor.

#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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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.

#dene MSEnergize(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ENERGIZED, _result)


Turn on power to device.

#dene MSEnergizeEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ENERGIZED, _result)


Turn on power to device.

#dene MSDeenergize(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_DEENERGIZED, _result)


Turn off power to device.

#dene MSDeenergizeEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_DEENERGIZED, _result)


Turn off power to device.

#dene MSADPAOn(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ADPA_ON, _result)


Turn on mindsensors ADPA mode.

#dene MSADPAOnEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ADPA_ON, _result)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

131

Turn on mindsensors ADPA mode.

#dene MSADPAOff(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ADPA_OFF, _result)


Turn off mindsensors ADPA mode.

#dene MSADPAOffEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ADPA_OFF, _result)


Turn off mindsensors ADPA mode.

#dene DISTNxGP2D12(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2D12, _result)


Congure DISTNx as GP2D12.

#dene DISTNxGP2D12Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2D12, _result)


Congure DISTNx as GP2D12.

#dene DISTNxGP2D120(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2D120, _result)


Congure DISTNx as GP2D120.

#dene DISTNxGP2D120Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2D120, _result)


Congure DISTNx as GP2D120.

#dene DISTNxGP2YA02(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2YA02, _result)


Congure DISTNx as GP2YA02.

#dene DISTNxGP2YA02Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2YA02, _result)


Congure DISTNx as GP2YA02.

#dene DISTNxGP2YA21(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2YA21, _result)


Congure DISTNx as GP2YA21.

#dene DISTNxGP2YA21Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2YA21, _result)


Congure DISTNx as GP2YA21.

#dene ReadDISTNxDistance(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_DIST, 2, _out, _result)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

132

Read DISTNx distance value.

#dene ReadDISTNxDistanceEx(_port, _addr, _out, _result) MSReadValue(_port, _addr, DIST_REG_DIST, 2, _out, _result)
Read DISTNx distance value.

__-

#dene ReadDISTNxMaxDistance(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_DIST_MAX, 2, _out, _result)


Read DISTNx maximum distance value.

#dene ReadDISTNxMaxDistanceEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_DIST_MAX, 2, _out, _result)
Read DISTNx maximum distance value.

#dene ReadDISTNxMinDistance(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_DIST_MIN, 2, _out, _result)


Read DISTNx minimum distance value.

#dene ReadDISTNxMinDistanceEx(_port, _addr, _out, _result) MSReadValue(_port, _addr, DIST_REG_DIST_MIN, 2, _out, _result)
Read DISTNx minimum distance value.

__-

#dene ReadDISTNxModuleType(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_MODULE_TYPE, 1, _out, _result)


Read DISTNx module type value.

#dene ReadDISTNxModuleTypeEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_MODULE_TYPE, 1, _out, _result)
Read DISTNx module type value.

#dene ReadDISTNxNumPoints(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_NUM_POINTS, 1, _out, _result)


Read DISTNx num points value.

#dene ReadDISTNxNumPointsEx(_port, _addr, _out, _result) __MSReadValue(_port, _addr, DIST_REG_NUM_POINTS, 1, _out, _result)
Read DISTNx num points value.

#dene ReadDISTNxVoltage(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_VOLT, 2, _out, _result)


Read DISTNx voltage 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

MindSensors API Functions

133

Read DISTNx voltage value.

#dene PSPNxDigital(_port, _result) __I2CSendCmd(_port, 0x02, PSP_CMD_DIGITAL, _result)


Congure PSPNx in digital mode.

#dene PSPNxDigitalEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, PSP_CMD_DIGITAL, _result)


Congure PSPNx in digital mode.

#dene PSPNxAnalog(_port, _result) __I2CSendCmd(_port, 0x02, PSP_CMD_ANALOG, _result)


Congure PSPNx in analog mode.

#dene PSPNxAnalogEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, PSP_CMD_ANALOG, _result)


Congure PSPNx in analog mode.

#dene NRLink2400(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_2400, _result)


Congure NRLink in 2400 baud mode.

#dene NRLink2400Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_2400, _result)


Congure NRLink in 2400 baud mode.

#dene NRLink4800(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_4800, _result)


Congure NRLink in 4800 baud mode.

#dene NRLink4800Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_4800, _result)


Congure NRLink in 4800 baud mode.

#dene NRLinkFlush(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_FLUSH, _result)


Flush NRLink buffers.

#dene NRLinkFlushEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_FLUSH, _result)


Flush NRLink buffers.

#dene NRLinkIRLong(_port, _result) NRLINK_CMD_IR_LONG, _result)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

__I2CSendCmd(_port,

0x02,

4.19

MindSensors API Functions

134

Congure NRLink in IR long mode.

#dene NRLinkIRLongEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_IR_LONG, _result)


Congure NRLink in IR long mode.

#dene NRLinkIRShort(_port, _result) NRLINK_CMD_IR_SHORT, _result)


Congure NRLink in IR short mode.

__I2CSendCmd(_port,

0x02,

#dene NRLinkIRShortEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_IR_SHORT, _result)


Congure NRLink in IR short mode.

#dene NRLinkSetPF(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_SET_PF, _result)


Congure NRLink in power function mode.

#dene NRLinkSetPFEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_PF, _result)


Congure NRLink in power function mode.

#dene NRLinkSetRCX(_port, _result) NRLINK_CMD_SET_RCX, _result)


Congure NRLink in RCX mode.

__I2CSendCmd(_port,

0x02,

#dene NRLinkSetRCXEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_RCX, _result)


Congure NRLink in RCX mode.

#dene NRLinkSetTrain(_port, _result) NRLINK_CMD_SET_TRAIN, _result)


Congure NRLink in IR train mode.

__I2CSendCmd(_port,

0x02,

#dene NRLinkSetTrainEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_TRAIN, _result)


Congure NRLink in IR train mode.

#dene NRLinkTxRaw(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_TX_RAW, _result)


Congure NRLink in raw IR transmit mode.

#dene NRLinkTxRawEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_TX_RAW, _result)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

135

Congure NRLink in raw IR transmit mode.

#dene ReadNRLinkStatus(_port, _value, _result) __ReadNRLinkStatusEx(_port, 0x02, _value, _result)


Read NRLink status.

#dene ReadNRLinkStatusEx(_port, _addr, _value, ReadNRLinkStatusEx(_port, _addr, _value, _result)


Read NRLink status.

_result)

__-

#dene RunNRLinkMacro(_port, _macro, _result) __RunNRLinkMacroEx(_port, 0x02, _macro, _result)


Run NRLink macro.

#dene RunNRLinkMacroEx(_port, _addr, _macro, RunNRLinkMacroEx(_port, _addr, _macro, _result)


Run NRLink macro.

_result)

__-

#dene WriteNRLinkBytes(_port, _bytes, _result) __WriteNRLinkBytes(_port, 0x02, _bytes, _result)


Write data to NRLink.

#dene WriteNRLinkBytesEx(_port, _addr, WriteNRLinkBytes(_port, _addr, _bytes, _result)


Write data to NRLink.

_bytes,

_result)

__-

#dene ReadNRLinkBytes(_port, _bytes, _result) __ReadNRLinkBytes(_port, 0x02, _bytes, _result)


Read data from NRLink.

#dene ReadNRLinkBytesEx(_port, _addr, ReadNRLinkBytes(_port, _addr, _bytes, _result)


Read data from NRLink.

_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

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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.

#dene MSRCXSetNRLinkPort(_port) __MSRCXSetNRLink(_port, 0x02)


MSRCXSetIRLinkPort function.

#dene MSRCXSetNRLinkPortEx(_port, _addr) __MSRCXSetNRLink(_port, _addr)


MSRCXSetIRLinkPortEx function.

#dene MSRCXBatteryLevel(_result) __MSRCXBatteryLevel(_result)


MSRCXBatteryLevel function.

#dene MSRCXPoll(_src, _value, _result) __MSRCXPoll(_src, _value, _result)


MSRCXPoll function.

#dene MSRCXPollMemory(_address, _result) __MSRCXPollMemory(_address, _result)


MSRCXPollMemory function.

#dene MSRCXAbsVar(_varnum, _src, _value) __MSRCXVarOp(RCX_AbsVarOp, _varnum, _src, _value)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

138

MSRCXAbsVar function.

#dene MSRCXAddToDatalog(_src, _value) __MSRCXAddToDatalog(_src, _value)


MSRCXAddToDatalog function.

#dene MSRCXAndVar(_varnum, _src, _value) __MSRCXVarOp(RCX_AndVarOp, _varnum, _src, _value)


MSRCXAndVar function.

#dene MSRCXBoot() __MSRCXBoot()


MSRCXBoot function.

#dene MSRCXCalibrateEvent(_evt, _low, MSRCXCalibrateEvent(_evt, _low, _hi, _hyst)


MSRCXCalibrateEvent function.

_hi,

_hyst)

__-

#dene MSRCXClearAllEvents() ClearAllEventsOp)


MSRCXClearAllEvents function.

__MSRCXOpNoArgs(RCX_-

#dene MSRCXClearCounter(_counter) __MSRCXClearCounter(_counter)


MSRCXClearCounter function.

#dene MSRCXClearMsg() __MSRCXOpNoArgs(RCX_ClearMsgOp)


MSRCXClearMsg function.

#dene MSRCXClearSensor(_port) __MSRCXClearSensor(_port)


MSRCXClearSensor function.

#dene MSRCXClearSound() __MSRCXOpNoArgs(RCX_ClearSoundOp)


MSRCXClearSound function.

#dene MSRCXClearTimer(_timer) __MSRCXClearTimer(_timer)


MSRCXClearTimer function.

#dene MSRCXCreateDatalog(_size) __MSRCXCreateDatalog(_size)


MSRCXCreateDatalog function.

#dene MSRCXDecCounter(_counter) __MSRCXDecCounter(_counter)


MSRCXDecCounter function.

#dene MSRCXDeleteSub(_s) __MSRCXDeleteSub(_s)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

139

MSRCXDeleteSub function.

#dene MSRCXDeleteSubs() __MSRCXOpNoArgs(RCX_DeleteSubsOp)


MSRCXDeleteSubs function.

#dene MSRCXDeleteTask(_t) __MSRCXDeleteTask(_t)


MSRCXDeleteTask function.

#dene MSRCXDeleteTasks() __MSRCXOpNoArgs(RCX_DeleteTasksOp)


MSRCXDeleteTasks function.

#dene MSRCXDisableOutput(_outputs) outputs, RCX_OUT_OFF)


MSRCXDisableOutput function.

__MSRCXSetGlobalOutput(_-

#dene MSRCXDivVar(_varnum, _src, _value) __MSRCXVarOp(RCX_DivVarOp, _varnum, _src, _value)


MSRCXDivVar function.

#dene MSRCXEnableOutput(_outputs) __MSRCXSetGlobalOutput(_outputs, RCX_OUT_ON)


MSRCXEnableOutput function.

#dene MSRCXEvent(_src, _value) __MSRCXEvent(_src, _value)


MSRCXEvent function.

#dene MSRCXFloat(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_FLOAT)


MSRCXFloat function.

#dene MSRCXFwd(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_FWD)


MSRCXFwd function.

#dene MSRCXIncCounter(_counter) __MSRCXIncCounter(_counter)


MSRCXIncCounter function.

#dene MSRCXInvertOutput(_outputs) outputs, RCX_OUT_REV)


MSRCXInvertOutput function.

__MSRCXSetGlobalDirection(_-

#dene MSRCXMulVar(_varnum, _src, _value) __MSRCXVarOp(RCX_MulVarOp, _varnum, _src, _value)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

140

MSRCXMulVar function.

#dene MSRCXMuteSound() __MSRCXOpNoArgs(RCX_MuteSoundOp)


MSRCXMuteSound function.

#dene MSRCXObvertOutput(_outputs) outputs, RCX_OUT_FWD)


MSRCXObvertOutput function.

__MSRCXSetGlobalDirection(_-

#dene MSRCXOff(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_OFF)


MSRCXOff function.

#dene MSRCXOn(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_ON)


MSRCXOn function.

#dene MSRCXOnFor(_outputs, _ms) __MSRCXOnFor(_outputs, _ms)


MSRCXOnFor function.

#dene MSRCXOnFwd(_outputs) __MSRCXOnFwd(_outputs)


MSRCXOnFwd function.

#dene MSRCXOnRev(_outputs) __MSRCXOnRev(_outputs)


MSRCXOnRev function.

#dene MSRCXOrVar(_varnum, OrVarOp, _varnum, _src, _value)


MSRCXOrVar function.

_src,

_value) __MSRCXVarOp(RCX_-

#dene MSRCXPBTurnOff() __MSRCXOpNoArgs(RCX_PBTurnOffOp)


MSRCXPBTurnOff function.

#dene MSRCXPing() __MSRCXOpNoArgs(RCX_PingOp)


MSRCXPing function.

#dene MSRCXPlaySound(_snd) __MSRCXPlaySound(_snd)


MSRCXPlaySound function.

#dene MSRCXPlayTone(_freq, _duration) __MSRCXPlayTone(_freq, _duration)


MSRCXPlayTone function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

141

#dene MSRCXPlayToneVar(_varnum, _duration) __MSRCXPlayToneVar(_varnum, _duration)


MSRCXPlayToneVar function.

#dene MSRCXRemote(_cmd) __MSRCXRemote(_cmd)


MSRCXRemote function.

#dene MSRCXReset() __MSRCXReset()


MSRCXReset function.

#dene MSRCXRev(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_REV)


MSRCXRev function.

#dene MSRCXSelectDisplay(_src, _value) __MSRCXSelectDisplay(_src, _value)


MSRCXSelectDisplay function.

#dene MSRCXSelectProgram(_prog) __MSRCXSelectProgram(_prog)


MSRCXSelectProgram function.

#dene MSRCXSendSerial(_rst, _count) __MSRCXSendSerial(_rst, _count)


MSRCXSendSerial function.

#dene MSRCXSet(_dstsrc, _dstval, _src, _value) __MSRCXSet(_dstsrc, _dstval, _src, _value)


MSRCXSet function.

#dene MSRCXSetDirection(_outputs, _dir) __MSRCXSetDirection(_outputs, _dir)


MSRCXSetDirection function.

#dene MSRCXSetEvent(_evt, _src, _type) __MSRCXSetEvent(_evt, _src, _type)


MSRCXSetEvent function.

#dene MSRCXSetGlobalDirection(_outputs, MSRCXSetGlobalDirection(_outputs, _dir)


MSRCXSetGlobalDirection function.

_dir)

__-

#dene MSRCXSetGlobalOutput(_outputs, MSRCXSetGlobalOutput(_outputs, _mode)

_mode)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

142

MSRCXSetGlobalOutput function.

#dene MSRCXSetMaxPower(_outputs, _pwrsrc, MSRCXSetMaxPower(_outputs, _pwrsrc, _pwrval)


MSRCXSetMaxPower function.

_pwrval)

__-

#dene MSRCXSetMessage(_msg) __MSRCXSetMessage(_msg)


MSRCXSetMessage function.

#dene MSRCXSetOutput(_outputs, _mode) __MSRCXSetOutput(_outputs, _mode)


MSRCXSetOutput function.

#dene MSRCXSetPower(_outputs, _pwrsrc, _pwrval) __MSRCXSetPower(_outputs, _pwrsrc, _pwrval)


MSRCXSetPower function.

#dene MSRCXSetPriority(_p) __MSRCXSetPriority(_p)


MSRCXSetPriority function.

#dene MSRCXSetSensorMode(_port, _mode) __MSRCXSetSensorMode(_port, _mode)


MSRCXSetSensorMode function.

#dene MSRCXSetSensorType(_port, _type) __MSRCXSetSensorType(_port, _type)


MSRCXSetSensorType function.

#dene MSRCXSetSleepTime(_t) __MSRCXSetSleepTime(_t)


MSRCXSetSleepTime function.

#dene MSRCXSetTxPower(_pwr) __MSRCXSetTxPower(_pwr)


MSRCXSetTxPower function.

#dene MSRCXSetUserDisplay(_src, _value, MSRCXSetUserDisplay(_src, _value, _precision)


MSRCXSetUserDisplay function.

_precision)

__-

#dene MSRCXSetVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SetVarOp, _varnum, _src, _value)


MSRCXSetVar function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

143

#dene MSRCXSetWatch(_hours, _minutes) __MSRCXSetWatch(_hours, _minutes)


MSRCXSetWatch function.

#dene MSRCXSgnVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SgnVarOp, _varnum, _src, _value)


MSRCXSgnVar function.

#dene MSRCXStartTask(_t) __MSRCXStartTask(_t)


MSRCXStartTask function.

#dene MSRCXStopAllTasks() StopAllTasksOp)


MSRCXStopAllTasks function.

__MSRCXOpNoArgs(RCX_-

#dene MSRCXStopTask(_t) __MSRCXStopTask(_t)


MSRCXStopTask function.

#dene MSRCXSubVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SubVarOp, _varnum, _src, _value)


MSRCXSubVar function.

#dene MSRCXSumVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SumVarOp, _varnum, _src, _value)


MSRCXSumVar function.

#dene MSRCXToggle(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_TOGGLE)


MSRCXToggle function.

#dene MSRCXUnlock() __MSRCXUnlock()


MSRCXUnlock function.

#dene MSRCXUnmuteSound() UnmuteSoundOp)


MSRCXUnmuteSound function.

__MSRCXOpNoArgs(RCX_-

#dene MSScoutCalibrateSensor() LSCalibrateOp)


MSScoutCalibrateSensor function.

__MSRCXOpNoArgs(RCX_-

#dene MSScoutMuteSound() __MSScoutMuteSound()


MSScoutMuteSound function.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

144

#dene MSScoutSelectSounds(_grp) __MSScoutSelectSounds(_grp)


MSScoutSelectSounds function.

#dene MSScoutSendVLL(_src, _value) __MSScoutSendVLL(_src, _value)


MSScoutSendVLL function.

#dene MSScoutSetCounterLimit(_ctr, MSScoutSetCounterLimit(_ctr, _src, _value)


MSScoutSetCounterLimit function.

_src,

_value)

__-

#dene MSScoutSetEventFeedback(_src, MSScoutSetEventFeedback(_src, _value)


MSScoutSetEventFeedback function.

_value)

__-

#dene MSScoutSetLight(_x) __MSScoutSetLight(_x)


MSScoutSetLight function.

#dene MSScoutSetScoutMode(_mode) __MSScoutSetScoutMode(_mode)


MSScoutSetScoutMode function.

#dene MSScoutSetScoutRules(_m, _t, MSScoutSetScoutRules(_m, _t, _l, _tm, _fx)


MSScoutSetScoutRules function.

_l,

_tm,

_fx)

__-

#dene MSScoutSetSensorClickTime(_src, MSScoutSetSensorClickTime(_src, _value)


MSScoutSetSensorClickTime function.

_value)

__-

#dene MSScoutSetSensorHysteresis(_src, MSScoutSetSensorHysteresis(_src, _value)


MSScoutSetSensorHysteresis function.

_value)

__-

#dene MSScoutSetSensorLowerLimit(_src, MSScoutSetSensorLowerLimit(_src, _value)


MSScoutSetSensorLowerLimit function.

_value)

__-

#dene MSScoutSetSensorUpperLimit(_src, MSScoutSetSensorUpperLimit(_src, _value)


MSScoutSetSensorUpperLimit function.

_value)

__-

#dene MSScoutSetTimerLimit(_tmr, MSScoutSetTimerLimit(_tmr, _src, _value)

_src,

_value)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

145

MSScoutSetTimerLimit function.

#dene MSScoutUnmuteSound() __MSScoutUnmuteSound()


MSScoutUnmuteSound 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

#dene DISTNxGP2D120(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2D120, _result)

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

#dene DISTNxGP2D120Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2D120, _result)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene DISTNxGP2D12Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, 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. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.

4.19.2.5

#dene DISTNxGP2YA02(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2YA02, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

147

4.19.2.6

#dene DISTNxGP2YA02Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2YA02, _result)

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

#dene DISTNxGP2YA21(_port, _result) __I2CSendCmd(_port, 0x02, DIST_CMD_GP2YA21, _result)

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

#dene DISTNxGP2YA21Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, DIST_CMD_GP2YA21, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

148

4.19.2.9

#dene MSADPAOff(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ADPA_OFF, _result)

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

#dene MSADPAOffEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ADPA_OFF, _result)

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

#dene MSADPAOn(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ADPA_ON, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

149

4.19.2.12

#dene MSADPAOnEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ADPA_ON, _result)

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

#dene MSDeenergize(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_DEENERGIZED, _result)

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

#dene MSDeenergizeEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_DEENERGIZED, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

150

4.19.2.15

#dene MSEnergize(_port, _result) __I2CSendCmd(_port, 0x02, MS_CMD_ENERGIZED, _result)

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

#dene MSEnergizeEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, MS_CMD_ENERGIZED, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

MindSensors API Functions

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

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

MindSensors API Functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene MSRCXAbsVar(_varnum, _src, _value) __MSRCXVarOp(RCX_AbsVarOp, _varnum, _src, _value)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene MSRCXAddToDatalog(_src, _value) __MSRCXAddToDatalog(_src, _value)

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

#dene MSRCXAndVar(_varnum, _src, _value) __MSRCXVarOp(RCX_AndVarOp, _varnum, _src, _value)

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

#dene MSRCXBatteryLevel(_result) __MSRCXBatteryLevel(_result)

MSRCXBatteryLevel function. Send the BatteryLevel command to an RCX to read the current battery level. Parameters: _result The RCX battery level.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

161

4.19.2.39

#dene MSRCXBoot() __MSRCXBoot()

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

#dene MSRCXClearAllEvents() __MSRCXOpNoArgs(RCX_ClearAllEventsOp)

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

#dene MSRCXClearMsg() __MSRCXOpNoArgs(RCX_ClearMsgOp)

MSRCXClearMsg function. Send the ClearMsg command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

162

4.19.2.44

#dene MSRCXClearSensor(_port) __MSRCXClearSensor(_port)

MSRCXClearSensor function. Send the ClearSensor command to an RCX. Parameters: _port The RCX port number.

4.19.2.45

#dene MSRCXClearSound() __MSRCXOpNoArgs(RCX_ClearSoundOp)

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

#dene MSRCXCreateDatalog(_size) __MSRCXCreateDatalog(_size)

MSRCXCreateDatalog function. Send the CreateDatalog command to an RCX. Parameters: _size The new datalog size.

4.19.2.48

#dene MSRCXDecCounter(_counter) __MSRCXDecCounter(_counter)

MSRCXDecCounter function. Send the DecCounter command to an RCX. Parameters: _counter The counter to decrement.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

163

4.19.2.49

#dene MSRCXDeleteSub(_s) __MSRCXDeleteSub(_s)

MSRCXDeleteSub function. Send the DeleteSub command to an RCX. Parameters: _s The subroutine number to delete.

4.19.2.50

#dene MSRCXDeleteSubs() __MSRCXOpNoArgs(RCX_DeleteSubsOp)

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

#dene MSRCXDeleteTasks() __MSRCXOpNoArgs(RCX_DeleteTasksOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

164

4.19.2.54

#dene MSRCXDivVar(_varnum, _src, _value) __MSRCXVarOp(RCX_DivVarOp, _varnum, _src, _value)

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

#dene MSRCXEnableOutput(_outputs) __MSRCXSetGlobalOutput(_outputs, RCX_OUT_ON)

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

#dene MSRCXEvent(_src, _value) __MSRCXEvent(_src, _value)

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

#dene MSRCXFloat(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_FLOAT)

MSRCXFloat function. Send commands to an RCX to oat the specied outputs. Parameters: _outputs The RCX output(s) to oat. See RCX output constants.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

165

4.19.2.58

#dene MSRCXFwd(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_FWD)

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

#dene MSRCXIncCounter(_counter) __MSRCXIncCounter(_counter)

MSRCXIncCounter function. Send the IncCounter command to an RCX. Parameters: _counter The counter to increment.

4.19.2.60

#dene MSRCXInvertOutput(_outputs) __MSRCXSetGlobalDirection(_outputs, RCX_OUT_REV)

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

#dene MSRCXMulVar(_varnum, _src, _value) __MSRCXVarOp(RCX_MulVarOp, _varnum, _src, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

166

4.19.2.62

#dene MSRCXMuteSound() __MSRCXOpNoArgs(RCX_MuteSoundOp)

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

#dene MSRCXOff(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_OFF)

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

#dene MSRCXOn(_outputs) __MSRCXSetOutput(_outputs, RCX_OUT_ON)

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

#dene MSRCXOnFor(_outputs, _ms) __MSRCXOnFor(_outputs, _ms)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene MSRCXOnFwd(_outputs) __MSRCXOnFwd(_outputs)

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

#dene MSRCXOnRev(_outputs) __MSRCXOnRev(_outputs)

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

#dene MSRCXOrVar(_varnum, _src, _value) __MSRCXVarOp(RCX_OrVarOp, _varnum, _src, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

168

4.19.2.70

#dene MSRCXPBTurnOff() __MSRCXOpNoArgs(RCX_PBTurnOffOp)

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

#dene MSRCXPlayTone(_freq, _duration) __MSRCXPlayTone(_freq, _duration)

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

#dene MSRCXPlayToneVar(_varnum, _duration) __MSRCXPlayToneVar(_varnum, _duration)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

169

4.19.2.75

#dene MSRCXPoll(_src, _value, _result) __MSRCXPoll(_src, _value, _result)

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

#dene MSRCXPollMemory(_address, _result) __MSRCXPollMemory(_address, _result)

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

#dene MSRCXRemote(_cmd) __MSRCXRemote(_cmd)

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

#dene MSRCXReset() __MSRCXReset()

MSRCXReset function. Send the Reset command to an RCX.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

170

4.19.2.79

#dene MSRCXRev(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_REV)

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

#dene MSRCXSelectDisplay(_src, _value) __MSRCXSelectDisplay(_src, _value)

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

#dene MSRCXSelectProgram(_prog) __MSRCXSelectProgram(_prog)

MSRCXSelectProgram function. Send the SelectProgram command to an RCX. Parameters: _prog The program number to select.

4.19.2.82

#dene MSRCXSendSerial(_rst, _count) __MSRCXSendSerial(_rst, _count)

MSRCXSendSerial function. Send the SendSerial command to an RCX. Parameters: _rst The rst byte address. _count The number of bytes to send.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

171

4.19.2.83

#dene MSRCXSet(_dstsrc, _dstval, _src, _value) __MSRCXSet(_dstsrc, _dstval, _src, _value)

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

#dene MSRCXSetDirection(_outputs, _dir) __MSRCXSetDirection(_outputs, _dir)

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

#dene MSRCXSetEvent(_evt, _src, _type) __MSRCXSetEvent(_evt, _src, _type)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

172

4.19.2.86

#dene MSRCXSetGlobalDirection(_outputs, _dir) __MSRCXSetGlobalDirection(_outputs, _dir)

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

#dene MSRCXSetGlobalOutput(_outputs, _mode) __MSRCXSetGlobalOutput(_outputs, _mode)

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

#dene MSRCXSetMaxPower(_outputs, _pwrsrc, _pwrval) __MSRCXSetMaxPower(_outputs, _pwrsrc, _pwrval)

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

#dene MSRCXSetMessage(_msg) __MSRCXSetMessage(_msg)

MSRCXSetMessage function. Send the SetMessage command to an RCX.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

173

Parameters: _msg The numeric message to send.

4.19.2.90

#dene MSRCXSetNRLinkPort(_port) __MSRCXSetNRLink(_port, 0x02)

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

#dene MSRCXSetNRLinkPortEx(_port, _addr) __MSRCXSetNRLink(_port, _addr)

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

#dene MSRCXSetOutput(_outputs, _mode) __MSRCXSetOutput(_outputs, _mode)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

174

4.19.2.93

#dene MSRCXSetPower(_outputs, _pwrsrc, _pwrval) __MSRCXSetPower(_outputs, _pwrsrc, _pwrval)

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

#dene MSRCXSetPriority(_p) __MSRCXSetPriority(_p)

MSRCXSetPriority function. Send the SetPriority command to an RCX. Parameters: _p The new task priority.

4.19.2.95

#dene MSRCXSetSensorMode(_port, _mode) __MSRCXSetSensorMode(_port, _mode)

MSRCXSetSensorMode function. Send the SetSensorMode command to an RCX. Parameters: _port The RCX sensor port. _mode The RCX sensor mode.

4.19.2.96

#dene MSRCXSetSensorType(_port, _type) __MSRCXSetSensorType(_port, _type)

MSRCXSetSensorType function. Send the SetSensorType command to an RCX.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

175

Parameters: _port The RCX sensor port. _type The RCX sensor type.

4.19.2.97

#dene MSRCXSetSleepTime(_t) __MSRCXSetSleepTime(_t)

MSRCXSetSleepTime function. Send the SetSleepTime command to an RCX. Parameters: _t The new sleep time value.

4.19.2.98

#dene MSRCXSetTxPower(_pwr) __MSRCXSetTxPower(_pwr)

MSRCXSetTxPower function. Send the SetTxPower command to an RCX. Parameters: _pwr The IR transmit power level.

4.19.2.99

#dene MSRCXSetUserDisplay(_src, _value, _precision) __MSRCXSetUserDisplay(_src, _value, _precision)

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

#dene MSRCXSetVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SetVarOp, _varnum, _src, _value)

MSRCXSetVar function. Send the SetVar command to an RCX.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene MSRCXSetWatch(_hours, _minutes) __MSRCXSetWatch(_hours, _minutes)

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

#dene MSRCXSgnVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SgnVarOp, _varnum, _src, _value)

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

#dene MSRCXStartTask(_t) __MSRCXStartTask(_t)

MSRCXStartTask function. Send the StartTask command to an RCX. Parameters: _t The task number to start.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

177

4.19.2.104

#dene MSRCXStopAllTasks() __MSRCXOpNoArgs(RCX_StopAllTasksOp)

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

#dene MSRCXSubVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SubVarOp, _varnum, _src, _value)

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

#dene MSRCXSumVar(_varnum, _src, _value) __MSRCXVarOp(RCX_SumVarOp, _varnum, _src, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

178

4.19.2.108

#dene MSRCXToggle(_outputs) __MSRCXSetDirection(_outputs, RCX_OUT_TOGGLE)

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

#dene MSRCXUnlock() __MSRCXUnlock()

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene MSScoutCalibrateSensor() __MSRCXOpNoArgs(RCX_LSCalibrateOp)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

180

4.19.2.116

#dene MSScoutSendVLL(_src, _value) __MSScoutSendVLL(_src, _value)

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

#dene MSScoutSetCounterLimit(_ctr, _src, _value) __MSScoutSetCounterLimit(_ctr, _src, _value)

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

#dene MSScoutSetEventFeedback(_src, _value) __MSScoutSetEventFeedback(_src, _value)

MSScoutSetEventFeedback function. Scout. Parameters:

Send the SetEventFeedback command to a

_src The Scout source. See RCX and Scout source constants. _value The Scout value.

4.19.2.119

#dene MSScoutSetLight(_x) __MSScoutSetLight(_x)

MSScoutSetLight function. Send the SetLight command to a Scout. Parameters: _x Set the light on or off using this value. See Scout light constants.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

181

4.19.2.120

#dene MSScoutSetScoutMode(_mode) __MSScoutSetScoutMode(_mode)

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

#dene MSScoutSetSensorClickTime(_src, _value) __MSScoutSetSensorClickTime(_src, _value)

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

#dene MSScoutSetSensorHysteresis(_src, _value) __MSScoutSetSensorHysteresis(_src, _value)

MSScoutSetSensorHysteresis function. Send the SetSensorHysteresis command to a Scout.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

182

Parameters: _src The Scout source. See RCX and Scout source constants. _value The Scout value.

4.19.2.124

#dene MSScoutSetSensorLowerLimit(_src, _value) __MSScoutSetSensorLowerLimit(_src, _value)

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

#dene MSScoutSetSensorUpperLimit(_src, _value) __MSScoutSetSensorUpperLimit(_src, _value)

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

#dene MSScoutSetTimerLimit(_tmr, _src, _value) __MSScoutSetTimerLimit(_tmr, _src, _value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

183

4.19.2.127

#dene MSScoutUnmuteSound() __MSScoutUnmuteSound()

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

#dene NRLink2400Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, 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. _addr The sensor I2C address. See sensor documentation for this value. _result The function call result.

4.19.2.130

#dene NRLink4800(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_4800, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

184

Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.

4.19.2.131

#dene NRLink4800Ex(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_4800, _result)

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

#dene NRLinkFlush(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_FLUSH, _result)

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

#dene NRLinkFlushEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_FLUSH, _result)

Flush NRLink buffers. Flush the mindsensors NRLink device buffers. 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

MindSensors API Functions

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

#dene NRLinkIRLong(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_IR_LONG, _result)

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

#dene NRLinkIRLongEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_IR_LONG, _result)

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

#dene NRLinkIRShort(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_IR_SHORT, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

186

Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.

4.19.2.137

#dene NRLinkIRShortEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_IR_SHORT, _result)

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

#dene NRLinkSetPF(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_SET_PF, _result)

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

#dene NRLinkSetPFEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_PF, _result)

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

MindSensors API Functions

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

#dene NRLinkSetRCX(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_SET_RCX, _result)

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

#dene NRLinkSetRCXEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_RCX, _result)

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

#dene NRLinkSetTrain(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_SET_TRAIN, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

188

Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.

4.19.2.143

#dene NRLinkSetTrainEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_SET_TRAIN, _result)

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

#dene NRLinkTxRaw(_port, _result) __I2CSendCmd(_port, 0x02, NRLINK_CMD_TX_RAW, _result)

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

#dene NRLinkTxRawEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, NRLINK_CMD_TX_RAW, _result)

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

MindSensors API Functions

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

#dene PSPNxAnalog(_port, _result) __I2CSendCmd(_port, 0x02, PSP_CMD_ANALOG, _result)

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

#dene PSPNxAnalogEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, PSP_CMD_ANALOG, _result)

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

#dene PSPNxDigital(_port, _result) __I2CSendCmd(_port, 0x02, PSP_CMD_DIGITAL, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

190

Parameters: _port The sensor port. See NBC Input port constants. _result The function call result.

4.19.2.149

#dene PSPNxDigitalEx(_port, _addr, _result) __I2CSendCmd(_port, _addr, PSP_CMD_DIGITAL, _result)

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

#dene ReadDISTNxDistance(_port, _out, _result) __MSReadValue(_port, 0x02, DIST_REG_DIST, 2, _out, _result)

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

MindSensors API Functions

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

#dene ReadDISTNxMaxDistance(_port, _out, _result) __MSReadValue(_port, 0x02, 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. _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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

192

4.19.2.154

#dene ReadDISTNxMinDistance(_port, _out, _result) __MSReadValue(_port, 0x02, 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. _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

#dene ReadDISTNxModuleType(_port, _out, _result) __MSReadValue(_port, 0x02, 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.
Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene ReadDISTNxNumPoints(_port, _out, _result) __MSReadValue(_port, 0x02, 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. 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

MindSensors API Functions

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

#dene ReadDISTNxVoltage(_port, _out, _result) __MSReadValue(_port, 0x02, 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. _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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

195

4.19.2.162

#dene ReadNRLinkBytes(_port, _bytes, _result) __ReadNRLinkBytes(_port, 0x02, _bytes, _result)

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

#dene ReadNRLinkBytesEx(_port, _addr, _bytes, _result) __ReadNRLinkBytes(_port, _addr, _bytes, _result)

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

#dene ReadNRLinkStatus(_port, _value, _result) __ReadNRLinkStatusEx(_port, 0x02, _value, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

196

4.19.2.165

#dene ReadNRLinkStatusEx(_port, _addr, _value, _result) __ReadNRLinkStatusEx(_port, _addr, _value, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

#dene ReadSensorMSCompass(_port, _value) __ReadSensorMSCompassEx(_port, 0x02, _value)

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

#dene ReadSensorMSCompassEx(_port, _addr, _value) __ReadSensorMSCompassEx(_port, _addr, _value)

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

#dene ReadSensorMSDROD(_port, _value) __ReadSensorMSDROD(_port, _value)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.19

MindSensors API Functions

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

MindSensors API Functions

199

_xright The right joystick x value. _yright The right joystick y value. _result The function call result.

4.19.2.173

#dene ReadSensorMSPressure(_port, _value) __ReadSensorMSPressure(_port, _value)

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

#dene ReadSensorMSPressureRaw(_port, _value) __ReadSensorMSPressureRaw(_port, _value)

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

MindSensors API Functions

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

MindSensors API Functions

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

#dene RunNRLinkMacro(_port, _macro, _result) __RunNRLinkMacroEx(_port, 0x02, _macro, _result)

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

#dene RunNRLinkMacroEx(_port, _addr, _macro, _result) __RunNRLinkMacroEx(_port, _addr, _macro, _result)

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

#dene SetSensorMSDRODActive(_port) __SetSensorMSDRODActive(_port)

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

MindSensors API Functions

202

Parameters: _port The port to congure. See NBC Input port constants.

4.19.2.181

#dene SetSensorMSDRODInactive(_port) __SetSensorMSDRODInactive(_port)

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

#dene SetSensorMSPressure(_port) __SetSensorMSPressure(_port)

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

#dene WriteNRLinkBytes(_port, _bytes, _result) __WriteNRLinkBytes(_port, 0x02, _bytes, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

203

4.19.2.184

#dene WriteNRLinkBytesEx(_port, _addr, _bytes, _result) __WriteNRLinkBytes(_port, _addr, _bytes, _result)

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

RIC Macro Wrappers

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 RICImgRect(_Pt, _W, _H) _Pt, (_W)&0xFF, (_W)>>8, (_H)&0xFF, (_H)>>8


Output an RIC ImgRect 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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

204

#dene RICOpLine(_CopyOptions, _Point1, _Point2) 12, 0, 5, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point1, _Point2


Output an RIC Line opcode.

#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 RICSpriteData(...) __VA_ARGS__


Output RIC sprite data.

#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.

#dene RICMapElement(_Domain, _Range) Domain)>>8, (_Range)&0xFF, (_Range)>>8


Output an RIC map element.

(_Domain)&0xFF,

(_-

#dene RICMapFunction(_MapElement,...) _MapElement, __VA_ARGS__


Output an RIC VarMap function.

#dene RICArg(_arg) ((_arg)|0x1000)


Output an RIC parameterized argument.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

205

#dene RICMapArg(_mapidx, mapidx)&0xF)<<8))

_arg)

((_arg)|0x1000|(((_-

Output an RIC parameterized and mapped argument.

#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 RICPolygonPoints(_pPoint1, _pPoint2,...) _pPoint1, _pPoint2, __VA_ARGS__


Output RIC polygon points.

#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

#dene RICImgPoint(_X, _Y) (_X)&0xFF, (_X)>>8, (_Y)&0xFF, (_Y)>>8

Output an RIC ImgPoint structure.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

206

Parameters: _X The X coordinate. _Y The Y coordinate.

4.20.2.3

#dene RICImgRect(_Pt, _W, _H) _Pt, (_W)&0xFF, (_W)>>8, (_H)&0xFF, (_H)>>8

Output an RIC ImgRect structure. Parameters: _Pt An ImgPoint. See RICImgPoint. _W The rectangle width. _H The rectangle height.

4.20.2.4

#dene RICMapArg(_mapidx, _arg) ((_arg)|0x1000|(((_mapidx)&0xF)<<8))

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

#dene RICMapElement(_Domain, _Range) (_Domain)&0xFF, (_Domain)>>8, (_Range)&0xFF, (_Range)>>8

Output an RIC map element. Parameters: _Domain The map element domain. _Range The map element range.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

207

4.20.2.6

#dene RICMapFunction(_MapElement, ...) _MapElement, __VA_ARGS__

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

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

#dene RICOpLine(_CopyOptions, _Point1, _Point2) 12, 0, 5, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point1, _Point2

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.20

RIC Macro Wrappers

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

NXT rmware module names

211

_MapCount The number of points in the function. _MapFunction The denition of the varmap function. See RICMapFunction.

4.20.2.18

#dene RICPolygonPoints(_pPoint1, _pPoint2, ...) _pPoint1, _pPoint2, __VA_ARGS__

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

#dene RICSpriteData( ...) __VA_ARGS__

Output RIC sprite data.

4.21

NXT rmware module names

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"

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.21

NXT rmware module names

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.22

NXT rmware module IDs

213

4.21.2.9

#dene OutputModuleName "Output.mod" The output module name

4.21.2.10

#dene SoundModuleName "Sound.mod" The sound module name

4.21.2.11

#dene UIModuleName "Ui.mod" The Ui module name

4.22

NXT rmware module IDs

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.22

NXT rmware module IDs

214

4.22.2.2

#dene CommandModuleID 0x00010001 The command module ID

4.22.2.3

#dene CommModuleID 0x00050001 The Comm module ID

4.22.2.4

#dene DisplayModuleID 0x000A0001 The display module ID

4.22.2.5

#dene InputModuleID 0x00030001 The input module ID

4.22.2.6

#dene IOCtrlModuleID 0x00060001 The IOCtrl module ID

4.22.2.7

#dene LoaderModuleID 0x00090001 The Loader module ID

4.22.2.8

#dene LowSpeedModuleID 0x000B0001 The low speed module ID

4.22.2.9

#dene OutputModuleID 0x00020001 The output module ID

4.22.2.10

#dene SoundModuleID 0x00080001 The sound module ID

4.22.2.11

#dene UIModuleID 0x000C0001 The Ui module ID

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.23

Miscellaneous NBC/NXC constants

215

4.23

Miscellaneous NBC/NXC constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.24

Third-party NXT devices

216

4.23.2.5

#dene RADIANS_PER_DEGREE PI/180 Used for converting from degrees to radians

4.23.2.6

#dene TRUE 1 A true value

4.24

Third-party NXT devices

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.

HiTechnic/mindsensors Power Function/IR Train constants


Constants that are for use with the HiTechnic IRLink or mindsensors nRLink in Power Function or IR Train mode.

HiTechnic API Functions


Functions for accessing and modifying HiTechnic devices.

MindSensors API Functions


Functions for accessing and modifying MindSensors devices.

4.24.1

Detailed Description

Documentation for NXT devices made by companies other than LEGO such as HiTechnic, mindsensors.com, and CodaTex.

4.25

Standard-C API functions

Documentation for various Standard-C library routines.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

217

Modules cstdlib API


Standard C cstdlib API functions.

cmath API
Standard C cmath API functions.

4.25.1

Detailed Description

Documentation for various Standard-C library routines.

4.26

A simple 3D graphics library

Documentation for a simple 3D graphics library. Modules Graphics library begin modes
Constants that are used to specify the polygon surface begin mode.

Graphics library actions


Constants that are used to specify a graphics library action.

Graphics library settings


Constants that are used to congure the graphics library settings.

Graphics library cull mode


Constants to use when setting the graphics library cull mode.

Denes #dene glInit() __glInit()


Initialize graphics library.

#dene glSet(_glType, _glValue) __glSet(_glType, _glValue)


Set graphics library options.

#dene glBeginObject(_glObjId) __glBeginObject(_glObjId)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

218

Begin dening an object.

#dene glEndObject() __glEndObject()


Stop dening an object.

#dene glObjectAction(_glObjectId, _glAction, _glValue) __glObjectAction(_glObjectId, _glAction, _glValue)


Perform an object action.

#dene glAddVertex(_glX, _glY, _glZ) __glAddVertex(_glX, _glY, _glZ)


Add a vertex to an object.

#dene glBegin(_glBeginMode) __glBegin(_glBeginMode)


Begin a new polygon for the current object.

#dene glEnd() __glEnd()


Finish a polygon for the current object.

#dene glBeginRender() __glBeginRender()


Begin a new render.

#dene glCallObject(_glObjectId) __glCallObject(_glObjectId)


Call a graphic object.

#dene glFinishRender() __glFinishRender()


Finish the current render.

#dene glSetAngleX(_glValue) __glSetAngleX(_glValue)


Set the X axis angle.

#dene glAddToAngleX(_glValue) __glAddToAngleX(_glValue)


Add to the X axis angle.

#dene glSetAngleY(_glValue) __glSetAngleY(_glValue)


Set the Y axis angle.

#dene glAddToAngleY(_glValue) __glAddToAngleY(_glValue)


Add to the Y axis angle.

#dene glSetAngleZ(_glValue) __glSetAngleZ(_glValue)


Set the Z axis angle.

#dene glAddToAngleZ(_glValue) __glAddToAngleZ(_glValue)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

219

Add to the Z axis angle.

#dene glSin32768(_glAngle, _glResult) __glSin32768(_glAngle, _glResult)


Table-based sine scaled by 32768.

#dene glCos32768(_glAngle, glResult)

_glResult)

__glCos32768(_glAngle,

_-

Table-based cosine scaled by 32768.

#dene glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId) __glBox(_glMode, _glSizeX, _glSizeY, _glSizeZ, _glObjId)
Create a 3D box.

#dene glCube(_glMode, _glSize, _glObjId) __glBox(_glMode, _glSize, _glSize, _glSize, _glObjId)


Create a 3D cube.

#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

#dene glAddToAngleY(_glValue) __glAddToAngleY(_glValue)

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

A simple 3D graphics library

220

Parameters: _glValue The value to add to the Y axis angle.

4.26.2.3

#dene glAddToAngleZ(_glValue) __glAddToAngleZ(_glValue)

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

#dene glAddVertex(_glX, _glY, _glZ) __glAddVertex(_glX, _glY, _glZ)

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

#dene glBegin(_glBeginMode) __glBegin(_glBeginMode)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

221

4.26.2.6

#dene glBeginObject(_glObjId) __glBeginObject(_glObjId)

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

#dene glBeginRender() __glBeginRender()

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

#dene glCallObject(_glObjectId) __glCallObject(_glObjectId)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

222

4.26.2.10

#dene glCos32768(_glAngle, _glResult) __glCos32768(_glAngle, _glResult)

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

#dene glCube(_glMode, _glSize, _glObjId) __glBox(_glMode, _glSize, _glSize, _glSize, _glObjId)

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

#dene glEnd() __glEnd()

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

223

4.26.2.14

#dene glFinishRender() __glFinishRender()

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.26

A simple 3D graphics library

224

4.26.2.18

#dene glSet(_glType, _glValue) __glSet(_glType, _glValue)

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

#dene glSetAngleX(_glValue) __glSetAngleX(_glValue)

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

#dene glSetAngleY(_glValue) __glSetAngleY(_glValue)

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

#dene glSetAngleZ(_glValue) __glSetAngleZ(_glValue)

Set the Z axis angle. Set the Z axis angle to the specied value. Parameters: _glValue The new Z axis angle.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

225

4.26.2.22

#dene glSin32768(_glAngle, _glResult) __glSin32768(_glAngle, _glResult)

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

Output module functions

Functions for accessing and modifying output module features. Denes #dene ResetTachoCount(_p) __resetTachoCount(_p)
Reset tachometer counter.

#dene ResetBlockTachoCount(_p) __resetBlockTachoCount(_p)


Reset block-relative counter.

#dene ResetRotationCount(_p) __resetRotationCount(_p)


Reset program-relative counter.

#dene ResetAllTachoCounts(_p) __resetAllTachoCounts(_p)


Reset all tachometer counters.

#dene OnFwdEx(_ports, _pwr, _reset) __OnFwdEx(_ports, _pwr, _reset)


Run motors forward and reset counters.

#dene OnRevEx(_ports, _pwr, _reset) __OnRevEx(_ports, _pwr, _reset)


Run motors backward and reset counters.

#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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

226

Run motors backward and reset counters.

#dene OnFwd(_ports, BLOCKANDTACHO)


Run motors forward.

_pwr)

OnFwdEx(_ports,

_pwr,

RESET_-

#dene OnRev(_ports, BLOCKANDTACHO)


Run motors backward.

_pwr)

OnRevEx(_ports,

_pwr,

RESET_-

#dene CoastEx(_ports, _reset) __CoastEx(_ports, _reset)


Coast motors and reset counters.

#dene OffEx(_ports, _reset) __OffEx(_ports, _reset)


Turn motors off and reset counters.

#dene Coast(_ports) CoastEx(_ports, RESET_BLOCKANDTACHO)


Coast motors.

#dene Off(_ports) OffEx(_ports, RESET_BLOCKANDTACHO)


Turn motors off.

#dene Float(_ports) Coast(_ports)


Float motors.

#dene OnFwdRegEx(_ports, _pwr, _regmode, _reset) __OnFwdRegEx(_ports, _pwr, _regmode, _reset)


Run motors forward regulated and reset counters.

#dene OnRevRegEx(_ports, _pwr, _regmode, _reset) __OnRevRegEx(_ports, _pwr, _regmode, _reset)


Run motors backward regulated and reset counters.

#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.

#dene OnFwdReg(_ports, _pwr, _regmode) OnFwdRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

227

Run motors forward regulated.

#dene OnRevReg(_ports, _pwr, _regmode) OnRevRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO)


Run motors forward regulated.

#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 OnFwdSyncEx(_ports, _pwr, _turnpct, _reset) __OnFwdSyncEx(_ports, _pwr, _turnpct, _reset)


Run motors forward synchronised and reset counters.

#dene OnRevSyncEx(_ports, _pwr, _turnpct, _reset) __OnRevSyncEx(_ports, _pwr, _turnpct, _reset)


Run motors backward synchronised and reset counters.

#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 OnFwdSync(_ports, _pwr, _turnpct) OnFwdSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO)


Run motors forward synchronised.

#dene OnRevSync(_ports, _pwr, _turnpct) OnRevSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO)


Run motors backward synchronised.

#dene OnFwdSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnFwdSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d)
Run motors forward synchronised with PID factors.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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.

#dene SetOutPwnFreq(_n) __setOutPwnFreq(_n)


Set motor PWN frequency.

#dene GetOutPwnFreq(_n) __GetOutPwnFreq(_n)


Get motor PWN frequency.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

#dene CoastEx(_ports, _reset) __CoastEx(_ports, _reset)

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

#dene Float(_ports) Coast(_ports)

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

#dene GetOutPwnFreq(_n) __GetOutPwnFreq(_n)

Get motor PWN frequency. Get the current motor pulse width modulation frequency. Parameters: _n The motor pwn frequency

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

230

4.27.2.5

#dene Off(_ports) OffEx(_ports, RESET_BLOCKANDTACHO)

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

#dene OffEx(_ports, _reset) __OffEx(_ports, _reset)

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

#dene OnFwd(_ports, _pwr) OnFwdEx(_ports, _pwr, RESET_BLOCKANDTACHO)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

231

4.27.2.8

#dene OnFwdEx(_ports, _pwr, _reset) __OnFwdEx(_ports, _pwr, _reset)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

232

4.27.2.10

#dene OnFwdReg(_ports, _pwr, _regmode) OnFwdRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO)

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

#dene OnFwdRegEx(_ports, _pwr, _regmode, _reset) __OnFwdRegEx(_ports, _pwr, _regmode, _reset)

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

Output module functions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

234

4.27.2.14

#dene OnFwdSync(_ports, _pwr, _turnpct) OnFwdSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO)

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

#dene OnFwdSyncEx(_ports, _pwr, _turnpct, _reset) __OnFwdSyncEx(_ports, _pwr, _turnpct, _reset)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

Output module functions

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

#dene OnRev(_ports, _pwr) OnRevEx(_ports, _pwr, RESET_BLOCKANDTACHO)

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

#dene OnRevEx(_ports, _pwr, _reset) __OnRevEx(_ports, _pwr, _reset)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

#dene OnRevReg(_ports, _pwr, _regmode) OnRevRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO)

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

#dene OnRevRegEx(_ports, _pwr, _regmode, _reset) __OnRevRegEx(_ports, _pwr, _regmode, _reset)

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

Output module functions

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

#dene OnRevSync(_ports, _pwr, _turnpct) OnRevSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO)

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

#dene OnRevSyncEx(_ports, _pwr, _turnpct, _reset) __OnRevSyncEx(_ports, _pwr, _turnpct, _reset)

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

Output module functions

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

#dene ResetAllTachoCounts(_p) __resetAllTachoCounts(_p)

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

#dene ResetBlockTachoCount(_p) __resetBlockTachoCount(_p)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

242

4.27.2.31

#dene ResetRotationCount(_p) __resetRotationCount(_p)

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

#dene ResetTachoCount(_p) __resetTachoCount(_p)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.27

Output module functions

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

Output module functions

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

#dene SetOutPwnFreq(_n) __setOutPwnFreq(_n)

Set motor PWN frequency. Set the motor PWN frequency. Parameters: _n The motor pwn frequency

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

245

4.28

Input module functions

Functions for accessing and modifying input module features. Denes #dene SetSensorType(_port, _t) setin _t, _port, Type
Set sensor type.

#dene SetSensorMode(_port, _m) setin _m, _port, InputMode


Set sensor mode.

#dene ReadSensor(_port, _value) getin _value, _port, ScaledValue


Read sensor scaled value.

#dene ClearSensor(_port) setin 0, _port, ScaledValue


Clear a sensor value.

#dene SetSensorTouch(_port) __SetSensorTouch(_port)


Congure a touch sensor.

#dene SetSensorLight(_port) __SetSensorLight(_port)


Congure a light sensor.

#dene SetSensorSound(_port) __SetSensorSound(_port)


Congure a sound sensor.

#dene SetSensorLowspeed(_port) __SetSensorLowspeed(_port)


Congure an I2C sensor.

#dene SetSensorUltrasonic(_port) __SetSensorLowspeed(_port)


Congure an ultrasonic sensor.

#dene SetSensorColorFull(_port) __SetSensorColorFull(_port)


Congure an NXT 2.0 full color sensor.

#dene SetSensorColorRed(_port) __SetSensorColorRed(_port)


Congure an NXT 2.0 red light sensor.

#dene SetSensorColorGreen(_port) __SetSensorColorGreen(_port)


Congure an NXT 2.0 green light sensor.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

246

#dene SetSensorColorBlue(_port) __SetSensorColorBlue(_port)


Congure an NXT 2.0 blue light sensor.

#dene SetSensorColorNone(_port) __SetSensorColorNone(_port)


Congure an NXT 2.0 no light sensor.

#dene ResetSensor(_port) __ResetSensor(_port)


Reset the sensor port.

#dene ReadSensorColorRaw(_port, _rawVals, ReadSensorColorRaw(_port, _rawVals, _result)


Read LEGO color sensor raw values.

_result)

__-

#dene ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result) __ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result)
Read LEGO color sensor extra.

#dene GetInCustomZeroOffset(_p, _n) __GetInCustomZeroOffset(_p, _n)


Get the custom sensor zero offset.

#dene GetInSensorBoolean(_p, _n) __GetInSensorBoolean(_p, _n)


Read sensor boolean value.

#dene GetInDigiPinsDirection(_p, _n) __GetInDigiPinsDirection(_p, _n)


Read sensor digital pins direction.

#dene GetInDigiPinsStatus(_p, _n) __GetInDigiPinsStatus(_p, _n)


Read sensor digital pins status.

#dene GetInDigiPinsOutputLevel(_p, _n) __GetInDigiPinsOutputLevel(_p, _n)


Read sensor digital pins output level.

#dene GetInCustomPercentFullScale(_p, GetInCustomPercentFullScale(_p, _n)


Get the custom sensor percent full scale.

_n)

__-

#dene GetInCustomActiveStatus(_p, _n) __GetInCustomActiveStatus(_p, _n)


Get the custom sensor active status.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

247

#dene GetInColorCalibration(_p, _np, _nc, _n) __GetInColorCalibration(_p, _np, _nc, _n)


Read a LEGO color sensor calibration point value.

#dene GetInColorCalLimits(_p, _np, _n) __GetInColorCalLimits(_p, _np, _n)


Read a LEGO color sensor calibration limit value.

#dene GetInColorADRaw(_p, _nc, _n) __GetInColorADRaw(_p, _nc, _n)


Read a LEGO color sensor AD raw value.

#dene GetInColorSensorRaw(_p, _nc, _n) __GetInColorSensorRaw(_p, _nc, _n)


Read a LEGO color sensor raw value.

#dene GetInColorSensorValue(_p, _nc, _n) __GetInColorSensorValue(_p, _nc, _n)


Read a LEGO color sensor scaled value.

#dene GetInColorBoolean(_p, _nc, _n) __GetInColorBoolean(_p, _nc, _n)


Read a LEGO color sensor boolean value.

#dene GetInColorCalibrationState(_p, _n) __GetInColorCalibrationState(_p, _n)


Read LEGO color sensor calibration state.

#dene SetInCustomZeroOffset(_p, _n) __setInCustomZeroOffset(_p, _n)


Set custom zero offset.

#dene SetInSensorBoolean(_p, _n) __setInSensorBoolean(_p, _n)


Set sensor boolean value.

#dene SetInDigiPinsDirection(_p, _n) __setInDigiPinsDirection(_p, _n)


Set digital pins direction.

#dene SetInDigiPinsStatus(_p, _n) __setInDigiPinsStatus(_p, _n)


Set digital pins status.

#dene SetInDigiPinsOutputLevel(_p, _n) __setInDigiPinsOutputLevel(_p, _n)


Set digital pins output level.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

248

#dene SetInCustomPercentFullScale(_p, setInCustomPercentFullScale(_p, _n)


Set percent full scale.

_n)

__-

#dene SetInCustomActiveStatus(_p, _n) __setInCustomActiveStatus(_p, _n)


Set active status.

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

#dene GetInColorADRaw(_p, _nc, _n) __GetInColorADRaw(_p, _nc, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

249

4.28.2.3

#dene GetInColorBoolean(_p, _nc, _n) __GetInColorBoolean(_p, _nc, _n)

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

#dene GetInColorCalibration(_p, _np, _nc, _n) __GetInColorCalibration(_p, _np, _nc, _n)

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

#dene GetInColorCalibrationState(_p, _n) __GetInColorCalibrationState(_p, _n)

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

Input module functions

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

#dene GetInColorCalLimits(_p, _np, _n) __GetInColorCalLimits(_p, _np, _n)

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

#dene GetInColorSensorRaw(_p, _nc, _n) __GetInColorSensorRaw(_p, _nc, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

251

4.28.2.8

#dene GetInColorSensorValue(_p, _nc, _n) __GetInColorSensorValue(_p, _nc, _n)

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

#dene GetInCustomActiveStatus(_p, _n) __GetInCustomActiveStatus(_p, _n)

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

#dene GetInCustomPercentFullScale(_p, _n) __GetInCustomPercentFullScale(_p, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

252

4.28.2.11

#dene GetInCustomZeroOffset(_p, _n) __GetInCustomZeroOffset(_p, _n)

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

#dene GetInDigiPinsDirection(_p, _n) __GetInDigiPinsDirection(_p, _n)

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

#dene GetInDigiPinsOutputLevel(_p, _n) __GetInDigiPinsOutputLevel(_p, _n)

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

#dene GetInDigiPinsStatus(_p, _n) __GetInDigiPinsStatus(_p, _n)

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

Input module functions

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

#dene GetInSensorBoolean(_p, _n) __GetInSensorBoolean(_p, _n)

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

#dene ReadSensor(_port, _value) getin _value, _port, ScaledValue

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

Input module functions

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

#dene ReadSensorColorRaw(_port, _rawVals, _result) __ReadSensorColorRaw(_port, _rawVals, _result)

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

#dene ResetSensor(_port) __ResetSensor(_port)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

255

4.28.2.20

#dene SetInCustomActiveStatus(_p, _n) __setInCustomActiveStatus(_p, _n)

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

#dene SetInCustomPercentFullScale(_p, _n) __setInCustomPercentFullScale(_p, _n)

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

#dene SetInCustomZeroOffset(_p, _n) __setInCustomZeroOffset(_p, _n)

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

#dene SetInDigiPinsDirection(_p, _n) __setInDigiPinsDirection(_p, _n)

Set digital pins direction. Sets the digital pins direction value of a sensor.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

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

#dene SetInDigiPinsOutputLevel(_p, _n) __setInDigiPinsOutputLevel(_p, _n)

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

#dene SetInDigiPinsStatus(_p, _n) __setInDigiPinsStatus(_p, _n)

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

#dene SetInSensorBoolean(_p, _n) __setInSensorBoolean(_p, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

257

4.28.2.27

#dene SetSensorColorBlue(_port) __SetSensorColorBlue(_port)

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

#dene SetSensorColorFull(_port) __SetSensorColorFull(_port)

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

#dene SetSensorColorGreen(_port) __SetSensorColorGreen(_port)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.28

Input module functions

258

4.28.2.30

#dene SetSensorColorNone(_port) __SetSensorColorNone(_port)

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

#dene SetSensorColorRed(_port) __SetSensorColorRed(_port)

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

#dene SetSensorLight(_port) __SetSensorLight(_port)

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

#dene SetSensorLowspeed(_port) __SetSensorLowspeed(_port)

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

Input module functions

259

Parameters: _port The port to congure. See NBC Input port constants.

4.28.2.34

#dene SetSensorMode(_port, _m) setin _m, _port, InputMode

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

#dene SetSensorSound(_port) __SetSensorSound(_port)

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

#dene SetSensorTouch(_port) __SetSensorTouch(_port)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

260

4.28.2.37

#dene SetSensorType(_port, _t) setin _t, _port, Type

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

#dene SetSensorUltrasonic(_port) __SetSensorLowspeed(_port)

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

LowSpeed module functions

Functions for accessing and modifying low speed module features. Modules Low level LowSpeed module functions
Low level functions for accessing low speed module features.

Denes #dene ReadSensorUS(_port, _value) __ReadSensorUS(_port, _value)


Read ultrasonic sensor value.

#dene ReadSensorUSEx(_port, _values, _result) __ReadSensorUSEx(_port, _values, _result)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

261

Read multiple ultrasonic sensor values.

#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 LowspeedStatus(_port, _bready, _result) __lowspeedStatus(_port, _bready, _result)


Get lowspeed status.

#dene LowspeedCheckStatus(_port, _result) __lowspeedCheckStatus(_port, _result)


Check lowspeed status.

#dene LowspeedBytesReady(_port, _bready) __lowspeedBytesReady(_port, _bready)


Get lowspeed bytes ready.

#dene LowspeedWrite(_port, _retlen, _buffer, _result) __lowspeedWrite(_port, _retlen, _buffer, _result)


Write lowspeed data.

#dene LowspeedRead(_port, _buen, _buffer, _result) __lowspeedRead(_port, _buen, _buffer, _result)


Read lowspeed data.

#dene ReadI2CBytes(_port, _inbuf, _count, _outbuf, ReadI2CBytes(_port, _inbuf, _count, _outbuf, _result)
Perform an I2C write/read transaction.

_result)

__-

#dene ReadI2CDeviceInfoEx(_port, _addr, ReadI2CDeviceInfoEx(_port, _addr, _info, _strVal)


Read I2C device information extra.

_info,

_strVal)

__-

#dene ReadI2CDeviceInfo(_port, _info, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, _info, _strVal)


Read I2C device information.

#dene ReadI2CVersionEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_VERSION, _strVal)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

262

Read I2C device version extra.

#dene ReadI2CVersion(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_VERSION, _strVal)


Read I2C device version.

#dene ReadI2CVendorIdEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_VENDOR_ID, _strVal)


Read I2C device vendor extra.

#dene ReadI2CVendorId(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_VENDOR_ID, _strVal)


Read I2C device vendor.

#dene ReadI2CDeviceIdEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_DEVICE_ID, _strVal)


Read I2C device identier extra.

#dene ReadI2CDeviceId(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_DEVICE_ID, _strVal)


Read I2C device identier.

#dene I2CSendCommand(_port, _cmd, _result) __I2CSendCmd(_port, 0x02, _cmd, _result)


Send an I2C command.

#dene I2CSendCommandEx(_port, _addr, _cmd, _result) __I2CSendCmd(_port, _addr, _cmd, _result)


Send an I2C command extra.

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

LowSpeed module functions

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

#dene I2CSendCommandEx(_port, _addr, _cmd, _result) __I2CSendCmd(_port, _addr, _cmd, _result)

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

#dene LowspeedBytesReady(_port, _bready) __lowspeedBytesReady(_port, _bready)

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

LowSpeed module functions

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

#dene LowspeedCheckStatus(_port, _result) __lowspeedCheckStatus(_port, _result)

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

#dene LowspeedRead(_port, _buen, _buffer, _result) __lowspeedRead(_port, _buen, _buffer, _result)

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

LowSpeed module functions

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

#dene LowspeedStatus(_port, _bready, _result) __lowspeedStatus(_port, _bready, _result)

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

#dene LowspeedWrite(_port, _retlen, _buffer, _result) __lowspeedWrite(_port, _retlen, _buffer, _result)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

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

LowSpeed module functions

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

#dene ReadI2CDeviceId(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_DEVICE_ID, _strVal)

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

#dene ReadI2CDeviceIdEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_DEVICE_ID, _strVal)

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

LowSpeed module functions

268

_addr The I2C device address. _strVal A string containing the device identier. See also: ReadI2CDeviceId

4.29.2.11

#dene ReadI2CDeviceInfo(_port, _info, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, _info, _strVal)

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

#dene ReadI2CDeviceInfoEx(_port, _addr, _info, _strVal) __ReadI2CDeviceInfoEx(_port, _addr, _info, _strVal)

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

LowSpeed module functions

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

#dene ReadI2CVendorId(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_VENDOR_ID, _strVal)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

270

4.29.2.15

#dene ReadI2CVendorIdEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_VENDOR_ID, _strVal)

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

#dene ReadI2CVersion(_port, _strVal) ReadI2CDeviceInfoEx(_port, 0x02, I2C_REG_VERSION, _strVal)

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

#dene ReadI2CVersionEx(_port, _addr, _strVal) ReadI2CDeviceInfoEx(_port, _addr, I2C_REG_VERSION, _strVal)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.29

LowSpeed module functions

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

#dene ReadSensorUS(_port, _value) __ReadSensorUS(_port, _value)

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

#dene ReadSensorUSEx(_port, _values, _result) __ReadSensorUSEx(_port, _values, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.30

Low level LowSpeed module functions

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 LowSpeed module functions

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.

#dene GetLSInputBufferInPtr(_p, _n) __GetLSInputBufferInPtr(_p, _n)


Get I2C input buffer in-pointer.

#dene GetLSInputBufferOutPtr(_p, _n) __GetLSInputBufferOutPtr(_p, _n)


Get I2C input buffer out-pointer.

#dene GetLSInputBufferBytesToRx(_p, GetLSInputBufferBytesToRx(_p, _n)


Get I2C input buffer bytes to rx.

_n)

__-

#dene GetLSOutputBuffer(_p, _offset, _cnt, _data) __getLSOutputBuffer(_p, _offset, _cnt, _data)


Get I2C output buffer data.

#dene GetLSOutputBufferInPtr(_p, _n) __GetLSOutputBufferInPtr(_p, _n)


Get I2C output buffer in-pointer.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.30

Low level LowSpeed module functions

273

#dene GetLSOutputBufferOutPtr(_p, _n) __GetLSOutputBufferOutPtr(_p, _n)


Get I2C output buffer out-pointer.

#dene GetLSOutputBufferBytesToRx(_p, GetLSOutputBufferBytesToRx(_p, _n)


Get I2C output buffer bytes to rx.

_n)

__-

#dene GetLSMode(_p, _n) __GetLSMode(_p, _n)


Get I2C mode.

#dene GetLSChannelState(_p, _n) __GetLSChannelState(_p, _n)


Get I2C channel state.

#dene GetLSErrorType(_p, _n) __GetLSErrorType(_p, _n)


Get I2C error type.

#dene GetLSState(_n) __GetLSState(_n)


Get I2C state.

#dene GetLSSpeed(_n) __GetLSSpeed(_n)


Get I2C speed.

#dene GetLSNoRestartOnRead(_n) __GetLSNoRestartOnRead(_n)


Get I2C no restart on read setting.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.30

Low level LowSpeed module functions

274

4.30.2.2

#dene GetLSErrorType(_p, _n) __GetLSErrorType(_p, _n)

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

#dene GetLSInputBuffer(_p, _offset, _cnt, _data) __getLSInputBuffer(_p, _offset, _cnt, _data)

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

#dene GetLSInputBufferBytesToRx(_p, _n) __GetLSInputBufferBytesToRx(_p, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.30

Low level LowSpeed module functions

275

4.30.2.5

#dene GetLSInputBufferInPtr(_p, _n) __GetLSInputBufferInPtr(_p, _n)

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

#dene GetLSInputBufferOutPtr(_p, _n) __GetLSInputBufferOutPtr(_p, _n)

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

#dene GetLSMode(_p, _n) __GetLSMode(_p, _n)

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

#dene GetLSNoRestartOnRead(_n) __GetLSNoRestartOnRead(_n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.30

Low level LowSpeed module functions

276

4.30.2.9

#dene GetLSOutputBuffer(_p, _offset, _cnt, _data) __getLSOutputBuffer(_p, _offset, _cnt, _data)

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

#dene GetLSOutputBufferBytesToRx(_p, _n) __GetLSOutputBufferBytesToRx(_p, _n)

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

#dene GetLSOutputBufferInPtr(_p, _n) __GetLSOutputBufferInPtr(_p, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

277

4.30.2.12

#dene GetLSOutputBufferOutPtr(_p, _n) __GetLSOutputBufferOutPtr(_p, _n)

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

#dene GetLSSpeed(_n) __GetLSSpeed(_n)

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

#dene GetLSState(_n) __GetLSState(_n)

Get I2C state. This method returns the value of the I2C state. Parameters: _n The I2C state. See LSState constants.

4.31

Display module functions

Functions for accessing and modifying display module features. Denes #dene ClearLine(_line) __TextOutEx(0, _line, __BlankLine, 0)
Clear a line on the LCD screen.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

278

#dene PointOutEx(_x, _y, _options) __PointOutEx(_x,_y,_options)


Draw a point with drawing options.

#dene PointOut(_x, _y) __PointOutEx(_x,_y,0)


Draw a point.

#dene ClearScreen() __PointOutEx(200, 200, 1)


Clear LCD screen.

#dene LineOutEx(_x1, _y1, _x2, _y2, _options) __LineOutEx(_x1,_y1,_x2,_y2,_options)


Draw a line with drawing options.

#dene LineOut(_x1, _y1, _x2, _y2) __LineOutEx(_x1,_y1,_x2,_y2,0)


Draw a line.

#dene RectOutEx(_x, _y, _w, _h, _options) __RectOutEx(_x,_y,_w,_h,_options)


Draw a rectangle with drawing options.

#dene RectOut(_x, _y, _w, _h) __RectOutEx(_x,_y,_w,_h,0)


Draw a rectangle.

#dene CircleOutEx(_x, _y, _r, _options) __CircleOutEx(_x,_y,_r,_options)


Draw a circle with drawing options.

#dene CircleOut(_x, _y, _r) __CircleOutEx(_x,_y,_r,0)


Draw a circle.

#dene NumOutEx(_x, _y, _num, _options) __NumOutEx(_x,_y,_num,_options)


Draw a number with drawing options.

#dene NumOut(_x, _y, _num) __NumOutEx(_x,_y,_num,0)


Draw a number.

#dene TextOutEx(_x, _y, _txt, _options) __TextOutEx(_x,_y,_txt,_options)


Draw text.

#dene TextOut(_x, _y, _txt) __TextOutEx(_x,_y,_txt,0)


Draw text.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

279

#dene GraphicOutEx(_x, _y, _le, _vars, _options) __GraphicOutEx(_x,_y,_le,_vars,_options)


Draw a graphic image with parameters and drawing options.

#dene GraphicOut(_x, GraphicOutEmptyVars,0)


Draw a graphic image.

_y,

_le)

__GraphicOutEx(_x,_y,_le,__-

#dene GraphicArrayOutEx(_x, _y, _data, GraphicArrayOutEx(_x,_y,_data,_vars,_options)

_vars,

_options)

__-

Draw a graphic image from byte array with parameters and drawing options.

#dene GraphicArrayOut(_x, _y, _data) __GraphicArrayOutEx(_x,_y,_data,__GraphicOutEmptyVars,0)


Draw a graphic image from byte array.

#dene EllipseOutEx(_x, _y, _rX, _rY, _options) __EllipseOutEx(_x,_y,_rX,_rY,_options)


Draw an ellipse with drawing options.

#dene EllipseOut(_x, _y, _rX, _rY) __EllipseOutEx(_x,_y,_rX,_rY,0)


Draw an ellipse.

#dene PolyOutEx(_points, _options) __PolyOutEx(_points,_options)


Draw a polygon with drawing options.

#dene PolyOut(_points) __PolyOutEx(_points,0)


Draw a polygon.

#dene FontTextOutEx(_x, _y, _fnt, _txt, _options) __FontTextOutEx(_x,_y,_fnt,_txt,_options)


Draw text with font and drawing options.

#dene FontTextOut(_x, _y, _fnt, _txt) __FontTextOutEx(_x,_y,_fnt,_txt,0)


Draw text with font.

#dene FontNumOutEx(_x, _y, _fnt, _num, _options) __FontNumOutEx(_x,_y,_fnt,_num,_options)


Draw a number with font and drawing options.

#dene FontNumOut(_x, _y, _fnt, _num) __FontNumOutEx(_x,_y,_fnt,_num,0)


Draw a number with font.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

280

#dene GetDisplayEraseMask(_n) __GetDisplayEraseMask(_n)


Read the display erase mask value.

#dene GetDisplayUpdateMask(_n) __GetDisplayUpdateMask(_n)


Read the display update mask value.

#dene GetDisplayFont(_n) __GetDisplayFont(_n)


Read the display font memory address.

#dene GetDisplayDisplay(_n) __GetDisplayDisplay(_n)


Read the display memory address.

#dene GetDisplayFlags(_n) __GetDisplayFlags(_n)


Read the display ags.

#dene GetDisplayTextLinesCenterFlags(_n) GetDisplayTextLinesCenterFlags(_n)


Read the display text lines center ags.

__-

#dene GetDisplayContrast(_n) __GetDisplayContrast(_n)


Read the display contrast setting.

#dene GetDisplayNormal(_x, _line, _cnt, _data) __getDisplayNormal(_x, _line, _cnt, _data)


Read pixel data from the normal display buffer.

#dene GetDisplayPopup(_x, _line, _cnt, _data) __getDisplayPopup(_x, _line, _cnt, _data)


Read pixel data from the popup display buffer.

#dene SetDisplayFont(_n) __setDisplayFont(_n)


Set the display font memory address.

#dene SetDisplayDisplay(_n) __setDisplayDisplay(_n)


Set the display memory address.

#dene SetDisplayEraseMask(_n) __setDisplayEraseMask(_n)


Set the display erase mask.

#dene SetDisplayFlags(_n) __setDisplayFlags(_n)


Set the display ags.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

281

#dene SetDisplayTextLinesCenterFlags(_n) setDisplayTextLinesCenterFlags(_n)


Set the display text lines center ags.

__-

#dene SetDisplayUpdateMask(_n) __setDisplayUpdateMask(_n)


Set the display update mask.

#dene SetDisplayContrast(_n) __setDisplayContrast(_n)


Set the display contrast.

#dene SetDisplayNormal(_x, _line, _cnt, _data) __setDisplayNormal(_x, _line, _cnt, _data)


Write pixel data to the normal display buffer.

#dene SetDisplayPopup(_x, _line, _cnt, _data) __setDisplayPopup(_x, _line, _cnt, _data)


Write pixel data to the popup display buffer.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

282

4.31.2.2

#dene CircleOutEx(_x, _y, _r, _options) __CircleOutEx(_x,_y,_r,_options)

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

#dene ClearLine(_line) __TextOutEx(0, _line, __BlankLine, 0)

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

#dene ClearScreen() __PointOutEx(200, 200, 1)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

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

#dene EllipseOutEx(_x, _y, _rX, _rY, _options) __EllipseOutEx(_x,_y,_rX,_rY,_options)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

284

4.31.2.7

#dene FontNumOut(_x, _y, _fnt, _num) __FontNumOutEx(_x,_y,_fnt,_num,0)

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

#dene FontNumOutEx(_x, _y, _fnt, _num, _options) __FontNumOutEx(_x,_y,_fnt,_num,_options)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

285

4.31.2.9

#dene FontTextOut(_x, _y, _fnt, _txt) __FontTextOutEx(_x,_y,_fnt,_txt,0)

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

#dene FontTextOutEx(_x, _y, _fnt, _txt, _options) __FontTextOutEx(_x,_y,_fnt,_txt,_options)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

286

4.31.2.11

#dene GetDisplayContrast(_n) __GetDisplayContrast(_n)

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

#dene GetDisplayDisplay(_n) __GetDisplayDisplay(_n)

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

#dene GetDisplayEraseMask(_n) __GetDisplayEraseMask(_n)

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

#dene GetDisplayFlags(_n) __GetDisplayFlags(_n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

287

4.31.2.15

#dene GetDisplayFont(_n) __GetDisplayFont(_n)

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

#dene GetDisplayNormal(_x, _line, _cnt, _data) __getDisplayNormal(_x, _line, _cnt, _data)

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

#dene GetDisplayPopup(_x, _line, _cnt, _data) __getDisplayPopup(_x, _line, _cnt, _data)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

288

4.31.2.18

#dene GetDisplayTextLinesCenterFlags(_n) __GetDisplayTextLinesCenterFlags(_n)

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

#dene GetDisplayUpdateMask(_n) __GetDisplayUpdateMask(_n)

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

#dene GraphicArrayOut(_x, _y, _data) __GraphicArrayOutEx(_x,_y,_data,__GraphicOutEmptyVars,0)

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

#dene GraphicArrayOutEx(_x, _y, _data, _vars, _options) __GraphicArrayOutEx(_x,_y,_data,_vars,_options)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

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

#dene GraphicOut(_x, _y, _le) __GraphicOutEx(_x,_y,_le,__GraphicOutEmptyVars,0)

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

#dene GraphicOutEx(_x, _y, _le, _vars, _options) __GraphicOutEx(_x,_y,_le,_vars,_options)

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

Display module functions

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

#dene LineOut(_x1, _y1, _x2, _y2) __LineOutEx(_x1,_y1,_x2,_y2,0)

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

#dene LineOutEx(_x1, _y1, _x2, _y2, _options) __LineOutEx(_x1,_y1,_x2,_y2,_options)

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

Display module functions

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

#dene NumOut(_x, _y, _num) __NumOutEx(_x,_y,_num,0)

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

#dene NumOutEx(_x, _y, _num, _options) __NumOutEx(_x,_y,_num,_options)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

292

4.31.2.28

#dene PointOut(_x, _y) __PointOutEx(_x,_y,0)

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

#dene PointOutEx(_x, _y, _options) __PointOutEx(_x,_y,_options)

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

#dene PolyOut(_points) __PolyOutEx(_points,0)

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

Display module functions

293

Parameters: _points An array of LocationType points that dene the polygon.

4.31.2.31

#dene PolyOutEx(_points, _options) __PolyOutEx(_points,_options)

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

#dene RectOut(_x, _y, _w, _h) __RectOutEx(_x,_y,_w,_h,0)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

294

4.31.2.33

#dene RectOutEx(_x, _y, _w, _h, _options) __RectOutEx(_x,_y,_w,_h,_options)

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

#dene SetDisplayContrast(_n) __setDisplayContrast(_n)

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

#dene SetDisplayDisplay(_n) __setDisplayDisplay(_n)

Set the display memory address. This function lets you set the current display memory address. Parameters: _n The new display memory address.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.31

Display module functions

295

4.31.2.36

#dene SetDisplayEraseMask(_n) __setDisplayEraseMask(_n)

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

#dene SetDisplayFlags(_n) __setDisplayFlags(_n)

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

#dene SetDisplayFont(_n) __setDisplayFont(_n)

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

#dene SetDisplayNormal(_x, _line, _cnt, _data) __setDisplayNormal(_x, _line, _cnt, _data)

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

Display module functions

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

#dene SetDisplayPopup(_x, _line, _cnt, _data) __setDisplayPopup(_x, _line, _cnt, _data)

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

#dene SetDisplayTextLinesCenterFlags(_n) __setDisplayTextLinesCenterFlags(_n)

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

#dene SetDisplayUpdateMask(_n) __setDisplayUpdateMask(_n)

Set the display update mask. This function lets you set the current display update mask. Parameters: _n The new display update mask.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

297

4.31.2.43

#dene TextOut(_x, _y, _txt) __TextOutEx(_x,_y,_txt,0)

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

#dene TextOutEx(_x, _y, _txt, _options) __TextOutEx(_x,_y,_txt,_options)

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

Sound module functions

Functions for accessing and modifying sound module features.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

298

Denes #dene PlayToneEx(_freq, _dur, _vol, _loop) __PlayToneEx(_freq,_dur,_vol,_loop)


Play a tone with extra options.

#dene PlayTone(_freq, _dur) __PlayToneEx(_freq,_dur,4,0)


Play a tone.

#dene PlayFile(_le) __PlayFileEx(_le,4,0)


Play a le.

#dene PlayFileEx(_le, _vol, _loop) __PlayFileEx(_le,_vol,_loop)


Play a le with extra options.

#dene GetSoundState(_state, _ags) __GetSoundState(_state, _ags)


Get sound module state and ags.

#dene SetSoundState(_state, _ags, _result) __setSoundState(_state, _ags, _result)


Set sound module state and ags.

#dene GetSoundFrequency(_n) __GetSoundFrequency(_n)


Get sound frequency.

#dene GetSoundDuration(_n) __GetSoundDuration(_n)


Get sound duration.

#dene GetSoundSampleRate(_n) __GetSoundSampleRate(_n)


Get sample rate.

#dene GetSoundMode(_n) __GetSoundMode(_n)


Get sound mode.

#dene GetSoundVolume(_n) __GetSoundVolume(_n)


Get volume.

#dene SetSoundDuration(_n) __setSoundDuration(_n)


Set sound duration.

#dene SetSoundFlags(_n) __setSoundFlags(_n)


Set sound module ags.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

299

#dene SetSoundFrequency(_n) __setSoundFrequency(_n)


Set sound frequency.

#dene SetSoundMode(_n) __setSoundMode(_n)


Set sound mode.

#dene SetSoundModuleState(_n) __setSoundModuleState(_n)


Set sound module state.

#dene SetSoundSampleRate(_n) __setSoundSampleRate(_n)


Set sample rate.

#dene SetSoundVolume(_n) __setSoundVolume(_n)


Set sound volume.

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

#dene GetSoundFrequency(_n) __GetSoundFrequency(_n)

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

Sound module functions

300

Parameters: _n The current sound frequency.

4.32.2.3

#dene GetSoundMode(_n) __GetSoundMode(_n)

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

#dene GetSoundSampleRate(_n) __GetSoundSampleRate(_n)

Get sample rate. Return the current sound sample rate. See also: SetSoundSampleRate Parameters: _n The current sound sample rate.

4.32.2.5

#dene GetSoundState(_state, _ags) __GetSoundState(_state, _ags)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

301

4.32.2.6

#dene GetSoundVolume(_n) __GetSoundVolume(_n)

Get volume. Return the current sound volume. See also: SetSoundVolume Parameters: _n The current sound volume.

4.32.2.7

#dene PlayFile(_le) __PlayFileEx(_le,4,0)

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

#dene PlayFileEx(_le, _vol, _loop) __PlayFileEx(_le,_vol,_loop)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

302

4.32.2.9

#dene PlayTone(_freq, _dur) __PlayToneEx(_freq,_dur,4,0)

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

#dene PlayToneEx(_freq, _dur, _vol, _loop) __PlayToneEx(_freq,_dur,_vol,_loop)

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

#dene SetSoundDuration(_n) __setSoundDuration(_n)

Set sound duration. Set the sound duration. See also: GetSoundDuration Parameters: _n The new sound duration

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

303

4.32.2.12

#dene SetSoundFlags(_n) __setSoundFlags(_n)

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

#dene SetSoundFrequency(_n) __setSoundFrequency(_n)

Set sound frequency. Set the sound frequency. See also: GetSoundFrequency Parameters: _n The new sound frequency

4.32.2.14

#dene SetSoundMode(_n) __setSoundMode(_n)

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

#dene SetSoundModuleState(_n) __setSoundModuleState(_n)

Set sound module state. Set the sound module state. See the SoundState constants group.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.32

Sound module functions

304

See also: GetSoundState Parameters: _n The new sound state

4.32.2.16

#dene SetSoundSampleRate(_n) __setSoundSampleRate(_n)

Set sample rate. Set the sound sample rate. See also: GetSoundSampleRate Parameters: _n The new sample rate

4.32.2.17

#dene SetSoundState(_state, _ags, _result) __setSoundState(_state, _ags, _result)

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

#dene SetSoundVolume(_n) __setSoundVolume(_n)

Set sound volume. Set the sound volume.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

305

See also: GetSoundVolume Parameters: _n The new volume

4.33

Command module functions

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.

#dene SetIOMapValue(_modName, modName, _offset, _n)


Set IOMap value by name.

_offset,

_n)

__SetIOMapValue(_-

#dene SetIOMapBytesByID(_modID, _offset, SetIOMapBytesByID(_modID, _offset, _cnt, _arrIn)


Set IOMap bytes by ID.

_cnt,

_arrIn)

__-

#dene SetIOMapValueByID(_modID, _offset, _n) __SetIOMapValueByID(_modID, _offset, _n)


Set IOMap value by ID.

#dene SetCommandModuleValue(_offset, ByID(CommandModuleID, _offset, _n)


Set Command module IOMap value.

_n)

SetIOMapValue-

#dene SetIOCtrlModuleValue(_offset, ByID(IOCtrlModuleID, _offset, _n)


Set IOCtrl module IOMap value.

_n)

SetIOMapValue-

#dene SetLoaderModuleValue(_offset, ByID(LoaderModuleID, _offset, _n)


Set Loader module IOMap value.

_n)

SetIOMapValue-

#dene SetUIModuleValue(_offset, _n) SetIOMapValueByID(UIModuleID, _offset, _n)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

306

Set Ui module IOMap value.

#dene SetSoundModuleValue(_offset, ByID(SoundModuleID, _offset, _n)


Set Sound module IOMap value.

_n)

SetIOMapValue-

#dene SetButtonModuleValue(_offset, ByID(ButtonModuleID, _offset, _n)


Set Button module IOMap value.

_n)

SetIOMapValue-

#dene SetInputModuleValue(_offset, ByID(InputModuleID, _offset, _n)


Set Input module IOMap value.

_n)

SetIOMapValue-

#dene SetOutputModuleValue(_offset, ByID(OutputModuleID, _offset, _n)


Set Output module IOMap value.

_n)

SetIOMapValue-

#dene SetLowSpeedModuleValue(_offset, ByID(LowSpeedModuleID, _offset, _n)


Set Lowspeed module IOMap value.

_n)

SetIOMapValue-

#dene SetDisplayModuleValue(_offset, ByID(DisplayModuleID, _offset, _n)


Set Display module IOMap value.

_n)

SetIOMapValue-

#dene SetCommModuleValue(_offset, ByID(CommModuleID, _offset, _n)


Set Comm module IOMap value.

_n)

SetIOMapValue-

#dene SetCommandModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(CommandModuleID, _offset, _cnt, _arrIn)


Set Command module IOMap bytes.

#dene SetLowSpeedModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(LowSpeedModuleID, _offset, _cnt, _arrIn)


Set Lowspeed module IOMap bytes.

#dene SetDisplayModuleBytes(_offset, _cnt, ByID(DisplayModuleID, _offset, _cnt, _arrIn)


Set Display module IOMap bytes.

_arrIn)

SetIOMapBytes-

#dene SetCommModuleBytes(_offset, _cnt, ByID(CommModuleID, _offset, _cnt, _arrIn)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

_arrIn)

SetIOMapBytes-

4.33

Command module functions

307

Set Comm module IOMap bytes.

#dene GetIOMapBytes(_modName, _offset, getIOMapBytes(_modName, _offset, _cnt, _arrOut)


Get IOMap bytes by name.

_cnt,

_arrOut)

__-

#dene GetIOMapValue(_modName, modName, _offset, _n)


Get IOMap value by name.

_offset,

_n) __getIOMapValue(_-

#dene GetIOMapBytesByID(_modID, _offset, _cnt, getIOMapBytesByID(_modID, _offset, _cnt, _arrOut)


Get IOMap bytes by ID.

_arrOut)

__-

#dene GetIOMapValueByID(_modID, _offset, _n) __getIOMapValueByID(_modID, _offset, _n)


Get IOMap value by ID.

#dene GetCommandModuleValue(_offset, ByID(CommandModuleID, _offset, _n)


Get Command module IOMap value.

_n)

GetIOMapValue-

#dene GetLoaderModuleValue(_offset, ByID(LoaderModuleID, _offset, _n)


Get Loader module IOMap value.

_n)

GetIOMapValue-

#dene GetSoundModuleValue(_offset, ByID(SoundModuleID, _offset, _n)


Get Sound module IOMap value.

_n)

GetIOMapValue-

#dene GetButtonModuleValue(_offset, ByID(ButtonModuleID, _offset, _n)


Get Button module IOMap value.

_n)

GetIOMapValue-

#dene GetUIModuleValue(_offset, _n) GetIOMapValueByID(UIModuleID, _offset, _n)


Get Ui module IOMap value.

#dene GetInputModuleValue(_offset, ByID(InputModuleID, _offset, _n)


Get Input module IOMap value.

_n)

GetIOMapValue-

#dene GetOutputModuleValue(_offset, ByID(OutputModuleID, _offset, _n)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

_n)

GetIOMapValue-

4.33

Command module functions

308

Get Output module IOMap value.

#dene GetLowSpeedModuleValue(_offset, ByID(LowSpeedModuleID, _offset, _n)


Get LowSpeed module IOMap value.

_n)

GetIOMapValue-

#dene GetDisplayModuleValue(_offset, ByID(DisplayModuleID, _offset, _n)


Get Display module IOMap value.

_n)

GetIOMapValue-

#dene GetCommModuleValue(_offset, ByID(CommModuleID, _offset, _n)


Get Comm module IOMap value.

_n)

GetIOMapValue-

#dene GetLowSpeedModuleBytes(_offset, getLowSpeedModuleBytes(_offset, _cnt, _arrOut)


Get Lowspeed module IOMap bytes.

_cnt,

_arrOut)

__-

#dene GetDisplayModuleBytes(_offset, getDisplayModuleBytes(_offset, _cnt, _arrOut)


Get Display module IOMap bytes.

_cnt,

_arrOut)

__-

#dene GetCommModuleBytes(_offset, getCommModuleBytes(_offset, _cnt, _arrOut)


Get Comm module IOMap bytes.

_cnt,

_arrOut)

__-

#dene GetCommandModuleBytes(_offset, getCommandModuleBytes(_offset, _cnt, _arrOut)


Get Command module IOMap bytes.

_cnt,

_arrOut)

__-

#dene ResetSleepTimer syscall KeepAlive, __KeepAliveArgs


Reset the sleep timer.

#dene GetFirstTick(_value) __GetFirstTick(_value)


Get the rst tick.

#dene Wait(_n) waitv _n


Wait some milliseconds.

4.33.1

Detailed Description

Functions for accessing and modifying Command module features.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

309

4.33.2 4.33.2.1

Dene Documentation #dene GetButtonModuleValue(_offset, _n) GetIOMapValueByID(ButtonModuleID, _offset, _n)

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

#dene GetCommandModuleBytes(_offset, _cnt, _arrOut) __getCommandModuleBytes(_offset, _cnt, _arrOut)

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

#dene GetCommandModuleValue(_offset, _n) GetIOMapValueByID(CommandModuleID, _offset, _n)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

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

#dene GetCommModuleBytes(_offset, _cnt, _arrOut) __getCommModuleBytes(_offset, _cnt, _arrOut)

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

#dene GetCommModuleValue(_offset, _n) GetIOMapValueByID(CommModuleID, _offset, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

311

4.33.2.6

#dene GetDisplayModuleBytes(_offset, _cnt, _arrOut) __getDisplayModuleBytes(_offset, _cnt, _arrOut)

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

#dene GetDisplayModuleValue(_offset, _n) GetIOMapValueByID(DisplayModuleID, _offset, _n)

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

#dene GetFirstTick(_value) __GetFirstTick(_value)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

312

4.33.2.9

#dene GetInputModuleValue(_offset, _n) GetIOMapValueByID(InputModuleID, _offset, _n)

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

#dene GetIOMapBytes(_modName, _offset, _cnt, _arrOut) __getIOMapBytes(_modName, _offset, _cnt, _arrOut)

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

#dene GetIOMapBytesByID(_modID, _offset, _cnt, _arrOut) __getIOMapBytesByID(_modID, _offset, _cnt, _arrOut)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

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

#dene GetIOMapValue(_modName, _offset, _n) __getIOMapValue(_modName, _offset, _n)

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

#dene GetIOMapValueByID(_modID, _offset, _n) __getIOMapValueByID(_modID, _offset, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

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

#dene GetLoaderModuleValue(_offset, _n) GetIOMapValueByID(LoaderModuleID, _offset, _n)

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

#dene GetLowSpeedModuleBytes(_offset, _cnt, _arrOut) __getLowSpeedModuleBytes(_offset, _cnt, _arrOut)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

315

4.33.2.16

#dene GetLowSpeedModuleValue(_offset, _n) GetIOMapValueByID(LowSpeedModuleID, _offset, _n)

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

#dene GetOutputModuleValue(_offset, _n) GetIOMapValueByID(OutputModuleID, _offset, _n)

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

#dene GetSoundModuleValue(_offset, _n) GetIOMapValueByID(SoundModuleID, _offset, _n)

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

Command module functions

316

_n A variable that will contain the value read from the IOMap.

4.33.2.19

#dene GetUIModuleValue(_offset, _n) GetIOMapValueByID(UIModuleID, _offset, _n)

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

#dene ResetSleepTimer syscall KeepAlive, __KeepAliveArgs

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

317

4.33.2.22

#dene SetCommandModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(CommandModuleID, _offset, _cnt, _arrIn)

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

#dene SetCommandModuleValue(_offset, _n) SetIOMapValueByID(CommandModuleID, _offset, _n)

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

#dene SetCommModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(CommModuleID, _offset, _cnt, _arrIn)

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

Command module functions

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

#dene SetCommModuleValue(_offset, _n) SetIOMapValueByID(CommModuleID, _offset, _n)

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

#dene SetDisplayModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(DisplayModuleID, _offset, _cnt, _arrIn)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

319

4.33.2.27

#dene SetDisplayModuleValue(_offset, _n) SetIOMapValueByID(DisplayModuleID, _offset, _n)

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

#dene SetInputModuleValue(_offset, _n) SetIOMapValueByID(InputModuleID, _offset, _n)

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

#dene SetIOCtrlModuleValue(_offset, _n) SetIOMapValueByID(IOCtrlModuleID, _offset, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

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

#dene SetIOMapBytes(_modName, _offset, _cnt, _arrIn) __SetIOMapBytes(_modName, _offset, _cnt, _arrIn)

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

#dene SetIOMapBytesByID(_modID, _offset, _cnt, _arrIn) __SetIOMapBytesByID(_modID, _offset, _cnt, _arrIn)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

321

Warning: This function requires the enhanced NBC/NXC rmware.

4.33.2.32

#dene SetIOMapValue(_modName, _offset, _n) __SetIOMapValue(_modName, _offset, _n)

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

#dene SetIOMapValueByID(_modID, _offset, _n) __SetIOMapValueByID(_modID, _offset, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.33

Command module functions

322

4.33.2.34

#dene SetLoaderModuleValue(_offset, _n) SetIOMapValueByID(LoaderModuleID, _offset, _n)

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

#dene SetLowSpeedModuleBytes(_offset, _cnt, _arrIn) SetIOMapBytesByID(LowSpeedModuleID, _offset, _cnt, _arrIn)

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

#dene SetLowSpeedModuleValue(_offset, _n) SetIOMapValueByID(LowSpeedModuleID, _offset, _n)

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

Command module functions

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

#dene SetOutputModuleValue(_offset, _n) SetIOMapValueByID(OutputModuleID, _offset, _n)

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

#dene SetSoundModuleValue(_offset, _n) SetIOMapValueByID(SoundModuleID, _offset, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.34

Button module functions

324

4.33.2.39

#dene SetUIModuleValue(_offset, _n) SetIOMapValueByID(UIModuleID, _offset, _n)

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

#dene Wait(_n) waitv _n

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

Button module functions

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)

__-

#dene GetButtonPressCount(_b, _n) __GetButtonPressCount(_b, _n)


Get button press count.

#dene GetButtonLongPressCount(_b, _n) __GetButtonLongPressCount(_b, _n)


Get button long press count.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.34

Button module functions

325

#dene GetButtonShortReleaseCount(_b, GetButtonShortReleaseCount(_b, _n)


Get button short release count.

_n)

__-

#dene GetButtonLongReleaseCount(_b, GetButtonLongReleaseCount(_b, _n)


Get button long release count.

_n)

__-

#dene GetButtonReleaseCount(_b, _n) __GetButtonReleaseCount(_b, _n)


Get button release count.

#dene GetButtonState(_b, _n) __GetButtonState(_b, _n)


Get button state.

#dene SetButtonPressCount(_b, _n) __setButtonPressCount(_b, _n)


Set button press count.

#dene SetButtonLongPressCount(_b, _n) __setButtonLongPressCount(_b, _n)


Set button long press count.

#dene SetButtonShortReleaseCount(_b, _n) __setButtonShortReleaseCount(_b, _n)


Set button short release count.

#dene SetButtonLongReleaseCount(_b, _n) __setButtonLongReleaseCount(_b, _n)


Set button long release count.

#dene SetButtonReleaseCount(_b, _n) __setButtonReleaseCount(_b, _n)


Set button release count.

#dene SetButtonState(_b, _n) __setButtonState(_b, _n)


Set button state.

4.34.1

Detailed Description

Functions for accessing and modifying Button module features.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.34

Button module functions

326

4.34.2 4.34.2.1

Dene Documentation #dene GetButtonLongPressCount(_b, _n) __GetButtonLongPressCount(_b, _n)

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

#dene GetButtonLongReleaseCount(_b, _n) __GetButtonLongReleaseCount(_b, _n)

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

#dene GetButtonPressCount(_b, _n) __GetButtonPressCount(_b, _n)

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

#dene GetButtonReleaseCount(_b, _n) __GetButtonReleaseCount(_b, _n)

Get button release count. Return the release count of the specied button.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.34

Button module functions

327

Parameters: _b The button to check. See Button name constants. _n The button release count.

4.34.2.5

#dene GetButtonShortReleaseCount(_b, _n) __GetButtonShortReleaseCount(_b, _n)

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

#dene GetButtonState(_b, _n) __GetButtonState(_b, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.34

Button module functions

328

4.34.2.8

#dene SetButtonLongPressCount(_b, _n) __setButtonLongPressCount(_b, _n)

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

#dene SetButtonLongReleaseCount(_b, _n) __setButtonLongReleaseCount(_b, _n)

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

#dene SetButtonPressCount(_b, _n) __setButtonPressCount(_b, _n)

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

#dene SetButtonReleaseCount(_b, _n) __setButtonReleaseCount(_b, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

329

4.34.2.12

#dene SetButtonShortReleaseCount(_b, _n) __setButtonShortReleaseCount(_b, _n)

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

#dene SetButtonState(_b, _n) __setButtonState(_b, _n)

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.

#dene SetUIState(_n) __setUIState(_n)


Set UI state.

#dene SetUIButton(_n) __setUIButton(_n)


Set UI button.

#dene SetVMRunState(_n) __setVMRunState(_n)


Set VM run state.

#dene SetBatteryState(_n) __setBatteryState(_n)


Set battery state.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

330

#dene SetBluetoothState(_n) __setBluetoothState(_n)


Set bluetooth state.

#dene SetUsbState(_n) __setUsbState(_n)


Set Usb state.

#dene SetSleepTimeout(_n) __setSleepTimeout(_n)


Set sleep timeout.

#dene SetSleepTimer(_n) __setSleepTimer(_n)


Set the sleep timer.

#dene SetVolume(_n) __setVolume(_n)


Set volume.

#dene SetOnBrickProgramPointer(_n) __setOnBrickProgramPointer(_n)


Set on-brick program pointer.

#dene ForceOff(_n) __forceOff(_n)


Turn off NXT.

#dene SetAbortFlag(_n) __setAbortFlag(_n)


Set abort ag.

#dene GetBatteryLevel(_n) __GetBatteryLevel(_n)


Get battery Level.

#dene GetCommandFlags(_n) __GetCommandFlags(_n)


Get command ags.

#dene GetUIState(_n) __GetUIState(_n)


Get UI module state.

#dene GetUIButton(_n) __GetUIButton(_n)


Read UI button.

#dene GetVMRunState(_n) __GetVMRunState(_n)


Read VM run state.

#dene GetBatteryState(_n) __GetBatteryState(_n)


Get battery state.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

331

#dene GetBluetoothState(_n) __GetBluetoothState(_n)


Get bluetooth state.

#dene GetUsbState(_n) __GetUsbState(_n)


Get UI module USB state.

#dene GetSleepTimeout(_n) __GetSleepTimeout(_n)


Read sleep timeout.

#dene GetSleepTimer(_n) __GetSleepTimer(_n)


Read sleep timer.

#dene GetRechargeableBattery(_n) __GetRechargeableBattery(_n)


Read battery type.

#dene GetVolume(_n) __GetVolume(_n)


Read volume.

#dene GetOnBrickProgramPointer(_n) __GetOnBrickProgramPointer(_n)


Read the on brick program pointer value.

#dene GetAbortFlag(_n) __GetAbortFlag(_n)


Read abort ag.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

332

4.35.2.2

#dene GetAbortFlag(_n) __GetAbortFlag(_n)

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

#dene GetBatteryLevel(_n) __GetBatteryLevel(_n)

Get battery Level. Return the battery level in millivolts. Parameters: _n The battery level

4.35.2.4

#dene GetBatteryState(_n) __GetBatteryState(_n)

Get battery state. Return battery state information (0..4). Parameters: _n The battery state (0..4)

4.35.2.5

#dene GetBluetoothState(_n) __GetBluetoothState(_n)

Get bluetooth state. Return the bluetooth state. Parameters: _n The bluetooth state. See BluetoothState constants.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

333

4.35.2.6

#dene GetCommandFlags(_n) __GetCommandFlags(_n)

Get command ags. Return the command ags. Parameters: _n Command ags. See CommandFlags constants

4.35.2.7

#dene GetOnBrickProgramPointer(_n) __GetOnBrickProgramPointer(_n)

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

#dene GetRechargeableBattery(_n) __GetRechargeableBattery(_n)

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

#dene GetSleepTimeout(_n) __GetSleepTimeout(_n)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

334

4.35.2.10

#dene GetSleepTimer(_n) __GetSleepTimer(_n)

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

#dene GetUIButton(_n) __GetUIButton(_n)

Read UI button. Return user interface button information. Parameters: _n A UI button value. See UIButton constants.

4.35.2.12

#dene GetUIState(_n) __GetUIState(_n)

Get UI module state. Return the user interface state. Parameters: _n The UI module state. See UIState constants.

4.35.2.13

#dene GetUsbState(_n) __GetUsbState(_n)

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

#dene GetVMRunState(_n) __GetVMRunState(_n)

Read VM run state. Return VM run state information.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

335

Parameters: _n VM run state. See VM run state constants.

4.35.2.15

#dene GetVolume(_n) __GetVolume(_n)

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

#dene SetAbortFlag(_n) __setAbortFlag(_n)

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

#dene SetBatteryState(_n) __setBatteryState(_n)

Set battery state. Set battery state information. Parameters: _n The desired battery state (0..4).

4.35.2.18

#dene SetBluetoothState(_n) __setBluetoothState(_n)

Set bluetooth state. Set the Bluetooth state.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

336

Parameters: _n The desired bluetooth state. See BluetoothState constants.

4.35.2.19

#dene SetCommandFlags(_n) __setCommandFlags(_n)

Set command ags. Set the command ags. Parameters: _n The new command ags. See CommandFlags constants.

4.35.2.20

#dene SetOnBrickProgramPointer(_n) __setOnBrickProgramPointer(_n)

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

#dene SetSleepTimeout(_n) __setSleepTimeout(_n)

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

#dene SetSleepTimer(_n) __setSleepTimer(_n)

Set the sleep timer. Set the system sleep timer to the specied number of minutes. Parameters: _n The minutes left on the timer.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.35

Ui module functions

337

4.35.2.23

#dene SetUIButton(_n) __setUIButton(_n)

Set UI button. Set user interface button information. Parameters: _n A user interface button value. See UIButton constants.

4.35.2.24

#dene SetUIState(_n) __setUIState(_n)

Set UI state. Set the user interface state. Parameters: _n A user interface state value. See UIState constants.

4.35.2.25

#dene SetUsbState(_n) __setUsbState(_n)

Set Usb state. This method sets the value of the Usb state. Parameters: _n The Usb state.

4.35.2.26

#dene SetVMRunState(_n) __setVMRunState(_n)

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

#dene SetVolume(_n) __setVolume(_n)

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

Comm module functions

338

4.36

Comm module functions

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.

#dene ReceiveMessage(_queue, _clear, _msg, _result) __receiveMessage(_queue, _clear, _msg, _result)


Read a message from a queue/mailbox.

#dene ReceiveRemoteBool(_queue, _clear, receiveRemoteBool(_queue, _clear, _bval, _result)


Read a boolean value from a queue/mailbox.

_bval,

_result)

__-

#dene ReceiveRemoteNumber(_queue, _clear, receiveRemoteNumber(_queue, _clear, _val, _result)


Read a numeric value from a queue/mailbox.

_val,

_result)

__-

#dene ReceiveRemoteString(_queue, _clear, receiveMessage(_queue, _clear, _str, _result)


Read a string value from a queue/mailbox.

_str,

_result)

__-

#dene ReceiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result) __receiveRemoteMessageEx(_queue, _clear, _str, _val, _bval, _result)
Read a value from a queue/mailbox.

#dene SendResponseString(_queue, _msg, _result) __sendResponseString(_queue, _msg, _result)


Write a string value to a local response mailbox.

#dene SendResponseBool(_queue, _bval, _result) __sendResponseBool(_queue, _bval, _result)


Write a boolean value to a local response mailbox.

#dene SendResponseNumber(_queue, sendResponseNumber(_queue, _val, _result)


Write a numeric value to a local response mailbox.

_val,

_result)

__-

#dene BluetoothStatus(_conn, _result) __bluetoothStatus(_conn, _result)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

339

Check bluetooth status.

#dene BluetoothWrite(_conn, _buffer, _result) __bluetoothWrite(_conn, _buffer, _result)


Write to a bluetooth connection.

#dene SendRemoteBool(_conn, _queue, _bval, _result) __sendRemoteBool(_conn, _queue, _bval, _result)


Send a boolean value to a remote mailbox.

#dene SendRemoteNumber(_conn, _queue, sendRemoteNumber(_conn, _queue, _val, _result)


Send a numeric value to a remote mailbox.

_val,

_result)

__-

#dene SendRemoteString(_conn, _queue, _str, _result) __sendRemoteString(_conn, _queue, _str, _result)


Send a string value to a remote mailbox.

#dene RemoteMessageRead(_conn, remoteMessageRead(_conn, _queue, _result)


Send a MessageRead message.

_queue,

_result)

__-

#dene RemoteMessageWrite(_conn, _queue, sendRemoteString(_conn, _queue, _msg, _result)


Send a MessageWrite message.

_msg,

_result)

__-

#dene RemoteStartProgram(_conn, _lename, remoteStartProgram(_conn, _lename, _result)


Send a StartProgram message.

_result)

__-

#dene RemoteStopProgram(_conn, _result) __bluetoothWrite(_conn, __DCStopProgramPacket, _result)


Send a StopProgram message.

#dene RemotePlaySoundFile(_conn, _lename, _bloop, remotePlaySoundFile(_conn, _lename, _bloop, _result)


Send a PlaySoundFile message.

_result) __-

#dene RemotePlayTone(_conn, _frequency, _duration, remotePlayTone(_conn, _frequency, _duration, _result)


Send a PlayTone message.

_result)

__-

#dene RemoteStopSound(_conn, DCStopSoundPacket, _result)

_result) __bluetoothWrite(_conn,

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

340

Send a StopSound message.

#dene RemoteKeepAlive(_conn, DCKeepAlivePacket, _result)


Send a KeepAlive message.

_result) __bluetoothWrite(_conn,

__-

#dene RemoteResetScaledValue(_conn, remoteResetScaledValue(_conn, _port, _result)


Send a ResetScaledValue message.

_port,

_result)

__-

#dene RemoteResetMotorPosition(_conn, _port, _brelative, _result) __remoteResetMotorPosition(_conn, _port, _brelative, _result)


Send a ResetMotorPosition message.

#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.

#dene RS485Status(_sendingData, _dataAvail) __RS485Status(_sendingData, _dataAvail)


Check RS485 status.

#dene RS485Write(_buffer, _status) __RS485Write(_buffer, _status)


Write RS485 data.

#dene RS485Read(_buffer, _status) __RS485Read(_buffer, _status)


Read RS485 data.

#dene RS485Control(_cmd, _baud, _mode, _result) __RS485Control(_cmd, _baud, _mode, _result)


Control the RS485 port.

#dene RS485Uart(_baud, _mode, _result) __RS485Control(HS_CTRL_UART, _baud, _mode, _result)


Congure RS485 UART.

#dene RS485Init(_result) __RS485Control(HS_CTRL_INIT, 0, 0, _result)


Initialize RS485.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

341

#dene RS485Exit(_result) __RS485Control(HS_CTRL_EXIT, 0, 0, _result)


Exit RS485.

#dene SendRS485Bool(_bval, _status) __sendRS485Bool(_bval, _status)


Write RS485 boolean.

#dene SendRS485Number(_val, status)


Write RS485 numeric.

_status) __sendRS485Number(_val,

_-

#dene SendRS485String(_str, _status) __sendRS485String(_str, _status)


Write RS485 string.

#dene GetBTDeviceName(_p, _str) __GetBTDeviceName(_p, _str)


Get bluetooth device name.

#dene GetBTDeviceClass(_p, _n) __GetBTDeviceClass(_p, _n)


Get bluetooth device class.

#dene GetBTDeviceAddress(_p, _addr) __getBTDeviceAddress(_p, _addr)


Get bluetooth device address.

#dene GetBTDeviceStatus(_p, _n) __GetBTDeviceStatus(_p, _n)


Get bluetooth device status.

#dene GetBTConnectionName(_p, _str) __GetBTConnectionName(_p, _str)


Get bluetooth device name.

#dene GetBTConnectionClass(_p, _n) __GetBTConnectionClass(_p, _n)


Get bluetooth device class.

#dene GetBTConnectionPinCode(_p, _code) __GetBTConnectionPinCode(_p, _code)


Get bluetooth device pin code.

#dene GetBTConnectionAddress(_p, _addr) __getBTConnectionAddress(_p, _addr)


Get bluetooth device address.

#dene GetBTConnectionHandleNum(_p, GetBTConnectionHandleNum(_p, _n)


Get bluetooth device handle number.

_n)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

342

#dene GetBTConnectionStreamStatus(_p, GetBTConnectionStreamStatus(_p, _n)


Get bluetooth device stream status.

_n)

__-

#dene GetBTConnectionLinkQuality(_p, GetBTConnectionLinkQuality(_p, _n)


Get bluetooth device link quality.

_n)

__-

#dene GetBrickDataName(_str) Bytes(CommOffsetBrickDataName, 16, _str)


Get NXT name.

GetCommModule-

#dene GetBrickDataBluecoreVersion(_n)
Get NXT bluecore version.

#dene GetBrickDataAddress(_addr) Bytes(CommOffsetBrickDataBdAddr, 7, _addr)


Get NXT address.

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 GetBTInputBuffer(_offset, _cnt, _data) __getBTInputBuffer(_offset, _cnt, _data)


Get bluetooth input buffer data.

#dene GetBTInputBufferInPtr(_n)
Get bluetooth input buffer in-pointer.

#dene GetBTInputBufferOutPtr(_n)
Get bluetooth input buffer out-pointer.

#dene GetBTOutputBuffer(_offset, _cnt, _data) __getBTOutputBuffer(_offset, _cnt, _data)


Get bluetooth output buffer data.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

343

#dene GetBTOutputBufferInPtr(_n)
Get bluetooth output buffer in-pointer.

#dene GetBTOutputBufferOutPtr(_n)
Get bluetooth output buffer out-pointer.

#dene GetHSInputBuffer(_offset, _cnt, _data) __getHSInputBuffer(_offset, _cnt, _data)


Get hi-speed port input buffer data.

#dene GetHSInputBufferInPtr(_n)
Get hi-speed port input buffer in-pointer.

#dene GetHSInputBufferOutPtr(_n)
Get hi-speed port input buffer out-pointer.

#dene GetHSOutputBuffer(_offset, _cnt, _data) __getHSOutputBuffer(_offset, _cnt, _data)


Get hi-speed port output buffer data.

#dene GetHSOutputBufferInPtr(_n)
Get hi-speed port output buffer in-pointer.

#dene GetHSOutputBufferOutPtr(_n)
Get hi-speed port output buffer out-pointer.

#dene GetUSBInputBuffer(_offset, _cnt, _data) __getUSBInputBuffer(_offset, _cnt, _data)


Get usb input buffer data.

#dene GetUSBInputBufferInPtr(_n)
Get usb port input buffer in-pointer.

#dene GetUSBInputBufferOutPtr(_n)
Get usb port input buffer out-pointer.

#dene GetUSBOutputBuffer(_offset, _cnt, _data) __getUSBOutputBuffer(_offset, _cnt, _data)


Get usb output buffer data.

#dene GetUSBOutputBufferInPtr(_n)
Get usb port output buffer in-pointer.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

344

#dene GetUSBOutputBufferOutPtr(_n)
Get usb port output buffer out-pointer.

#dene GetUSBPollBuffer(_offset, _cnt, _data) __getUSBPollBuffer(_offset, _cnt, _data)


Get usb poll buffer data.

#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.

#dene SetBTInputBuffer(_offset, _cnt, _data) __setBTInputBuffer(_offset, _cnt, _data)


Set bluetooth input buffer data.

#dene SetBTInputBufferInPtr(_n) __setBTInputBufferInPtr(_n)


Set bluetooth input buffer in-pointer.

#dene SetBTInputBufferOutPtr(_n) __setBTInputBufferOutPtr(_n)


Set bluetooth input buffer out-pointer.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

345

#dene SetBTOutputBuffer(_offset, _cnt, _data) __setBTOutputBuffer(_offset, _cnt, _data)


Set bluetooth output buffer data.

#dene SetBTOutputBufferInPtr(_n) __setBTOutputBufferInPtr(_n)


Set bluetooth output buffer in-pointer.

#dene SetBTOutputBufferOutPtr(_n) __setBTOutputBufferOutPtr(_n)


Set bluetooth output buffer out-pointer.

#dene SetHSInputBuffer(_offset, _cnt, _data) __setHSInputBuffer(_offset, _cnt, _data)


Set hi-speed port input buffer data.

#dene SetHSInputBufferInPtr(_n) __setHSInputBufferInPtr(_n)


Set hi-speed port input buffer in-pointer.

#dene SetHSInputBufferOutPtr(_n) __setHSInputBufferOutPtr(_n)


Set hi-speed port input buffer out-pointer.

#dene SetHSOutputBuffer(_offset, _cnt, _data) __setHSOutputBuffer(_offset, _cnt, _data)


Set hi-speed port output buffer data.

#dene SetHSOutputBufferInPtr(_n) __setHSOutputBufferInPtr(_n)


Set hi-speed port output buffer in-pointer.

#dene SetHSOutputBufferOutPtr(_n) __setHSOutputBufferOutPtr(_n)


Set hi-speed port output buffer out-pointer.

#dene SetUSBInputBuffer(_offset, _cnt, _data) __setUSBInputBuffer(_offset, _cnt, _data)


Set USB input buffer data.

#dene SetUSBInputBufferInPtr(_n) __setUSBInputBufferInPtr(_n)


Set USB input buffer in-pointer.

#dene SetUSBInputBufferOutPtr(_n) __setUSBInputBufferOutPtr(_n)


Set USB input buffer out-pointer.

#dene SetUSBOutputBuffer(_offset, _cnt, _data) __setUSBOutputBuffer(_offset, _cnt, _data)


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

346

Set USB output buffer data.

#dene SetUSBOutputBufferInPtr(_n) __setUSBOutputBufferInPtr(_n)


Set USB output buffer in-pointer.

#dene SetUSBOutputBufferOutPtr(_n) __setUSBOutputBufferOutPtr(_n)


Set USB output buffer out-pointer.

#dene SetUSBPollBuffer(_offset, _cnt, _data) __setUSBPollBuffer(_offset, _cnt, _data)


Set USB poll buffer data.

#dene SetUSBPollBufferInPtr(_n) __setUSBPollBufferInPtr(_n)


Set USB poll buffer in-pointer.

#dene SetUSBPollBufferOutPtr(_n) __setUSBPollBufferOutPtr(_n)


Set USB poll buffer out-pointer.

#dene SetHSFlags(_n) __setHSFlags(_n)


Set hi-speed port ags.

#dene SetHSSpeed(_n) __setHSSpeed(_n)


Set hi-speed port speed.

#dene SetHSState(_n) __setHSState(_n)


Set hi-speed port state.

#dene SetUSBState(_n) __setUSBState(_n)


Set USB state.

#dene SetHSMode(_n) __setHSMode(_n)


Set hi-speed port mode.

4.36.1

Detailed Description

Functions for accessing and modifying Comm module features.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

347

4.36.2 4.36.2.1

Dene Documentation #dene BluetoothStatus(_conn, _result) __bluetoothStatus(_conn, _result)

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

#dene BluetoothWrite(_conn, _buffer, _result) __bluetoothWrite(_conn, _buffer, _result)

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

#dene GetBrickDataAddress(_addr) GetCommModuleBytes(CommOffsetBrickDataBdAddr, 7, _addr)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

348

4.36.2.4

#dene GetBrickDataBluecoreVersion(_n) Value:

compchk EQ, sizeof(_n), 2 \ GetCommModuleValue(CommOffsetBrickDataBluecoreVersion, _n)

Get NXT bluecore version. This method returns the bluecore version of the NXT. Parameters: _n The NXTs bluecore version number.

4.36.2.5

#dene GetBrickDataBtHardwareStatus(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBrickDataBtHwStatus, _n)

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

#dene GetBrickDataBtStateStatus(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBrickDataBtStateStatus, _n)

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

#dene GetBrickDataName(_str) GetCommModuleBytes(CommOffsetBrickDataName, 16, _str)

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

Comm module functions

349

Parameters: _str The NXTs bluetooth name.

4.36.2.8

#dene GetBrickDataTimeoutValue(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBrickDataTimeOutValue, _n)

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

#dene GetBTConnectionAddress(_p, _addr) __getBTConnectionAddress(_p, _addr)

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

#dene GetBTConnectionClass(_p, _n) __GetBTConnectionClass(_p, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

350

4.36.2.11

#dene GetBTConnectionHandleNum(_p, _n) __GetBTConnectionHandleNum(_p, _n)

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

#dene GetBTConnectionLinkQuality(_p, _n) __GetBTConnectionLinkQuality(_p, _n)

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

#dene GetBTConnectionName(_p, _str) __GetBTConnectionName(_p, _str)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

351

4.36.2.14

#dene GetBTConnectionPinCode(_p, _code) __GetBTConnectionPinCode(_p, _code)

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

#dene GetBTConnectionStreamStatus(_p, _n) __GetBTConnectionStreamStatus(_p, _n)

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

#dene GetBTDeviceAddress(_p, _addr) __getBTDeviceAddress(_p, _addr)

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

#dene GetBTDeviceClass(_p, _n) __GetBTDeviceClass(_p, _n)

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

Comm module functions

352

Parameters: _p The device table index. _n The device class of the specied bluetooth device.

4.36.2.18

#dene GetBTDeviceCount(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtDeviceCnt, _n)

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

#dene GetBTDeviceName(_p, _str) __GetBTDeviceName(_p, _str)

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

#dene GetBTDeviceNameCount(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtDeviceNameCnt, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

353

4.36.2.21

#dene GetBTDeviceStatus(_p, _n) __GetBTDeviceStatus(_p, _n)

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

#dene GetBTInputBuffer(_offset, _cnt, _data) __getBTInputBuffer(_offset, _cnt, _data)

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

#dene GetBTInputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtInBufInPtr, _n)

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

#dene GetBTInputBufferOutPtr(_n) Value:

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

354

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtInBufOutPtr, _n)

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

#dene GetBTOutputBuffer(_offset, _cnt, _data) __getBTOutputBuffer(_offset, _cnt, _data)

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

#dene GetBTOutputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtOutBufInPtr, _n)

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

#dene GetBTOutputBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetBtOutBufOutPtr, _n)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

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

#dene GetHSFlags(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsFlags, _n)

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

#dene GetHSInputBuffer(_offset, _cnt, _data) __getHSInputBuffer(_offset, _cnt, _data)

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

#dene GetHSInputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsInBufInPtr, _n)

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

Comm module functions

356

Parameters: _n The hi-speed port input buffers in-pointer value.

4.36.2.31

#dene GetHSInputBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsInBufOutPtr, _n)

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

#dene GetHSMode(_n) Value:

compchk EQ, sizeof(_n), 2 \ GetCommModuleValue(CommOffsetHsMode, _n)

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

#dene GetHSOutputBuffer(_offset, _cnt, _data) __getHSOutputBuffer(_offset, _cnt, _data)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

357

4.36.2.34

#dene GetHSOutputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsOutBufInPtr, _n)

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

#dene GetHSOutputBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsOutBufOutPtr, _n)

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

#dene GetHSSpeed(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsSpeed, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

358

4.36.2.37

#dene GetHSState(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetHsState, _n)

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

#dene GetUSBInputBuffer(_offset, _cnt, _data) __getUSBInputBuffer(_offset, _cnt, _data)

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

#dene GetUSBInputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbInBufInPtr, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

359

4.36.2.40

#dene GetUSBInputBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbInBufOutPtr, _n)

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

#dene GetUSBOutputBuffer(_offset, _cnt, _data) __getUSBOutputBuffer(_offset, _cnt, _data)

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

#dene GetUSBOutputBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbOutBufInPtr, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

360

4.36.2.43

#dene GetUSBOutputBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbOutBufOutPtr, _n)

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

#dene GetUSBPollBuffer(_offset, _cnt, _data) __getUSBPollBuffer(_offset, _cnt, _data)

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

#dene GetUSBPollBufferInPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbPollBufInPtr, _n)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

361

4.36.2.46

#dene GetUSBPollBufferOutPtr(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbPollBufOutPtr, _n)

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

#dene GetUSBState(_n) Value:

compchk EQ, sizeof(_n), 1 \ GetCommModuleValue(CommOffsetUsbState, _n)

Get USB state. This method returns the value of the USB state. Parameters: _n The USB state.

4.36.2.48

#dene ReceiveMessage(_queue, _clear, _msg, _result) __receiveMessage(_queue, _clear, _msg, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

362

4.36.2.49

#dene ReceiveRemoteBool(_queue, _clear, _bval, _result) __receiveRemoteBool(_queue, _clear, _bval, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

363

4.36.2.51

#dene ReceiveRemoteNumber(_queue, _clear, _val, _result) __receiveRemoteNumber(_queue, _clear, _val, _result)

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

#dene ReceiveRemoteString(_queue, _clear, _str, _result) __receiveMessage(_queue, _clear, _str, _result)

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

#dene RemoteKeepAlive(_conn, _result) __bluetoothWrite(_conn, __DCKeepAlivePacket, _result)

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

Comm module functions

364

Parameters: _conn The connection slot (0..3). _result A char value indicating whether the function call succeeded or not.

4.36.2.54

#dene RemoteMessageRead(_conn, _queue, _result) __remoteMessageRead(_conn, _queue, _result)

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

#dene RemoteMessageWrite(_conn, _queue, _msg, _result) __sendRemoteString(_conn, _queue, _msg, _result)

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

#dene RemotePlaySoundFile(_conn, _lename, _bloop, _result) __remotePlaySoundFile(_conn, _lename, _bloop, _result)

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

Comm module functions

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

#dene RemotePlayTone(_conn, _frequency, _duration, _result) __remotePlayTone(_conn, _frequency, _duration, _result)

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

#dene RemoteResetMotorPosition(_conn, _port, _brelative, _result) __remoteResetMotorPosition(_conn, _port, _brelative, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

366

4.36.2.59

#dene RemoteResetScaledValue(_conn, _port, _result) __remoteResetScaledValue(_conn, _port, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

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

#dene RemoteStartProgram(_conn, _lename, _result) __remoteStartProgram(_conn, _lename, _result)

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

#dene RemoteStopProgram(_conn, _result) __bluetoothWrite(_conn, __DCStopProgramPacket, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

368

4.36.2.64

#dene RemoteStopSound(_conn, _result) __bluetoothWrite(_conn, __DCStopSoundPacket, _result)

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

#dene RS485Control(_cmd, _baud, _mode, _result) __RS485Control(_cmd, _baud, _mode, _result)

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

#dene RS485Exit(_result) __RS485Control(HS_CTRL_EXIT, 0, 0, _result)

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

Comm module functions

369

Warning: This function requires the enhanced NBC/NXC rmware.

4.36.2.67

#dene RS485Init(_result) __RS485Control(HS_CTRL_INIT, 0, 0, _result)

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

#dene RS485Read(_buffer, _status) __RS485Read(_buffer, _status)

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

#dene RS485Status(_sendingData, _dataAvail) __RS485Status(_sendingData, _dataAvail)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

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

#dene RS485Uart(_baud, _mode, _result) __RS485Control(HS_CTRL_UART, _baud, _mode, _result)

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

#dene RS485Write(_buffer, _status) __RS485Write(_buffer, _status)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

371

4.36.2.72

#dene SendMessage(_queue, _msg, _result) __sendMessage(_queue, _msg, _result)

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

#dene SendRemoteBool(_conn, _queue, _bval, _result) __sendRemoteBool(_conn, _queue, _bval, _result)

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

#dene SendRemoteNumber(_conn, _queue, _val, _result) __sendRemoteNumber(_conn, _queue, _val, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

372

4.36.2.75

#dene SendRemoteString(_conn, _queue, _str, _result) __sendRemoteString(_conn, _queue, _str, _result)

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

#dene SendResponseBool(_queue, _bval, _result) __sendResponseBool(_queue, _bval, _result)

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

#dene SendResponseNumber(_queue, _val, _result) __sendResponseNumber(_queue, _val, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

373

4.36.2.78

#dene SendResponseString(_queue, _msg, _result) __sendResponseString(_queue, _msg, _result)

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

#dene SendRS485Bool(_bval, _status) __sendRS485Bool(_bval, _status)

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

#dene SendRS485Number(_val, _status) __sendRS485Number(_val, _status)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

374

4.36.2.81

#dene SendRS485String(_str, _status) __sendRS485String(_str, _status)

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

#dene SetBTInputBuffer(_offset, _cnt, _data) __setBTInputBuffer(_offset, _cnt, _data)

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

#dene SetBTInputBufferInPtr(_n) __setBTInputBufferInPtr(_n)

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

#dene SetBTInputBufferOutPtr(_n) __setBTInputBufferOutPtr(_n)

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

Comm module functions

375

Parameters: _n The new out-pointer value (0..127).

4.36.2.85

#dene SetBTOutputBuffer(_offset, _cnt, _data) __setBTOutputBuffer(_offset, _cnt, _data)

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

#dene SetBTOutputBufferInPtr(_n) __setBTOutputBufferInPtr(_n)

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

#dene SetBTOutputBufferOutPtr(_n) __setBTOutputBufferOutPtr(_n)

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

#dene SetHSFlags(_n) __setHSFlags(_n)

Set hi-speed port ags. This method sets the value of the hi-speed port ags.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

376

Parameters: _n The hi-speed port ags. See Hi-speed port ags constants.

4.36.2.89

#dene SetHSInputBuffer(_offset, _cnt, _data) __setHSInputBuffer(_offset, _cnt, _data)

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

#dene SetHSInputBufferInPtr(_n) __setHSInputBufferInPtr(_n)

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

#dene SetHSInputBufferOutPtr(_n) __setHSInputBufferOutPtr(_n)

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

#dene SetHSMode(_n) __setHSMode(_n)

Set hi-speed port mode. This method sets the value of the hi-speed port mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

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

#dene SetHSOutputBuffer(_offset, _cnt, _data) __setHSOutputBuffer(_offset, _cnt, _data)

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

#dene SetHSOutputBufferInPtr(_n) __setHSOutputBufferInPtr(_n)

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

#dene SetHSOutputBufferOutPtr(_n) __setHSOutputBufferOutPtr(_n)

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).

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

378

4.36.2.96

#dene SetHSSpeed(_n) __setHSSpeed(_n)

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

#dene SetHSState(_n) __setHSState(_n)

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

#dene SetUSBInputBuffer(_offset, _cnt, _data) __setUSBInputBuffer(_offset, _cnt, _data)

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

#dene SetUSBInputBufferInPtr(_n) __setUSBInputBufferInPtr(_n)

Set USB input buffer in-pointer. Set the value of the input buffer in-pointer. Parameters: _n The new in-pointer value (0..63).

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.36

Comm module functions

379

4.36.2.100

#dene SetUSBInputBufferOutPtr(_n) __setUSBInputBufferOutPtr(_n)

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

#dene SetUSBOutputBuffer(_offset, _cnt, _data) __setUSBOutputBuffer(_offset, _cnt, _data)

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

#dene SetUSBOutputBufferInPtr(_n) __setUSBOutputBufferInPtr(_n)

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

#dene SetUSBOutputBufferOutPtr(_n) __setUSBOutputBufferOutPtr(_n)

Set USB output buffer out-pointer. Set the value of the output buffer out-pointer. Parameters: _n The new out-pointer value (0..63).

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.37

IOCtrl module functions

380

4.36.2.104

#dene SetUSBPollBuffer(_offset, _cnt, _data) __setUSBPollBuffer(_offset, _cnt, _data)

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

#dene SetUSBPollBufferInPtr(_n) __setUSBPollBufferInPtr(_n)

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

#dene SetUSBPollBufferOutPtr(_n) __setUSBPollBufferOutPtr(_n)

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

#dene SetUSBState(_n) __setUSBState(_n)

Set USB state. This method sets the value of the USB state. Parameters: _n The USB state.

4.37

IOCtrl module functions

Functions for accessing and modifying IOCtrl module features.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

381

Denes #dene PowerDown SetIOCtrlModuleValue(IOCtrlOffsetPowerOn, IOCTRL_POWERDOWN)


Power down the NXT.

#dene RebootInFirmwareMode SetIOCtrlModuleValue(IOCtrlOffsetPowerOn, IOCTRL_BOOT)


Reboot the NXT in rmware download mode.

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

Loader module functions

Functions for accessing and modifying Loader module features. Denes #dene GetFreeMemory(_value) __GetFreeMemory(_value)
Get free ash memory.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

382

#dene CreateFile(_fname, _fsize, _handle, _result) __createFile(_fname, _fsize, _handle, _result)


Create a le.

#dene OpenFileAppend(_fname, _fsize, _handle, openFileAppend(_fname, _fsize, _handle, _result)


Open a le for appending.

_result)

__-

#dene OpenFileRead(_fname, _fsize, _handle, _result) __openFileRead(_fname, _fsize, _handle, _result)


Open a le for reading.

#dene CloseFile(_handle, _result) __closeFile(_handle, _result)


Close a le.

#dene ResolveHandle(_fname, _handle, _writeable, resolveHandle(_fname, _handle, _writeable, _result)


Resolve a handle.

_result)

__-

#dene RenameFile(_oldname, _newname, _result) __renameFile(_oldname, _newname, _result)


Rename a le.

#dene DeleteFile(_fname, _result) __deleteFile(_fname, _result)


Delete a le.

#dene ResizeFile(_fname, _newsize, _result) __leResize(_fname, _newsize, _result)


Resize a le.

#dene CreateFileLinear(_fname, _fsize, _handle, createFileLinear(_fname, _fsize, _handle, _result)


Create a linear le.

_result)

__-

#dene CreateFileNonLinear(_fname, _fsize, _handle, createFileNonLinear(_fname, _fsize, _handle, _result)


Create a non-linear le.

_result)

__-

#dene OpenFileReadLinear(_fname, _fsize, _handle, openFileReadLinear(_fname, _fsize, _handle, _result)


Open a linear le for reading.

_result)

__-

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

383

#dene FindFirstFile(_fname, _handle, _result) __ndFirstFile(_fname, _handle, _result)


Start searching for les.

#dene FindNextFile(_fname, _handle, _result) __ndNextFile(_fname, _handle, _result)


Continue searching for les.

#dene Read(_handle, _n, _result) __readValue(_handle, _n, _result)


Read a value from a le.

#dene ReadLn(_handle, _n, _result) __readLnValue(_handle, _n, _result)


Read a value from a le plus line ending.

#dene ReadBytes(_handle, _len, _buf, _result) __readBytes(_handle, _len, _buf, _result)


Read bytes from a le.

#dene ReadLnString(_handle, _output, _result) __readLnString(_handle, _output, _result)


Read a string from a le plus line ending.

#dene Write(_handle, _n, _result) __writeValue(_handle, _n, _result)


Write value to le.

#dene WriteLn(_handle, _n, _result) __writeLnValue(_handle, _n, _result)


Write a value and new line to a le.

#dene WriteString(_handle, _str, _cnt, _result) __writeString(_handle, _str, _cnt, _result)


Write string to a le.

#dene WriteLnString(_handle, _str, _cnt, _result) __writeLnString(_handle, _str, _cnt, _result)


Write string and new line to a le.

#dene WriteBytes(_handle, _buf, _cnt, _result) __writeBytes(_handle, _buf, _cnt, _result)


Write bytes to le.

#dene WriteBytesEx(_handle, _len, _buf, _result) __writeBytesEx(_handle, _len, _buf, _result)


Write bytes to a le with limit.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

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

#dene CreateFile(_fname, _fsize, _handle, _result) __createFile(_fname, _fsize, _handle, _result)

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

#dene CreateFileLinear(_fname, _fsize, _handle, _result) __createFileLinear(_fname, _fsize, _handle, _result)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

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

#dene CreateFileNonLinear(_fname, _fsize, _handle, _result) __createFileNonLinear(_fname, _fsize, _handle, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

386

4.38.2.5

#dene DeleteFile(_fname, _result) __deleteFile(_fname, _result)

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

#dene FindFirstFile(_fname, _handle, _result) __ndFirstFile(_fname, _handle, _result)

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

#dene FindNextFile(_fname, _handle, _result) __ndNextFile(_fname, _handle, _result)

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

Loader module functions

387

Warning: This function requires the enhanced NBC/NXC rmware.

4.38.2.8

#dene GetFreeMemory(_value) __GetFreeMemory(_value)

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

#dene OpenFileAppend(_fname, _fsize, _handle, _result) __openFileAppend(_fname, _fsize, _handle, _result)

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

#dene OpenFileRead(_fname, _fsize, _handle, _result) __openFileRead(_fname, _fsize, _handle, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

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

#dene OpenFileReadLinear(_fname, _fsize, _handle, _result) __openFileReadLinear(_fname, _fsize, _handle, _result)

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

#dene Read(_handle, _n, _result) __readValue(_handle, _n, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

389

4.38.2.13

#dene ReadBytes(_handle, _len, _buf, _result) __readBytes(_handle, _len, _buf, _result)

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

#dene ReadLn(_handle, _n, _result) __readLnValue(_handle, _n, _result)

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

#dene ReadLnString(_handle, _output, _result) __readLnString(_handle, _output, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

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

#dene RenameFile(_oldname, _newname, _result) __renameFile(_oldname, _newname, _result)

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

#dene ResizeFile(_fname, _newsize, _result) __leResize(_fname, _newsize, _result)

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

#dene ResolveHandle(_fname, _handle, _writeable, _result) __resolveHandle(_fname, _handle, _writeable, _result)

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

Loader module functions

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

#dene Write(_handle, _n, _result) __writeValue(_handle, _n, _result)

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

#dene WriteBytes(_handle, _buf, _cnt, _result) __writeBytes(_handle, _buf, _cnt, _result)

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.38

Loader module functions

392

4.38.2.21

#dene WriteBytesEx(_handle, _len, _buf, _result) __writeBytesEx(_handle, _len, _buf, _result)

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

#dene WriteLn(_handle, _n, _result) __writeLnValue(_handle, _n, _result)

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

#dene WriteLnString(_handle, _str, _cnt, _result) __writeLnString(_handle, _str, _cnt, _result)

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

#dene WriteString(_handle, _str, _cnt, _result) __writeString(_handle, _str, _cnt, _result)

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

Standard C cstdlib API functions. Denes #dene Random(_arg, _max) __Random(_arg,_max)


Generate an unsigned random number.

#dene SignedRandom(_arg) __SignedRandom(_arg)


Generate signed random number.

4.39.1

Detailed Description

Standard C cstdlib API functions.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.40

cmath API

394

4.39.2 4.39.2.1

Dene Documentation #dene Random(_arg, _max) __Random(_arg,_max)

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

#dene SignedRandom(_arg) __SignedRandom(_arg)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.41

Array operation constants

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

Array operation constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

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

System Call function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

399

4.42.2.8

#dene CommHSCheckStatus 39 Check the status of the hi-speed port

4.42.2.9

#dene CommHSControl 88 Control the hi-speed port

4.42.2.10

#dene CommHSRead 38 Read data from the hi-speed port

4.42.2.11

#dene CommHSWrite 37 Write data to the hi-speed port

4.42.2.12

#dene CommLSCheckStatus 23 Check the status of a lowspeed (aka I2C) device

4.42.2.13

#dene CommLSRead 22 Read from a lowspeed (aka I2C) device

4.42.2.14

#dene CommLSWrite 21 Write to a lowspeed (aka I2C) device

4.42.2.15

#dene CommLSWriteEx 89 Write to a lowspeed (aka I2C) device with optional restart on read

4.42.2.16

#dene ComputeCalibValue 42 Compute a calibration value

4.42.2.17

#dene DatalogGetTimes 45 Get datalog timing information

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

400

4.42.2.18

#dene DatalogWrite 44 Write to the datalog

4.42.2.19

#dene DisplayExecuteFunction 80 Execute one of the Display modules internal functions

4.42.2.20

#dene DrawCircle 16 Draw a circle on the LCD screen

4.42.2.21

#dene DrawEllipse 94 Draw an ellipse on the LCD screen

4.42.2.22

#dene DrawFont 95 Draw text using a custom RIC-based font to the LCD screen

4.42.2.23

#dene DrawGraphic 18 Draw a graphic image on the LCD screen

4.42.2.24

#dene DrawGraphicArray 92 Draw a graphic image from a byte array to the LCD screen

4.42.2.25

#dene DrawLine 15 Draw a line on the LCD screen

4.42.2.26

#dene DrawPoint 14 Draw a single pixel on the LCD screen

4.42.2.27

#dene DrawPolygon 93 Draw a polygon on the LCD screen

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

401

4.42.2.28

#dene DrawRect 17 Draw a rectangle on the LCD screen

4.42.2.29

#dene DrawText 13 Draw text to one of 8 LCD lines

4.42.2.30

#dene FileClose 5 Close the specied le

4.42.2.31

#dene FileDelete 8 Delete a le

4.42.2.32

#dene FileFindFirst 83 Start a search for a le using a lename pattern

4.42.2.33

#dene FileFindNext 84 Continue searching for a le

4.42.2.34

#dene FileOpenAppend 2 Open a le for appending to the end of the le

4.42.2.35

#dene FileOpenRead 0 Open a le for reading

4.42.2.36

#dene FileOpenReadLinear 87 Open a linear le for reading

4.42.2.37

#dene FileOpenWrite 1 Open a le for writing (creates a new le)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

402

4.42.2.38

#dene FileOpenWriteLinear 85 Open a linear le for writing

4.42.2.39

#dene FileOpenWriteNonLinear 86 Open a non-linear le for writing

4.42.2.40

#dene FileRead 3 Read from the specied le

4.42.2.41

#dene FileRename 7 Rename a le

4.42.2.42

#dene FileResize 91 Resize a le (not yet implemented)

4.42.2.43

#dene FileResolveHandle 6 Get a le handle for the specied lename if it is already open

4.42.2.44

#dene FileSeek 90 Seek to a specic position in an open le

4.42.2.45

#dene FileWrite 4 Write to the specied le

4.42.2.46

#dene GetStartTick 25 Get the current system tick count

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

System Call function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.42

System Call function constants

404

4.42.2.57

#dene ReadButton 20 Read the current button state

4.42.2.58

#dene ReadSemData 40 Read motor semaphore data

4.42.2.59

#dene SetScreenMode 19 Set the screen mode

4.42.2.60

#dene SetSleepTimeoutVal 46 Set the NXT sleep timeout value

4.42.2.61

#dene SoundGetState 11 Get the current sound module state

4.42.2.62

#dene SoundPlayFile 9 Play a sound or melody le

4.42.2.63

#dene SoundPlayTone 10 Play a simple tone with the specied frequency and duration

4.42.2.64

#dene SoundSetState 12 Set the sound module state

4.42.2.65

#dene UpdateCalibCacheInfo 43 Update sensor calibration cache information

4.42.2.66

#dene WriteSemData 41 Write motor semaphore data

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.43

Line number constants

405

4.43

Line number constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.44

Time constants

406

4.43.2.5

#dene LCD_LINE5 24 The 5th line of the LCD screen

4.43.2.6

#dene LCD_LINE6 16 The 6th line of the LCD screen

4.43.2.7

#dene LCD_LINE7 8 The 7th line of the LCD screen

4.43.2.8

#dene LCD_LINE8 0 The 8th line of the LCD screen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.44

Time constants

408

4.44.2.2

#dene MS_1 1 1 millisecond

4.44.2.3

#dene MS_10 10 10 milliseconds

4.44.2.4

#dene MS_100 100 100 milliseconds

4.44.2.5

#dene MS_150 150 150 milliseconds

4.44.2.6

#dene MS_2 2 2 milliseconds

4.44.2.7

#dene MS_20 20 20 milliseconds

4.44.2.8

#dene MS_200 200 200 milliseconds

4.44.2.9

#dene MS_250 250 250 milliseconds

4.44.2.10

#dene MS_3 3 3 milliseconds

4.44.2.11

#dene MS_30 30 30 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.44

Time constants

409

4.44.2.12

#dene MS_300 300 300 milliseconds

4.44.2.13

#dene MS_350 350 350 milliseconds

4.44.2.14

#dene MS_4 4 4 milliseconds

4.44.2.15

#dene MS_40 40 40 milliseconds

4.44.2.16

#dene MS_400 400 400 milliseconds

4.44.2.17

#dene MS_450 450 450 milliseconds

4.44.2.18

#dene MS_5 5 5 milliseconds

4.44.2.19

#dene MS_50 50 50 milliseconds

4.44.2.20

#dene MS_500 500 500 milliseconds

4.44.2.21

#dene MS_6 6 6 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.44

Time constants

410

4.44.2.22

#dene MS_60 60 60 milliseconds

4.44.2.23

#dene MS_600 600 600 milliseconds

4.44.2.24

#dene MS_7 7 7 milliseconds

4.44.2.25

#dene MS_70 70 70 milliseconds

4.44.2.26

#dene MS_700 700 700 milliseconds

4.44.2.27

#dene MS_8 8 8 milliseconds

4.44.2.28

#dene MS_80 80 80 milliseconds

4.44.2.29

#dene MS_800 800 800 milliseconds

4.44.2.30

#dene MS_9 9 9 milliseconds

4.44.2.31

#dene MS_90 90 90 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.44

Time constants

411

4.44.2.32

#dene MS_900 900 900 milliseconds

4.44.2.33

#dene SEC_1 1000 1 second

4.44.2.34

#dene SEC_10 10000 10 seconds

4.44.2.35

#dene SEC_15 15000 15 seconds

4.44.2.36

#dene SEC_2 2000 2 seconds

4.44.2.37

#dene SEC_20 20000 20 seconds

4.44.2.38

#dene SEC_3 3000 3 seconds

4.44.2.39

#dene SEC_30 30000 30 seconds

4.44.2.40

#dene SEC_4 4000 4 seconds

4.44.2.41

#dene SEC_5 5000 5 seconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.45

Mailbox constants

412

4.44.2.42

#dene SEC_6 6000 6 seconds

4.44.2.43

#dene SEC_7 7000 7 seconds

4.44.2.44

#dene SEC_8 8000 8 seconds

4.44.2.45

#dene SEC_9 9000 9 seconds

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

#dene MAILBOX9 8 Mailbox number 9

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.47

Fatal errors

415

4.46.2.5

#dene STOP_REQ 4 VM should stop executing program

4.46.2.6

#dene TIMES_UP 6 VM time is up

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.47

Fatal errors

416

4.47.2.2

#dene ERR_BAD_POOL_SIZE -10 0xF6 VarsCmd.PoolSize > POOL_MAX_SIZE

4.47.2.3

#dene ERR_BAD_PTR -6 0xFA Someone passed us a bad pointer!

4.47.2.4

#dene ERR_CLUMP_COUNT -7 0xF9 (FileClumpCount == 0 || FileClumpCount >= NOT_A_CLUMP)

4.47.2.5

#dene ERR_DEFAULT_OFFSETS -14

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.48

General errors

417

4.47.2.11

#dene ERR_MEMMGR_FAIL -15

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

Constants dening general error conditions.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.49

Communications specic errors

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

#dene ERR_INVALID_PORT -16 0xF0 Bad input or output port specied

4.48.2.3

#dene ERR_INVALID_QUEUE -18 0xEE Illegal queue ID specied

4.48.2.4

#dene ERR_INVALID_SIZE -19 0xED Illegal size specied

4.48.2.5

#dene ERR_NO_PROG -20 0xEC No active program

4.49

Communications specic errors

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

Constants dening communication error conditions.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.50

Remote control (direct commands) errors

419

4.49.2 4.49.2.1

Dene Documentation #dene ERR_COMM_BUFFER_FULL -34 0xDE No room in comm buffer

4.49.2.2

#dene ERR_COMM_BUS_ERR -35 0xDD Something went wrong on the communications bus

4.49.2.3

#dene ERR_COMM_CHAN_INVALID -33 0xDF Specied channel/connection is not valid

4.49.2.4

#dene ERR_COMM_CHAN_NOT_READY -32 0xE0 Specied channel/connection not congured or busy

4.50

Remote control (direct commands) errors

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.51

Program status constants

420

4.50.2.2

#dene ERR_RC_FAILED -67 0xBD Request failed (i.e. specied le not found)

4.50.2.3

#dene ERR_RC_ILLEGAL_VAL -64 0xC0 Data contains out-of-range values

4.50.2.4

#dene ERR_RC_UNKNOWN_CMD -66 0xBE Unknown command opcode

4.51

Program status constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.52

Command module IOMAP offsets

421

4.51.2.3

#dene PROG_IDLE 0 Program state is idle

4.51.2.4

#dene PROG_OK 1 Program state is okay

4.51.2.5

#dene PROG_RESET 5 Program has been reset

4.51.2.6

#dene PROG_RUNNING 2 Program is running

4.52

Command module IOMAP offsets

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

Constant offsets into the Command module IOMAP structure.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.52

Command module IOMAP offsets

422

4.52.2 4.52.2.1

Dene Documentation #dene CommandOffsetActivateFlag 30 Offset to the activate ag

4.52.2.2

#dene CommandOffsetAwake 29 Offset to the VMs awake state

4.52.2.3

#dene CommandOffsetDeactivateFlag 31 Offset to the deactivate ag

4.52.2.4

#dene CommandOffsetFileName 32 Offset to the running programs lename

4.52.2.5

#dene CommandOffsetFormatString 0 Offset to the format string

4.52.2.6

#dene CommandOffsetMemoryPool 52 Offset to the VMs memory pool

4.52.2.7

#dene CommandOffsetOffsetDS 24 Offset to the running programs data space (DS)

4.52.2.8

#dene CommandOffsetOffsetDVA 26 Offset to the running programs DOPE vector address (DVA)

4.52.2.9

#dene CommandOffsetPRCHandler 16 Offset to the RC Handler function pointer

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.53

IOCtrl module constants

423

4.52.2.10

#dene CommandOffsetProgStatus 28 Offset to the running programs status

4.52.2.11

#dene CommandOffsetSyncTick 32824 Offset to the VM sync tick

4.52.2.12

#dene CommandOffsetSyncTime 32820 Offset to the VM sync time

4.52.2.13

#dene CommandOffsetTick 20 Offset to the VMs current tick

4.53

IOCtrl module constants

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.

IOCtrl module IOMAP offsets


Constant offsets into the IOCtrl module IOMAP structure.

4.53.1

Detailed Description

Constants that are part of the NXT rmwares IOCtrl module.

4.54

PowerOn constants

Use these constants to power down the NXT or boot it into SAMBA (aka rmware download) mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.55

IOCtrl module IOMAP offsets

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

IOCtrl module IOMAP offsets

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.56

Loader module constants

425

4.56

Loader module constants

Constants that are part of the NXT rmwares Loader module. Modules Loader module IOMAP offsets
Constant offsets into the Loader module IOMAP structure.

Loader module error codes


Error codes returned by functions in the Loader module (le access).

Loader module function constants


Constants dening the functions provided by the Loader module.

Denes #dene EOF -1 #dene NULL 0 4.56.1 Detailed Description

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

Loader module IOMAP offsets

Constant offsets into the Loader module IOMAP structure.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.58

Loader module error codes

426

Denes #dene LoaderOffsetPFunc 0 #dene LoaderOffsetFreeUserFlash 4 4.57.1 Detailed Description

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

Loader module error codes

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.58

Loader module error codes

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

Loader module error codes

428

4.58.2.6

#dene LDR_EOFEXPECTED 0x8400 EOF expected.

4.58.2.7

#dene LDR_FILEEXISTS 0x8F00 A le with the same name already exists.

4.58.2.8

#dene LDR_FILEISBUSY 0x8B00 The le is already being used.

4.58.2.9

#dene LDR_FILEISFULL 0x8E00 The allocated le size has been lled.

4.58.2.10

#dene LDR_FILENOTFOUND 0x8700 No les matched the search criteria.

4.58.2.11

#dene LDR_FILETX_CLOSEERROR 0x9B00 Error transmitting le: attempt to close le failed.

4.58.2.12

#dene LDR_FILETX_DSTEXISTS 0x9800 Error transmitting le: destination le exists.

4.58.2.13

#dene LDR_FILETX_SRCMISSING 0x9900 Error transmitting le: source le is missing.

4.58.2.14

#dene LDR_FILETX_STREAMERROR 0x9A00 Error transmitting le: a stream error occurred.

4.58.2.15

#dene LDR_FILETX_TIMEOUT 0x9700 Error transmitting le: a timeout occurred.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.58

Loader module error codes

429

4.58.2.16

#dene LDR_HANDLEALREADYCLOSED 0x8800 The le handle has already been closed.

4.58.2.17

#dene LDR_ILLEGALFILENAME 0x9200

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

Loader module function constants

430

4.58.2.26

#dene LDR_NOTLINEARFILE 0x8600 The specied le is not linear.

4.58.2.27

#dene LDR_NOWRITEBUFFERS 0x8C00 No more write buffers are available.

4.58.2.28

#dene LDR_OUTOFBOUNDARY 0x9100 Specied IOMap offset is outside the bounds of the IOMap.

4.58.2.29

#dene LDR_REQPIN 0x0002 A PIN exchange request is in progress.

4.58.2.30

#dene LDR_SUCCESS 0x0000 The function completed successfully.

4.58.2.31

#dene LDR_UNDEFINEDERROR 0x8A00 An undened error has occurred.

4.59

Loader module function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.59

Loader module function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.59

Loader module function constants

432

4.59.2.4

#dene LDR_CMD_CLOSE 0x84 Close a le handle

4.59.2.5

#dene LDR_CMD_CLOSEMODHANDLE 0x92 Close a module handle

4.59.2.6

#dene LDR_CMD_CROPDATAFILE 0x8D Crop a data le to its used space

4.59.2.7

#dene LDR_CMD_DELETE 0x85 Delete a le

4.59.2.8

#dene LDR_CMD_DELETEUSERFLASH 0xA0 Delete all les from user ash memory

4.59.2.9

#dene LDR_CMD_DEVICEINFO 0x9B Read device information

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.59

Loader module function constants

433

4.59.2.14

#dene LDR_CMD_IOMAPREAD 0x94 Read data from a module IOMAP

4.59.2.15

#dene LDR_CMD_IOMAPWRITE 0x95 Write data to a module IOMAP

4.59.2.16

#dene LDR_CMD_OPENAPPENDDATA 0x8C Open a data le for appending

4.59.2.17

#dene LDR_CMD_OPENREAD 0x80 Open a le for reading

4.59.2.18

#dene LDR_CMD_OPENREADLINEAR 0x8A Open a linear le for reading

4.59.2.19

#dene LDR_CMD_OPENWRITE 0x81 Open a le for writing

4.59.2.20

#dene LDR_CMD_OPENWRITEDATA 0x8B Open a data le for writing

4.59.2.21

#dene LDR_CMD_OPENWRITELINEAR 0x89 Open a linear le for writing

4.59.2.22

#dene LDR_CMD_POLLCMD 0xA2 Poll command

4.59.2.23

#dene LDR_CMD_POLLCMDLEN 0xA1 Read poll command length

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.60

Sound module constants

434

4.59.2.24

#dene LDR_CMD_READ 0x82 Read from a le

4.59.2.25

#dene LDR_CMD_RENAMEFILE 0xA3 Rename a le

4.59.2.26

#dene LDR_CMD_RESIZEDATAFILE 0xD0 Resize a data le

4.59.2.27

#dene LDR_CMD_SEEKFROMCURRENT 0xD2 Seek from the current position

4.59.2.28

#dene LDR_CMD_SEEKFROMEND 0xD3 Seek from the end of the le

4.59.2.29

#dene LDR_CMD_SEEKFROMSTART 0xD1 Seek from the start of the le

4.59.2.30

#dene LDR_CMD_SETBRICKNAME 0x98 Set the NXTs brick name

4.59.2.31

#dene LDR_CMD_VERSIONS 0x88 Read rmware version information

4.59.2.32

#dene LDR_CMD_WRITE 0x83 Write to a le

4.60

Sound module constants

Constants that are part of the NXT rmwares Sound module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.61

SoundFlags constants

435

Modules SoundFlags constants


Constants for use with the SoundFlags() function.

SoundState constants
Constants for use with the SoundState() function.

SoundMode constants
Constants for use with the SoundMode() function.

Sound module IOMAP offsets


Constant offsets into the Sound module IOMAP structure.

Sound module miscellaneous constants


Constants dening miscellaneous sound module aspects.

Tone constants
Constants for use in the SoundPlayTone() API function.

4.60.1

Detailed Description

Constants that are part of the NXT rmwares Sound module.

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()

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.62

SoundState constants

436

4.61.2 4.61.2.1

Dene Documentation #dene SOUND_FLAGS_IDLE 0x00 R - Sound is idle

4.61.2.2

#dene SOUND_FLAGS_RUNNING 0x02 R - Currently processing a tone or le

4.61.2.3

#dene SOUND_FLAGS_UPDATE 0x01 W - Make changes take effect

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

#dene SOUND_STATE_STOP 0x04 W - Stop sound immediately and close hardware

4.62.2.4

#dene SOUND_STATE_TONE 0x03 R - Processing a play tone request

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.64

Sound module IOMAP offsets

438

4.64

Sound module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.65

Sound module miscellaneous constants

439

4.64.2.6

#dene SoundOffsetSoundFilename 6 RW - Sound/melody lename (20 bytes)

4.64.2.7

#dene SoundOffsetState 27 RW - Play state - described above (1 byte) SoundState constants

4.64.2.8

#dene SoundOffsetVolume 29 RW - Sound/melody volume [0..4] 0 = off (1 byte)

4.65

Sound module miscellaneous constants

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]

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

440

4.65.2.3

#dene SAMPLERATE_DEFAULT 8000 Default sample rate [sps]

4.65.2.4

#dene SAMPLERATE_MAX 16000 Max sample rate [sps]

4.65.2.5

#dene SAMPLERATE_MIN 2000 Min sample rate [sps]

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

442

4.66.2.2

#dene TONE_A4 440 Fourth octave A

4.66.2.3

#dene TONE_A5 880 Fifth octave A

4.66.2.4

#dene TONE_A6 1760 Sixth octave A

4.66.2.5

#dene TONE_A7 3520 Seventh octave A

4.66.2.6

#dene TONE_AS3 233 Third octave A sharp

4.66.2.7

#dene TONE_AS4 466 Fourth octave A sharp

4.66.2.8

#dene TONE_AS5 932 Fifth octave A sharp

4.66.2.9

#dene TONE_AS6 1865 Sixth octave A sharp

4.66.2.10

#dene TONE_AS7 3729 Seventh octave A sharp

4.66.2.11

#dene TONE_B3 247 Third octave B

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

443

4.66.2.12

#dene TONE_B4 494 Fourth octave B

4.66.2.13

#dene TONE_B5 988 Fifth octave B

4.66.2.14

#dene TONE_B6 1976 Sixth octave B

4.66.2.15

#dene TONE_B7 3951 Seventh octave B

4.66.2.16

#dene TONE_C4 262 Fourth octave C

4.66.2.17

#dene TONE_C5 523 Fifth octave C

4.66.2.18

#dene TONE_C6 1047 Sixth octave C

4.66.2.19

#dene TONE_C7 2093 Seventh octave C

4.66.2.20

#dene TONE_CS4 277 Fourth octave C sharp

4.66.2.21

#dene TONE_CS5 554 Fifth octave C sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

444

4.66.2.22

#dene TONE_CS6 1109 Sixth octave C sharp

4.66.2.23

#dene TONE_CS7 2217 Seventh octave C sharp

4.66.2.24

#dene TONE_D4 294 Fourth octave D

4.66.2.25

#dene TONE_D5 587 Fifth octave D

4.66.2.26

#dene TONE_D6 1175 Sixth octave D

4.66.2.27

#dene TONE_D7 2349 Seventh octave D

4.66.2.28

#dene TONE_DS4 311 Fourth octave D sharp

4.66.2.29

#dene TONE_DS5 622 Fifth octave D sharp

4.66.2.30

#dene TONE_DS6 1245 Sixth octave D sharp

4.66.2.31

#dene TONE_DS7 2489 Seventh octave D sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

445

4.66.2.32

#dene TONE_E4 330 Fourth octave E

4.66.2.33

#dene TONE_E5 659 Fifth octave E

4.66.2.34

#dene TONE_E6 1319 Sixth octave E

4.66.2.35

#dene TONE_E7 2637 Seventh octave E

4.66.2.36

#dene TONE_F4 349 Fourth octave F

4.66.2.37

#dene TONE_F5 698 Fifth octave F

4.66.2.38

#dene TONE_F6 1397 Sixth octave F

4.66.2.39

#dene TONE_F7 2794 Seventh octave F

4.66.2.40

#dene TONE_FS4 370 Fourth octave F sharp

4.66.2.41

#dene TONE_FS5 740 Fifth octave F sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.66

Tone constants

446

4.66.2.42

#dene TONE_FS6 1480 Sixth octave F sharp

4.66.2.43

#dene TONE_FS7 2960 Seventh octave F sharp

4.66.2.44

#dene TONE_G4 392 Fourth octave G

4.66.2.45

#dene TONE_G5 784 Fifth octave G

4.66.2.46

#dene TONE_G6 1568 Sixth octave G

4.66.2.47

#dene TONE_G7 3136 Seventh octave G

4.66.2.48

#dene TONE_GS4 415 Fourth octave G sharp

4.66.2.49

#dene TONE_GS5 831 Fifth octave G sharp

4.66.2.50

#dene TONE_GS6 1661 Sixth octave G sharp

4.66.2.51

#dene TONE_GS7 3322 Seventh octave G sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.67

Button module constants

447

4.67

Button module constants

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.

Button module IOMAP offsets


Constant offsets into the Button module IOMAP structure.

4.67.1

Detailed Description

Constants that are part of the NXT rmwares Button module.

4.68

Button name constants

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

Constants to specify which button to use with button module functions.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.68

Button name constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.69

ButtonState constants

449

4.68.2.9

#dene NO_OF_BTNS 4 The number of NXT buttons.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.70

Button module IOMAP offsets

450

4.69.2.4

#dene BTNSTATE_PRESSED_EV 0x01 Button is in the pressed state.

4.69.2.5

#dene BTNSTATE_PRESSED_STATE 0x80 A bitmask for the button pressed state

4.69.2.6

#dene BTNSTATE_SHORT_RELEASED_EV 0x02 Button is in the short released state.

4.70

Button module IOMAP offsets

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

VM run state constants


Constants for use with the VMRunState() function.

Ui module IOMAP offsets


Constant offsets into the Ui module IOMAP structure.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.72

CommandFlags constants

452

4.71.1

Detailed Description

Constants that are part of the NXT rmwares Ui module.

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.73

UIState constants

453

4.72.2.4

#dene UI_FLAGS_ENABLE_STATUS_UPDATE 0x80 W - Enable status line to be updated

4.72.2.5

#dene UI_FLAGS_EXECUTE_LMS_FILE 0x20 W - Execute LMS le in "LMSlename" (Try It)

4.72.2.6

#dene UI_FLAGS_REDRAW_STATUS 0x08 W - Redraw entire status line

4.72.2.7

#dene UI_FLAGS_RESET_SLEEP_TIMER 0x10 W - Reset sleep timeout timer

4.72.2.8

#dene UI_FLAGS_UPDATE 0x01 W - Make changes take effect

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.73

UIState constants

454

#dene UI_STATE_EXECUTING_FILE 14 #dene UI_STATE_LOW_BATTERY 15 #dene UI_STATE_BT_ERROR 16 4.73.1 Detailed Description

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

#dene UI_STATE_INIT_DISPLAY 0 RW - Init display and load font, menu etc.

4.73.2.9

#dene UI_STATE_INIT_INTRO 2 R - Display intro

4.73.2.10

#dene UI_STATE_INIT_LOW_BATTERY 1 R - Low battery voltage at power on

4.73.2.11

#dene UI_STATE_INIT_MENU 4 RW - Init menu system

4.73.2.12

#dene UI_STATE_INIT_WAIT 3 RW - Wait for initialization end

4.73.2.13

#dene UI_STATE_LEFT_PRESSED 8 RW - Load selected function and next menu id

4.73.2.14

#dene UI_STATE_LOW_BATTERY 15 R - Low battery at runtime

4.73.2.15

#dene UI_STATE_NEXT_MENU 5 RW - Next menu icons ready for drawing

4.73.2.16

#dene UI_STATE_RIGHT_PRESSED 9 RW - Load selected function and next menu id

4.73.2.17

#dene UI_STATE_TEST_BUTTONS 7 RW - Wait for buttons to be pressed

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

VM run state constants

458

4.75.2.6

#dene UI_BT_STATE_VISIBLE 0x01 RW - BT visible

4.76

VM run state constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.77

Ui module IOMAP offsets

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

Ui module IOMAP offsets

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

Constant offsets into the Ui module IOMAP structure.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.77

Ui module IOMAP offsets

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

#dene UIOffsetBatteryState 30 W - Battery state (0..4 capacity) (1 byte)

4.77.2.3

#dene UIOffsetBatteryVoltage 4 R - Battery voltage in millivolts (2 bytes)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.78

NBC Input port constants

461

4.77.2.10

#dene UIOffsetOBPPointer 38 W - Actual OBP step (0 - 4) (1 byte)

4.77.2.11

#dene UIOffsetPMenu 0 W - Pointer to menu le (4 bytes)

4.77.2.12

#dene UIOffsetRechargeable 35 R - Rechargeable battery (0 = no, 1 = yes) (1 byte)

4.77.2.13

#dene UIOffsetRunState 29 W - VM Run state (0 = stopped, 1 = running) (1 byte)

4.77.2.14

#dene UIOffsetSleepTimeout 33 RW - Sleep timeout time (min) (1 byte)

4.77.2.15

#dene UIOffsetSleepTimer 34 RW - Sleep timer (min) (1 byte)

4.77.2.16

#dene UIOffsetState 27 RW - UI state (states enumerated above) (1 byte)

4.77.2.17

#dene UIOffsetUsbState 32 W - Usb state (0=disconnected, 1=connected, 2=working) (1 byte)

4.77.2.18

#dene UIOffsetVolume 36 RW - Volume used in UI (0 - 4) (1 byte)

4.78

NBC Input port constants

Input port constants are used when calling sensor control API functions.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.79

NBC sensor type constants

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

NBC sensor type constants

Use sensor type constants to congure an input port for a specic type of sensor.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.79

NBC sensor type constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.79

NBC sensor type constants

464

4.79.2.3

#dene IN_TYPE_COLOREXIT 0x12 NXT 2.0 color sensor internal state

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

#dene IN_TYPE_COLORNONE 0x11 NXT 2.0 color sensor with no light

4.79.2.7

#dene IN_TYPE_COLORRED 0x0E NXT 2.0 color sensor with red light

4.79.2.8

#dene IN_TYPE_CUSTOM 0x09 NXT custom sensor

4.79.2.9

#dene IN_TYPE_HISPEED 0x0C NXT Hi-speed port (only S4)

4.79.2.10

#dene IN_TYPE_LIGHT_ACTIVE 0x05 NXT light sensor with light

4.79.2.11

#dene IN_TYPE_LIGHT_INACTIVE 0x06 NXT light sensor without light

4.79.2.12

#dene IN_TYPE_LOWSPEED 0x0A NXT I2C digital sensor

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.80

NBC sensor mode constants

465

4.79.2.13

#dene IN_TYPE_LOWSPEED_9V 0x0B NXT I2C digital sensor with 9V power

4.79.2.14

#dene IN_TYPE_NO_SENSOR 0x00 No sensor congured

4.79.2.15

#dene IN_TYPE_REFLECTION 0x03 RCX light sensor

4.79.2.16

#dene IN_TYPE_SOUND_DB 0x07 NXT sound sensor with dB scaling

4.79.2.17

#dene IN_TYPE_SOUND_DBA 0x08 NXT sound sensor with dBA scaling

4.79.2.18

#dene IN_TYPE_SWITCH 0x01 NXT or RCX touch sensor

4.79.2.19

#dene IN_TYPE_TEMPERATURE 0x02 RCX temperature sensor

4.80

NBC sensor mode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.80

NBC sensor mode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.81

Input eld constants

467

4.80.2.7

#dene IN_MODE_PERIODCOUNTER 0x60 Counts the number of boolean periods

4.80.2.8

#dene IN_MODE_RAW 0x00 Raw value from 0 to 1023

4.80.2.9

#dene IN_MODE_SLOPEMASK 0x1F Mask for slope parameter added to mode

4.80.2.10

#dene IN_MODE_TRANSITIONCNT 0x40 Counts the number of boolean transitions

4.81

Input eld constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.82

Color sensor array indices

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

Color sensor array indices

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.84

Color calibration state constants

470

4.83.2 4.83.2.1

Dene Documentation #dene INPUT_BLACKCOLOR 1 The color value is black

4.83.2.2

#dene INPUT_BLUECOLOR 2 The color value is blue

4.83.2.3

#dene INPUT_GREENCOLOR 3 The color value is green

4.83.2.4

#dene INPUT_REDCOLOR 5 The color value is red

4.83.2.5

#dene INPUT_WHITECOLOR 6 The color value is white

4.83.2.6

#dene INPUT_YELLOWCOLOR 4 The color value is yellow

4.84

Color calibration state constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.85

Color calibration constants

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

Color calibration constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.86

Input module IOMAP offsets

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

Input module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.86

Input module IOMAP offsets

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.86

Input module IOMAP offsets

474

4.86.2.6

#dene InputOffsetColorSensorBoolean(p, nc) (80+((p)84)+76+((nc)2)) Read color sensor boolean values

4.86.2.7

#dene InputOffsetColorSensorRaw(p, nc) (80+((p)84)+60+((nc)2)) Read raw color sensor values

4.86.2.8

#dene InputOffsetColorSensorValue(p, nc) (80+((p)84)+68+((nc)2)) Read scaled color sensor values

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

#dene InputOffsetDigiPinsIn(p) (((p)20)+12) Read/write the status of the digital pins

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.87

Output port constants

475

4.86.2.16

#dene InputOffsetSensorBoolean(p) (((p)20)+10) Read the sensor boolean value

4.86.2.17

#dene InputOffsetSensorMode(p) (((p)20)+9) Read/write the sensor mode

4.86.2.18

#dene InputOffsetSensorRaw(p) (((p)20)+4) Read the raw sensor value (2 bytes) uword

4.86.2.19

#dene InputOffsetSensorType(p) (((p)20)+8) Read/write the sensor type

4.86.2.20

#dene InputOffsetSensorValue(p) (((p)20)+6) Read/write the scaled sensor value (2 bytes) sword

4.87

Output port constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.88

PID constants

476

4.87.2 4.87.2.1

Dene Documentation #dene OUT_A 0x00 Output port A

4.87.2.2

#dene OUT_AB 0x03 Output ports A and B

4.87.2.3

#dene OUT_ABC 0x06 Output ports A, B, and C

4.87.2.4

#dene OUT_AC 0x04 Output ports A and C

4.87.2.5

#dene OUT_B 0x01 Output port B

4.87.2.6

#dene OUT_BC 0x05 Output ports B and C

4.87.2.7

#dene OUT_C 0x02 Output port C

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

Output port update ag constants

478

4.88.2.7

#dene PID_6 192 PID six

4.88.2.8

#dene PID_7 224 PID seven

4.89

Output port update ag constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.90

Tachometer counter reset ags

479

4.89.2.3

#dene UF_UPDATE_PID_VALUES 0x10 Commits changes to the PID motor regulation properties

4.89.2.4

#dene UF_UPDATE_RESET_BLOCK_COUNT 0x20 Resets the NXT-G block-relative rotation counter

4.89.2.5

#dene UF_UPDATE_RESET_COUNT 0x08

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

Tachometer counter reset ags

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.91

Output port mode constants

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

Output port mode constants

Use these constants to congure the desired mode for the specied motor(s): coast, motoron, brake, or regulated.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.91

Output port mode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.92

Output port option constants

482

4.92

Output port option constants

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

Output port run state constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.94

Output port regulation mode constants

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

Output port regulation mode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.95

Output eld constants

484

#dene OUT_REGMODE_SPEED 1 #dene OUT_REGMODE_SYNC 2 4.94.1 Detailed Description

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

Output eld constants

Constants for use with SetOutput() and GetOutput(). Denes #dene UpdateFlags 0
Update ags eld.

#dene OutputMode 1
Mode eld.

#dene Power 2
Power eld.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.95

Output eld constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.95

Output eld constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.95

Output eld constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.95

Output eld constants

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

Output eld constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.96

Output module IOMAP offsets

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

Output module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.96

Output module IOMAP offsets

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.96

Output module IOMAP offsets

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

#dene OutputOffsetRotationCount(p) (((p)32)+8)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.97

LowSpeed module constants

493

4.96.2.17

#dene OutputOffsetTachoCount(p) (((p)32)+0)

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

LowSpeed module constants

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.

Low speed module IOMAP offsets


Constant offsets into the low speed module IOMAP structure.

LSNoRestartOnRead constants
Constants for the low speed module LSNoRestartOnRead and SetLSNoRestartOnRead functions.

Standard I2C constants


Constants for use with standard I2C devices.

Ultrasonic sensor constants


Constants for use with the ultrasonic sensor.

Temperature sensor constants


Constants for use with the temperature sensor.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.98

LSState constants

494

4.97.1

Detailed Description

Constants that are part of the NXT rmwares LowSpeed module.

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

#dene COM_CHANNEL_TWO_ACTIVE 0x02 Low speed channel 2 is active

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

#dene LOWSPEED_INIT 1 Channel is being initialized

4.99.2.6

#dene LOWSPEED_LOAD_BUFFER 2 Channel buffer is loading

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Low speed module IOMAP offsets

Constant offsets into the low speed module IOMAP structure.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.102

Low speed module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.102

Low speed module IOMAP offsets

499

4.102.2.5

#dene LowSpeedOffsetInBufInPtr(p) (((p)19)+16) RW - Input buffer in pointer eld offset (1 byte)

4.102.2.6

#dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) RW - Input buffer out pointer eld offset (1 byte)

4.102.2.7

#dene LowSpeedOffsetMode(p) ((p)+152) R - Lowspeed port mode (1 byte)

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

#dene LowSpeedOffsetOutBufInPtr(p) (((p)19)+92) RW - Output buffer in pointer eld offset (1 byte)

4.102.2.12

#dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) RW - Output buffer out pointer eld offset (1 byte)

4.102.2.13

#dene LowSpeedOffsetSpeed 165 R - Lowspeed speed (unused)

4.102.2.14

#dene LowSpeedOffsetState 164 R - Lowspeed state (all channels)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.104

Standard I2C constants

501

4.103.2.5

#dene LSREAD_NO_RESTART_MASK 0x10 No restart mask

4.103.2.6

#dene LSREAD_RESTART_ALL 0x00 Restart on read for all channels (default)

4.103.2.7

#dene LSREAD_RESTART_NONE 0x0F No restart on read for all channels

4.104

Standard I2C constants

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

Ultrasonic sensor constants

502

4.104.2.4

#dene I2C_REG_VERSION 0x00 Standard NXT I2C version register

4.105

Ultrasonic sensor constants

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

Ultrasonic sensor constants

503

4.105.2.4

#dene US_CMD_SINGLESHOT 0x01 Command to put the ultrasonic sensor into single shot mode

4.105.2.5

#dene US_CMD_WARMRESET 0x04 Command to warm reset the ultrasonic sensor

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

#dene US_REG_FACTORY_SCALE_DIVISOR 0x13

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.106

Temperature sensor constants

504

4.106

Temperature sensor constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.106

Temperature sensor constants

505

4.106.2.3

#dene TEMP_FQ_4 0x10 Set fault queue 4

4.106.2.4

#dene TEMP_FQ_6 0x18 Set fault queue 6

4.106.2.5

#dene TEMP_I2C_ADDRESS 0x98 The temperature sensors I2C address

4.106.2.6

#dene TEMP_OS_ONESHOT 0x80 Set the sensor into oneshot mode

4.106.2.7

#dene TEMP_POL_HIGH 0x04 Set polarity to high

4.106.2.8

#dene TEMP_POL_LOW 0x00 Set polarity to low

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

506

4.106.2.13

#dene TEMP_RES_10BIT 0x20 Set the resolution to 10 bit

4.106.2.14

#dene TEMP_RES_11BIT 0x40 Set the resolution to 11 bit

4.106.2.15

#dene TEMP_RES_12BIT 0x60 Set the resolution to 12 bit

4.106.2.16

#dene TEMP_RES_9BIT 0x00 Set the resolution to 9 bit

4.106.2.17

#dene TEMP_SD_CONTINUOUS 0x00 Set the mode to continuous

4.106.2.18

#dene TEMP_SD_SHUTDOWN 0x01 Set the mode to shutdown

4.106.2.19

#dene TEMP_TM_COMPARATOR 0x00 Set the thermostat mode to comparator

4.106.2.20

#dene TEMP_TM_INTERRUPT 0x02 Set the thermostat mode to interrupt

4.107

Display module constants

Constants that are part of the NXT rmwares Display module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

507

Modules Line number constants


Line numbers for use with DrawText system function.

DisplayExecuteFunction constants
Constants that are for use with the DisplayExecuteFunction system call.

Drawing option constants


Constants that are for specifying drawing options in several display module API functions.

Display ags
Constants that are for use with the display ags functions.

Display contrast constants


Constants that are for use with the display contrast API functions.

Text line constants


Constants that are for use with getting/setting display data.

Display module IOMAP offsets


Constant offsets into the display module IOMAP structure.

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

509

4.107.2.4

#dene BITMAP_4 3 Bitmap 4

4.107.2.5

#dene BITMAPS 4 The number of bitmap bits

4.107.2.6

#dene DISPLAY_HEIGHT 64 The height of the LCD screen in pixels

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

#dene DISPLAY_WIDTH 100 The width of the LCD screen in pixels

4.107.2.11

#dene FRAME_SELECT 0 Center icon select frame

4.107.2.12

#dene MENUICON_CENTER 1 Center icon

4.107.2.13

#dene MENUICON_LEFT 0 Left icon

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

510

4.107.2.14

#dene MENUICON_RIGHT 2 Right icon

4.107.2.15

#dene MENUICONS 3 The number of menu icons

4.107.2.16

#dene MENUTEXT 2 Center icon text

4.107.2.17

#dene SCREEN_BACKGROUND 0 Entire screen

4.107.2.18

#dene SCREEN_LARGE 1 Entire screen except status line

4.107.2.19

#dene SCREEN_MODE_CLEAR 0x01 Clear the screen

See also: SetScreenMode()

4.107.2.20

#dene SCREEN_MODE_RESTORE 0x00 Restore the screen

See also: SetScreenMode()

4.107.2.21

#dene SCREEN_SMALL 2 Screen between menu icons and status line

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.107

Display module constants

511

4.107.2.22

#dene SCREENS 3 The number of screen bits

4.107.2.23

#dene SPECIALS 5 The number of special bit values

4.107.2.24

#dene STATUSICON_BATTERY 3 Battery status icon collection

4.107.2.25

#dene STATUSICON_BLUETOOTH 0 BlueTooth status icon collection

4.107.2.26

#dene STATUSICON_USB 1 USB status icon collection

4.107.2.27

#dene STATUSICON_VM 2 VM status icon collection

4.107.2.28

#dene STATUSICONS 4 The number of status icons

4.107.2.29

#dene STATUSTEXT 1 Status text (BT name)

4.107.2.30

#dene STEPICON_1 0 Left most step icon

4.107.2.31

#dene STEPICON_2 1

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

#dene STEPICON_5 4 Right most step icon

4.107.2.35

#dene STEPICONS 5

4.107.2.36

#dene STEPLINE 3 Step collection lines

4.107.2.37

#dene TOPLINE 4 Top status underline

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.109

Drawing option constants

514

4.109

Drawing option constants

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

Drawing option constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.110

Font drawing option constants

516

4.109.2.9

#dene DRAW_OPT_LOGICAL_COPY (0x0000) Draw pixels using a logical copy operation

4.109.2.10

#dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) Bit mask for the logical drawing operations

4.109.2.11

#dene DRAW_OPT_LOGICAL_OR (0x0010) Draw pixels using a logical OR operation

4.109.2.12

#dene DRAW_OPT_LOGICAL_XOR (0x0018) Draw pixels using a logical XOR operation

4.109.2.13

#dene DRAW_OPT_NORMAL (0x0000) Normal drawing

4.109.2.14

#dene DRAW_OPT_POLYGON_POLYLINE (0x0400) When drawing polygons, do not close (i.e., draw a polyline instead)

4.110

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_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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.110

Font drawing option constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.111

Display ags

518

4.110.2.8

#dene DRAW_OPT_FONT_DIR_T2BR (0x01C0) Font top to bottom right align

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

Display contrast constants

519

4.111.2.3

#dene DISPLAY_POPUP 0x08 W - Use popup display memory

4.111.2.4

#dene DISPLAY_REFRESH 0x02 W - Enable refresh

4.111.2.5

#dene DISPLAY_REFRESH_DISABLED 0x40 R - Refresh disabled

4.112

Display contrast constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.113

Text line constants

520

4.113

Text line constants

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-

Dene Documentation #dene TEXTLINE_1 0 Text line 1

4.113.2.2

#dene TEXTLINE_2 1 Text line 2

4.113.2.3

#dene TEXTLINE_3 2 Text line 3

4.113.2.4

#dene TEXTLINE_4 3 Text line 4

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.114

Display module IOMAP offsets

521

4.113.2.5

#dene TEXTLINE_5 4 Text line 5

4.113.2.6

#dene TEXTLINE_6 5 Text line 6

4.113.2.7

#dene TEXTLINE_7 6 Text line 7

4.113.2.8

#dene TEXTLINE_8 7 Text line 8

4.113.2.9

#dene TEXTLINES 8 The number of text lines on the LCD

4.114

Display module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.114

Display module IOMAP offsets

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

Display module IOMAP offsets

523

4.114.2.8

#dene DisplayOffsetPFunc 0 Simple draw entry

4.114.2.9

#dene DisplayOffsetPMenuIcons(p) (((p)4)+88) Pointer to menu icon images (NULL == none)

4.114.2.10

#dene DisplayOffsetPMenuText 84 Pointer to menu icon text (NULL == none)

4.114.2.11

#dene DisplayOffsetPopup(l, w) (((l)100)+(w)+919) Raw display memory for popup screen

4.114.2.12

#dene DisplayOffsetPScreens(p) (((p)4)+56) Pointer to screen bitmap le

4.114.2.13

#dene DisplayOffsetPStatusIcons 52 Pointer to status icon collection le

4.114.2.14

#dene DisplayOffsetPStatusText 48 Pointer to status text string

4.114.2.15

#dene DisplayOffsetPStepIcons 100 Pointer to step icon collection le

4.114.2.16

#dene DisplayOffsetPTextLines(p) (((p)4)+16) Pointer to text strings

4.114.2.17

#dene DisplayOffsetStatusIcons(p) ((p)+108) Index in status icon collection le (index = 0 -> none)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.115

Comm module constants

524

4.114.2.18

#dene DisplayOffsetStepIcons(p) ((p)+112) Index in step icon collection le (index = 0 -> none)

4.114.2.19

#dene DisplayOffsetTextLinesCenterFlags 118 Mask to center TextLines

4.114.2.20

#dene DisplayOffsetUpdateMask 8 Section update mask (executed next)

4.115

Comm module constants

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.

Miscellaneous Comm module constants


Miscellaneous constants related to the Comm module.

Bluetooth State constants


Constants related to the bluetooth state.

Bluetooth state status constants


Constants related to the bluetooth state status.

Bluetooth hardware status constants


Constants related to the bluetooth hardware status.

Hi-speed port constants


Constants related to the hi-speed port.

Device status constants


Constants refering to DeviceStatus within DeviceTable.

Comm module interface function constants

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.116

Miscellaneous Comm module constants

525

Constants for all the Comm module interface functions executable via SysCommExecuteFunction.

Comm module status code constants


Constants for Comm module status codes.

Comm module IOMAP offsets


Constant offsets into the Comm module IOMAP structure.

4.115.1

Detailed Description

Constants that are part of the NXT rmwares Comm module.

4.116

Miscellaneous Comm module constants

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

Miscellaneous constants related to the Comm module.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.116

Miscellaneous Comm module constants

526

4.116.2 4.116.2.1

Dene Documentation #dene BT_CMD_BYTE 1 Size of Bluetooth command

4.116.2.2

#dene BT_DEFAULT_INQUIRY_MAX 0 Bluetooth default inquiry Max (0 == unlimited)

4.116.2.3

#dene BT_DEFAULT_INQUIRY_TIMEOUT_LO 15 Bluetooth inquiry timeout (151.28 sec = 19.2 sec)

4.116.2.4

#dene MAX_BT_MSG_SIZE 60000 Max Bluetooth Message Size

4.116.2.5

#dene SIZE_OF_BDADDR 7 Size of Bluetooth Address

4.116.2.6

#dene SIZE_OF_BRICK_NAME 8 Size of NXT Brick name

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.117

Bluetooth State constants

527

4.116.2.10

#dene SIZE_OF_BT_PINCODE 16 Size of Bluetooth PIN

4.116.2.11

#dene SIZE_OF_BTBUF 128 Size of Bluetooth buffer

4.116.2.12

#dene SIZE_OF_CLASS_OF_DEVICE 4 Size of class of device

4.116.2.13

#dene SIZE_OF_HSBUF 128 Size of High Speed Port 4 buffer

4.116.2.14

#dene SIZE_OF_USBBUF 64 Size of USB Buffer in bytes

4.116.2.15

#dene SIZE_OF_USBDATA 62 Size of USB Buffer available for data

4.116.2.16

#dene USB_PROTOCOL_OVERHEAD 2 Size of USB Overhead in bytes -- Command type byte + Command

4.117

Bluetooth State constants

Constants related to the bluetooth state. Denes #dene BT_ARM_OFF 0 #dene BT_ARM_CMD_MODE 1 #dene BT_ARM_DATA_MODE 2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.118

Bluetooth state status constants

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

Bluetooth state status constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.119

Bluetooth hardware status constants

529

4.118.2.2

#dene BT_BRICK_VISIBILITY 0x01 BtStateStatus brick visibility bit

4.118.2.3

#dene BT_CONNECTION_0_ENABLE 0x10 BtStateStatus connection 0 enable/disable bit

4.118.2.4

#dene BT_CONNECTION_1_ENABLE 0x20 BtStateStatus connection 1 enable/disable bit

4.118.2.5

#dene BT_CONNECTION_2_ENABLE 0x40 BtStateStatus connection 2 enable/disable bit

4.118.2.6

#dene BT_CONNECTION_3_ENABLE 0x80 BtStateStatus connection 3 enable/disable bit

4.119

Bluetooth hardware status constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.120

Hi-speed port constants

530

4.119.2.2

#dene BT_ENABLE 0x00 BtHwStatus bluetooth enable

4.120

Hi-speed port constants

Constants related to the hi-speed port. Modules Hi-speed port ags constants
Constants related to the hi-speed port ags.

Hi-speed port state constants


Constants related to the hi-speed port state.

Hi-speed port SysCommHSControl constants


Constants for use with the SysCommHSControl API function.

Hi-speed port baud rate constants


Constants for conguring the hi-speed port baud rate.

Hi-speed port data bits constants


Constants referring to HsMode (number of data bits).

Hi-speed port stop bits constants


Constants referring to HsMode (number of stop bits).

Hi-speed port parity constants


Constants referring to HsMode (parity).

Hi-speed port combined UART constants


Constants that combine data bits, parity, and stop bits into a single value.

4.120.1

Detailed Description

Constants related to the hi-speed port.

4.121

Hi-speed port ags constants

Constants related to the hi-speed port ags.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.122

Hi-speed port state constants

531

Denes #dene HS_UPDATE 1 4.121.1 Detailed Description

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

Hi-speed port state constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.123

Hi-speed port SysCommHSControl constants

532

4.122.2.3

#dene HS_INIT_RECEIVER 2 HsState initialize receiver

4.122.2.4

#dene HS_INITIALISE 1 HsState initialize

4.122.2.5

#dene HS_SEND_DATA 3 HsState send data

4.123

Hi-speed port SysCommHSControl constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.124

Hi-speed port baud rate constants

533

4.123.2.3

#dene HS_CTRL_UART 1 Setup the high speed port UART conguration

4.124

Hi-speed port baud rate constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.124

Hi-speed port baud rate constants

534

4.124.2.3

#dene HS_BAUD_14400 6 HsMode 14400 Baud

4.124.2.4

#dene HS_BAUD_19200 7 HsMode 19200 Baud

4.124.2.5

#dene HS_BAUD_230400 13 HsMode 230400 Baud

4.124.2.6

#dene HS_BAUD_2400 1 HsMode 2400 Baud

4.124.2.7

#dene HS_BAUD_28800 8 HsMode 28800 Baud

4.124.2.8

#dene HS_BAUD_3600 2 HsMode 3600 Baud

4.124.2.9

#dene HS_BAUD_38400 9 HsMode 38400 Baud

4.124.2.10

#dene HS_BAUD_460800 14 HsMode 460800 Baud

4.124.2.11

#dene HS_BAUD_4800 3 HsMode 4800 Baud

4.124.2.12

#dene HS_BAUD_57600 10 HsMode 57600 Baud

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.125

Hi-speed port data bits constants

535

4.124.2.13

#dene HS_BAUD_7200 4 HsMode 7200 Baud

4.124.2.14

#dene HS_BAUD_76800 11 HsMode 76800 Baud

4.124.2.15

#dene HS_BAUD_921600 15 HsMode 921600 Baud

4.124.2.16

#dene HS_BAUD_9600 5 HsMode 9600 Baud

4.125

Hi-speed port data bits constants

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

Hi-speed port stop bits constants

536

4.125.2.3

#dene HS_MODE_7_DATA 0x0080 HsMode 7 data bits

4.125.2.4

#dene HS_MODE_8_DATA 0x00C0 HsMode 8 data bits

4.126

Hi-speed port stop bits constants

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

Hi-speed port parity constants

Constants referring to HsMode (parity).

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.128

Hi-speed port combined UART constants

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

Hi-speed port combined UART constants

Constants that combine data bits, parity, and stop bits into a single value.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.129

Device status constants

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

Device status constants

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

Constants refering to DeviceStatus within DeviceTable.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.130

Comm module interface function constants

539

4.129.2 4.129.2.1

Dene Documentation #dene BT_DEVICE_AWAY 0x80 Bluetooth device away

4.129.2.2

#dene BT_DEVICE_EMPTY 0x00 Bluetooth device table empty

4.129.2.3

#dene BT_DEVICE_KNOWN 0x02 Bluetooth device known

4.129.2.4

#dene BT_DEVICE_NAME 0x40 Bluetooth device name

4.129.2.5

#dene BT_DEVICE_UNKNOWN 0x01 Bluetooth device unknown

4.130

Comm module interface function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.130

Comm module interface function constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.130

Comm module interface function constants

541

4.130.2.6

#dene INTF_DISCONNECT 4 Disconnect from one of the connected devices

4.130.2.7

#dene INTF_DISCONNECTALL 5 Disconnect all devices

4.130.2.8

#dene INTF_EXTREAD 15 External read request

4.130.2.9

#dene INTF_FACTORYRESET 11 Reset bluetooth settings to factory values

4.130.2.10

#dene INTF_OPENSTREAM 9 Open a bluetooth stream

4.130.2.11

#dene INTF_PINREQ 16 Bluetooth PIN request

4.130.2.12

#dene INTF_REMOVEDEVICE 6 Remove a device from the known devices table

4.130.2.13

#dene INTF_SEARCH 1 Search for bluetooth devices

4.130.2.14

#dene INTF_SENDDATA 10 Send data over a bluetooth connection

4.130.2.15

#dene INTF_SENDFILE 0 Send a le via bluetooth to another device

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.131

Comm module status code constants

542

4.130.2.16

#dene INTF_SETBTNAME 14 Set the bluetooth name

4.130.2.17

#dene INTF_SETCMDMODE 8 Set bluetooth into command mode

4.130.2.18

#dene INTF_STOPSEARCH 2 Stop searching for bluetooth devices

4.130.2.19

#dene INTF_VISIBILITY 7 Set the bluetooth visibility on or off

4.131

Comm module status code constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

543

4.131.2.2

#dene HS_CMD_READY 0x04 A constant representing high speed direct command

4.131.2.3

#dene LR_COULD_NOT_SAVE 0x51 Bluetooth list result could not save

4.131.2.4

#dene LR_ENTRY_REMOVED 0x53 Bluetooth list result entry removed

4.131.2.5

#dene LR_STORE_IS_FULL 0x52 Bluetooth list result store is full

4.131.2.6

#dene LR_SUCCESS 0x50 Bluetooth list result success

4.131.2.7

#dene LR_UNKNOWN_ADDR 0x54 Bluetooth list result unknown address

4.131.2.8

#dene USB_CMD_READY 0x01 A constant representing usb direct command

4.132

Comm module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

546

4.132.2.9

#dene CommOffsetBtConnectTableHandleNr(p) (((p)47)+981) Offset to Bluetooth connect table handle (1 byte)

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

#dene CommOffsetBtDeviceCnt 1889 Offset to Bluetooth device count (1 byte)

4.132.2.15

#dene CommOffsetBtDeviceNameCnt 1890 Offset to Bluetooth device name count (1 byte)

4.132.2.16

#dene CommOffsetBtDeviceTableBdAddr(p) (((p)31)+28) Offset to Bluetooth device table address (7 bytes)

4.132.2.17

#dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) Offset to Bluetooth device table device class (4 bytes)

4.132.2.18

#dene CommOffsetBtDeviceTableDeviceStatus(p) (((p)31)+35) Offset to Bluetooth device table status (1 byte)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

547

4.132.2.19

#dene CommOffsetBtDeviceTableName(p) (((p)31)+8) Offset to BT device table name (16 bytes)

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

#dene CommOffsetHsFlags 1891 Offset to High Speed ags (1 byte)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

548

4.132.2.29

#dene CommOffsetHsInBufOutPtr 1550 Offset to High Speed input buffer back pointer (1 byte)

4.132.2.30

#dene CommOffsetHsMode 1895 Offset to High Speed mode (2 bytes)

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

#dene CommOffsetHsSpeed 1892 Offset to High Speed speed (1 byte)

4.132.2.35

#dene CommOffsetHsState 1893 Offset to High Spped state (1 byte)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.132

Comm module IOMAP offsets

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

#dene CommOffsetUsbState 1894 Offset to Usb State (1 byte)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

RCX output mode constants


Constants for use when conguring RCX output mode.

RCX output direction constants


Constants for use when conguring RCX output direction.

RCX output power constants


Constants for use when conguring RCX output power.

RCX IR remote constants


Constants for use when simulating RCX IR remote messages.

RCX and Scout sound constants


Constants for use when playing standard RCX and Scout sounds.

Scout constants
Constants for use when controlling the Scout brick.

RCX and Scout source constants


Constants for use when specifying RCX and Scout sources.

RCX and Scout opcode constants


Constants for use when specifying RCX and Scout opcodes.

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.134

RCX output constants

551

4.134

RCX output constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.135

RCX output mode constants

552

4.134.2.6

#dene RCX_OUT_BC 0x06 RCX Outputs B and C

4.134.2.7

#dene RCX_OUT_C 0x04 RCX Output C

4.135

RCX output mode constants

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

RCX output direction constants

Constants for use when conguring RCX output direction.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.137

RCX output power constants

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

RCX output power constants

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

Constants for use when conguring RCX output power.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.138

RCX IR remote constants

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

#dene RCX_OUT_HALF 3 Set RCX output power level to half

4.137.2.3

#dene RCX_OUT_LOW 0 Set RCX output power level to low

4.138

RCX IR remote constants

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

Constants for use when simulating RCX IR remote messages.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.138

RCX IR remote constants

555

4.138.2 4.138.2.1

Dene Documentation #dene RCX_RemoteKeysReleased 0x0000 All remote keys have been released

4.138.2.2

#dene RCX_RemoteOutABackward 0x4000 Set output A backward

4.138.2.3

#dene RCX_RemoteOutAForward 0x0800 Set output A forward

4.138.2.4

#dene RCX_RemoteOutBBackward 0x8000 Set output B backward

4.138.2.5

#dene RCX_RemoteOutBForward 0x1000 Set output B forward

4.138.2.6

#dene RCX_RemoteOutCBackward 0x0001 Set output C backward

4.138.2.7

#dene RCX_RemoteOutCForward 0x2000 Set output C forward

4.138.2.8

#dene RCX_RemotePBMessage1 0x0100 Send PB message 1

4.138.2.9

#dene RCX_RemotePBMessage2 0x0200 Send PB message 2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.139

RCX and Scout sound constants

556

4.138.2.10

#dene RCX_RemotePBMessage3 0x0400 Send PB message 3

4.138.2.11

#dene RCX_RemotePlayASound 0x0080 Play a sound

4.138.2.12

#dene RCX_RemoteSelProgram1 0x0002 Select program 1

4.138.2.13

#dene RCX_RemoteSelProgram2 0x0004 Select program 2

4.138.2.14

#dene RCX_RemoteSelProgram3 0x0008 Select program 3

4.138.2.15

#dene RCX_RemoteSelProgram4 0x0010 Select program 4

4.138.2.16

#dene RCX_RemoteSelProgram5 0x0020 Select program 5

4.138.2.17

#dene RCX_RemoteStopOutOff 0x0040 Stop and turn off outputs

4.139

RCX and Scout sound constants

Constants for use when playing standard RCX and Scout sounds.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.139

RCX and Scout sound constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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.

Scout sound constants


Constants for use when playing standard Scout sounds.

Scout sound set constants


Constants for use when choosing standard Scout sound sets.

Scout mode constants


Constants for use when setting the scout mode.

Scout motion rule constants


Constants for use when setting the scout motion rule.

Scout touch rule constants


Constants for use when setting the scout touch rule.

Scout light rule constants


Constants for use when setting the scout light rule.

Scout transmit rule constants


Constants for use when setting the scout transmit rule.

Scout special effect constants


Constants for use when setting the scout special effect.

4.140.1

Detailed Description

Constants for use when controlling the Scout brick.

4.141

Scout light constants

Constants for use when controlling the Scout light settings.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.142

Scout sound constants

559

Denes #dene SCOUT_LIGHT_ON 0x80 #dene SCOUT_LIGHT_OFF 0 4.141.1 Detailed Description

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

Scout sound constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.142

Scout sound constants

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

Scout sound constants

561

4.142.2.8

#dene SCOUT_SOUND_ENTERSA 7 Play the Scout enter standalone sound

4.142.2.9

#dene SCOUT_SOUND_KEYERROR 8 Play the Scout key error sound

4.142.2.10

#dene SCOUT_SOUND_MAIL_RECEIVED 24 Play the Scout mail received sound

4.142.2.11

#dene SCOUT_SOUND_NONE 9 Play the Scout none sound

4.142.2.12

#dene SCOUT_SOUND_REMOTE 6 Play the Scout remote sound

4.142.2.13

#dene SCOUT_SOUND_SPECIAL1 25 Play the Scout special 1 sound

4.142.2.14

#dene SCOUT_SOUND_SPECIAL2 26 Play the Scout special 2 sound

4.142.2.15

#dene SCOUT_SOUND_SPECIAL3 27 Play the Scout special 3 sound

4.142.2.16

#dene SCOUT_SOUND_TIMER1 21 Play the Scout timer 1 sound

4.142.2.17

#dene SCOUT_SOUND_TIMER2 22 Play the Scout timer 2 sound

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.143

Scout sound set constants

562

4.142.2.18

#dene SCOUT_SOUND_TIMER3 23 Play the Scout timer 3 sound

4.142.2.19

#dene SCOUT_SOUND_TOUCH1_PRES 10 Play the Scout touch 1 pressed sound

4.142.2.20

#dene SCOUT_SOUND_TOUCH1_REL 11 Play the Scout touch 1 released sound

4.142.2.21

#dene SCOUT_SOUND_TOUCH2_PRES 12 Play the Scout touch 2 pressed sound

4.142.2.22

#dene SCOUT_SOUND_TOUCH2_REL 13 Play the Scout touch 2 released sound

4.143

Scout sound set constants

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

Constants for use when choosing standard Scout sound sets.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.144

Scout mode constants

563

4.143.2 4.143.2.1

Dene Documentation #dene SCOUT_SNDSET_ALARM 3 Set sound set to alarm

4.143.2.2

#dene SCOUT_SNDSET_BASIC 1 Set sound set to basic

4.143.2.3

#dene SCOUT_SNDSET_BUG 2 Set sound set to bug

4.143.2.4

#dene SCOUT_SNDSET_NONE 0 Set sound set to none

4.143.2.5

#dene SCOUT_SNDSET_RANDOM 4 Set sound set to random

4.143.2.6

#dene SCOUT_SNDSET_SCIENCE 5 Set sound set to science

4.144

Scout mode constants

Constants for use when setting the scout mode. Denes #dene SCOUT_MODE_STANDALONE 0 #dene SCOUT_MODE_POWER 1 4.144.1 Detailed Description

Constants for use when setting the scout mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.145

Scout motion rule constants

564

4.144.2 4.144.2.1

Dene Documentation #dene SCOUT_MODE_POWER 1 Enter power mode

4.144.2.2

#dene SCOUT_MODE_STANDALONE 0 Enter stand alone mode

4.145

Scout motion rule constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.146

Scout touch rule constants

565

4.145.2.3

#dene SCOUT_MR_FORWARD 1 Motion rule forward

4.145.2.4

#dene SCOUT_MR_LOOP_A 5 Motion rule loop A

4.145.2.5

#dene SCOUT_MR_LOOP_AB 7 Motion rule loop A then B

4.145.2.6

#dene SCOUT_MR_LOOP_B 6 Motion rule loop B

4.145.2.7

#dene SCOUT_MR_NO_MOTION 0 Motion rule none

4.145.2.8

#dene SCOUT_MR_ZIGZAG 2 Motion rule zigzag

4.146

Scout touch rule constants

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

Constants for use when setting the scout touch rule.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.147

Scout light rule constants

566

4.146.2 4.146.2.1

Dene Documentation #dene SCOUT_TR_AVOID 2 Touch rule avoid

4.146.2.2

#dene SCOUT_TR_IGNORE 0 Touch rule ignore

4.146.2.3

#dene SCOUT_TR_OFF_WHEN 4 Touch rule off when

4.146.2.4

#dene SCOUT_TR_REVERSE 1 Touch rule reverse

4.146.2.5

#dene SCOUT_TR_WAIT_FOR 3 Touch rule wait for

4.147

Scout light rule constants

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

Constants for use when setting the scout light rule.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.148

Scout transmit rule constants

567

4.147.2 4.147.2.1

Dene Documentation #dene SCOUT_LR_AVOID 3 Light rule avoid

4.147.2.2

#dene SCOUT_LR_IGNORE 0 Light rule ignore

4.147.2.3

#dene SCOUT_LR_OFF_WHEN 5 Light rule off when

4.147.2.4

#dene SCOUT_LR_SEEK_DARK 2 Light rule seek dark

4.147.2.5

#dene SCOUT_LR_SEEK_LIGHT 1 Light rule seek light

4.147.2.6

#dene SCOUT_LR_WAIT_FOR 4 Light rule wait for

4.148

Scout transmit rule constants

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

Constants for use when setting the scout transmit rule.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.149

Scout special effect constants

568

4.148.2 4.148.2.1

Dene Documentation #dene SCOUT_TGS_LONG 2 Transmit level long

4.148.2.2

#dene SCOUT_TGS_MEDIUM 1 Transmit level medium

4.148.2.3

#dene SCOUT_TGS_SHORT 0 Transmit level short

4.149

Scout special effect constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.150

RCX and Scout source constants

569

4.149.2.3

#dene SCOUT_FXR_NONE 0 No special effects

4.149.2.4

#dene SCOUT_FXR_RANDOM 3 Random special effects

4.149.2.5

#dene SCOUT_FXR_SCIENCE 4 Science special effects

4.150

RCX and Scout source constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.150

RCX and Scout source constants

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

RCX and Scout source constants

571

4.150.2.6

#dene RCX_DatalogRawIndirectSrc 41 The RCX indirect datalog raw source

4.150.2.7

#dene RCX_DatalogSrcDirectSrc 38 The RCX direct datalog source source

4.150.2.8

#dene RCX_DatalogSrcIndirectSrc 37 The RCX indirect datalog source source

4.150.2.9

#dene RCX_DatalogValueDirectSrc 40 The RCX direct datalog value source

4.150.2.10

#dene RCX_DatalogValueIndirectSrc 39 The RCX indirect datalog value source

4.150.2.11

#dene RCX_DurationSrc 31 The RCX event duration source

4.150.2.12

#dene RCX_EventStateSrc 25 The RCX event static source

4.150.2.13

#dene RCX_FirmwareVersionSrc 35 The RCX rmware version source

4.150.2.14

#dene RCX_GlobalMotorStatusSrc 17 The RCX global motor status source

4.150.2.15

#dene RCX_HysteresisSrc 30 The RCX event hysteresis source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.150

RCX and Scout source constants

572

4.150.2.16

#dene RCX_IndirectVarSrc 36 The RCX indirect variable source

4.150.2.17

#dene RCX_InputBooleanSrc 13 The RCX input boolean source

4.150.2.18

#dene RCX_InputModeSrc 11 The RCX input mode source

4.150.2.19

#dene RCX_InputRawSrc 12 The RCX input raw source

4.150.2.20

#dene RCX_InputTypeSrc 10 The RCX input type source

4.150.2.21

#dene RCX_InputValueSrc 9 The RCX input value source

4.150.2.22

#dene RCX_LowerThresholdSrc 29 The RCX event lower threshold source

4.150.2.23

#dene RCX_MessageSrc 15 The RCX message source

4.150.2.24

#dene RCX_OutputStatusSrc 3 The RCX output status source

4.150.2.25

#dene RCX_ProgramSlotSrc 8 The RCX program slot source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.150

RCX and Scout source constants

573

4.150.2.26

#dene RCX_RandomSrc 4 The RCX random number source

4.150.2.27

#dene RCX_ScoutCounterLimitSrc 22 The Scout counter limit source

4.150.2.28

#dene RCX_ScoutEventFBSrc 24 The Scout event feedback source

4.150.2.29

#dene RCX_ScoutLightParamsSrc 19 The Scout light parameters source

4.150.2.30

#dene RCX_ScoutRulesSrc 18 The Scout rules source

4.150.2.31

#dene RCX_ScoutTimerLimitSrc 20 The Scout timer limit source

4.150.2.32

#dene RCX_TaskEventsSrc 23 The RCX task events source

4.150.2.33

#dene RCX_TenMSTimerSrc 26 The RCX 10ms timer source

4.150.2.34

#dene RCX_TimerSrc 1 The RCX timer source

4.150.2.35

#dene RCX_UARTSetupSrc 33 The RCX UART setup source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

574

4.150.2.36

#dene RCX_UpperThresholdSrc 28 The RCX event upper threshold source

4.150.2.37

#dene RCX_VariableSrc 0 The RCX variable source

4.150.2.38

#dene RCX_WatchSrc 14 The RCX watch source

4.151

RCX and Scout opcode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

577

4.151.2.7

#dene RCX_ClearAllEventsOp 0x06 Clear all events

4.151.2.8

#dene RCX_ClearCounterOp 0xb7 Clear a counter

4.151.2.9

#dene RCX_ClearMsgOp 0x90 Clear message

4.151.2.10

#dene RCX_ClearSensorOp 0xd1 Clear a sensor

4.151.2.11

#dene RCX_ClearSoundOp 0x80 Clear sound

4.151.2.12

#dene RCX_ClearTimerOp 0xa1 Clear a timer

4.151.2.13

#dene RCX_DatalogOp 0x62 Datalog the specied source/value

4.151.2.14

#dene RCX_DecCounterOp 0xa7 Decrement a counter

4.151.2.15

#dene RCX_DeleteSubOp 0xc1 Delete a subroutine

4.151.2.16

#dene RCX_DeleteSubsOp 0x70 Delete subroutines

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

578

4.151.2.17

#dene RCX_DeleteTaskOp 0x61 Delete a task

4.151.2.18

#dene RCX_DeleteTasksOp 0x40 Delete tasks

4.151.2.19

#dene RCX_DirectEventOp 0x03 Fire an event

4.151.2.20

#dene RCX_DisplayOp 0x33 Set LCD display value

4.151.2.21

#dene RCX_DivVarOp 0x44 Divide function

4.151.2.22

#dene RCX_GOutputDirOp 0x77 Set global motor direction

4.151.2.23

#dene RCX_GOutputModeOp 0x67 Set global motor mode

4.151.2.24

#dene RCX_GOutputPowerOp 0xa3 Set global motor power levels

4.151.2.25

#dene RCX_IncCounterOp 0x97 Increment a counter

4.151.2.26

#dene RCX_InputModeOp 0x42 Set the input mode

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

579

4.151.2.27

#dene RCX_InputTypeOp 0x32 Set the input type

4.151.2.28

#dene RCX_IRModeOp 0x31 Set the IR transmit mode

4.151.2.29

#dene RCX_LightOp 0x87 Light opcode

4.151.2.30

#dene RCX_LSBlinkTimeOp 0xe3 Set the light sensor blink time

4.151.2.31

#dene RCX_LSCalibrateOp 0xc0 Calibrate the light sensor

4.151.2.32

#dene RCX_LSHysteresisOp 0xd3 Set the light sensor hysteresis

4.151.2.33

#dene RCX_LSLowerThreshOp 0xc3 Set the light sensor lower threshold

4.151.2.34

#dene RCX_LSUpperThreshOp 0xb3 Set the light sensor upper threshold

4.151.2.35

#dene RCX_MessageOp 0xf7 Set message

4.151.2.36

#dene RCX_MulVarOp 0x54 Multiply function

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

580

4.151.2.37

#dene RCX_MuteSoundOp 0xd0 Mute sound

4.151.2.38

#dene RCX_OnOffFloatOp 0x21 Control motor state - on, off, oat

4.151.2.39

#dene RCX_OrVarOp 0x94 OR function

4.151.2.40

#dene RCX_OutputDirOp 0xe1 Set the motor direction

4.151.2.41

#dene RCX_OutputPowerOp 0x13 Set the motor power level

4.151.2.42

#dene RCX_PBTurnOffOp 0x60 Turn off the brick

4.151.2.43

#dene RCX_PingOp 0x10 Ping the brick

4.151.2.44

#dene RCX_PlaySoundOp 0x51 Play a sound

4.151.2.45

#dene RCX_PlayToneOp 0x23 Play a tone

4.151.2.46

#dene RCX_PlayToneVarOp 0x02 Play a tone using a variable

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

581

4.151.2.47

#dene RCX_PollMemoryOp 0x63 Poll a memory location

4.151.2.48

#dene RCX_PollOp 0x12 Poll a source/value combination

4.151.2.49

#dene RCX_RemoteOp 0xd2 Execute simulated remote control buttons

4.151.2.50

#dene RCX_ScoutOp 0x47 Scout opcode

4.151.2.51

#dene RCX_ScoutRulesOp 0xd5 Set Scout rules

4.151.2.52

#dene RCX_SelectProgramOp 0x91 Select a program slot

4.151.2.53

#dene RCX_SendUARTDataOp 0xc2 Send data via IR using UART settings

4.151.2.54

#dene RCX_SetCounterOp 0xd4 Set counter value

4.151.2.55

#dene RCX_SetDatalogOp 0x52 Set the datalog size

4.151.2.56

#dene RCX_SetEventOp 0x93 Set an event

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

582

4.151.2.57

#dene RCX_SetFeedbackOp 0x83 Set Scout feedback

4.151.2.58

#dene RCX_SetPriorityOp 0xd7 Set task priority

4.151.2.59

#dene RCX_SetSourceValueOp 0x05 Set a source/value

4.151.2.60

#dene RCX_SetTimerLimitOp 0xc4 Set timer limit

4.151.2.61

#dene RCX_SetVarOp 0x14 Set function

4.151.2.62

#dene RCX_SetWatchOp 0x22 Set the watch source/value

4.151.2.63

#dene RCX_SgnVarOp 0x64 Sign function

4.151.2.64

#dene RCX_SoundOp 0x57 Sound opcode

4.151.2.65

#dene RCX_StartTaskOp 0x71 Start a task

4.151.2.66

#dene RCX_StopAllTasksOp 0x50 Stop all tasks

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.151

RCX and Scout opcode constants

583

4.151.2.67

#dene RCX_StopTaskOp 0x81 Stop a task

4.151.2.68

#dene RCX_SubVarOp 0x34 Subtract function

4.151.2.69

#dene RCX_SumVarOp 0x24 Sum function

4.151.2.70

#dene RCX_UnlockFirmOp 0xa5 Unlock the rmware

4.151.2.71

#dene RCX_UnlockOp 0x15 Unlock the brick

4.151.2.72

#dene RCX_UnmuteSoundOp 0xe0 Unmute sound

4.151.2.73

#dene RCX_UploadDatalogOp 0xa4 Upload datalog contents

4.151.2.74

#dene RCX_ViewSourceValOp 0xe5 View a source/value

4.151.2.75

#dene RCX_VLLOp 0xe2 Send visual light link (VLL) data

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.152

HiTechnic/mindsensors Power Function/IR Train constants

584

4.152

HiTechnic/mindsensors Power Function/IR Train constants

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.

Power Function channel constants


Constants that are for specifying Power Function channels.

Power Function mode constants


Constants that are for choosing Power Function modes.

PF/IR Train function constants


Constants that are for sending PF/IR Train functions.

IR Train channel constants


Constants that are for specifying IR Train channels.

Power Function output constants


Constants that are for choosing a Power Function output.

Power Function pin constants


Constants that are for choosing a Power Function pin.

Power Function single pin function constants


Constants that are for sending Power Function single pin functions.

Power Function CST options constants


Constants that are for specifying Power Function CST options.

Power Function PWM option constants


Constants that are for specifying Power Function PWM options.

4.152.1

Detailed Description

Constants that are for use with the HiTechnic IRLink or mindsensors nRLink in Power Function or IR Train mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.153

Power Function command constants

585

4.153

Power Function command constants

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

Power Function channel constants

Constants that are for specifying Power Function channels.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.155

Power Function mode constants

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

Power Function mode constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.155

Power Function mode constants

587

#dene PF_MODE_SINGLE_OUTPUT_PWM 4 #dene PF_MODE_SINGLE_OUTPUT_CST 6 4.155.1 Detailed Description

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.156

PF/IR Train function constants

588

4.156

PF/IR Train function constants

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

IR Train channel constants

Constants that are for specifying IR Train channels.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.158

Power Function output constants

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

Power Function output constants

Constants that are for choosing a Power Function output. Denes #dene PF_OUT_A 0 #dene PF_OUT_B 1

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.159

Power Function pin constants

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

Power Function pin constants

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

Power Function single pin function constants

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

Power Function CST options constants

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

Power Function CST options constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.161

Power Function CST options constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.162

Power Function PWM option constants

593

4.161.2.8

#dene PF_CST_SET1_SET2 3 Power function CST set 1 and set 2

4.161.2.9

#dene PF_CST_TOGGLE_DIR 8 Power function CST toggle direction

4.162

Power Function PWM option constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.162

Power Function PWM option constants

594

4.162.2.2

#dene PF_PWM_FLOAT 0 Power function PWM oat

4.162.2.3

#dene PF_PWM_FWD1 1 Power function PWM foward level 1

4.162.2.4

#dene PF_PWM_FWD2 2 Power function PWM foward level 2

4.162.2.5

#dene PF_PWM_FWD3 3 Power function PWM foward level 3

4.162.2.6

#dene PF_PWM_FWD4 4 Power function PWM foward level 4

4.162.2.7

#dene PF_PWM_FWD5 5 Power function PWM foward level 5

4.162.2.8

#dene PF_PWM_FWD6 6 Power function PWM foward level 6

4.162.2.9

#dene PF_PWM_FWD7 7 Power function PWM foward level 7

4.162.2.10

#dene PF_PWM_REV1 15 Power function PWM reverse level 1

4.162.2.11

#dene PF_PWM_REV2 14 Power function PWM reverse level 2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.163

HiTechnic device constants

595

4.162.2.12

#dene PF_PWM_REV3 13 Power function PWM reverse level 3

4.162.2.13

#dene PF_PWM_REV4 12 Power function PWM reverse level 4

4.162.2.14

#dene PF_PWM_REV5 11 Power function PWM reverse level 5

4.162.2.15

#dene PF_PWM_REV6 10 Power function PWM reverse level 6

4.162.2.16

#dene PF_PWM_REV7 9 Power function PWM reverse level 7

4.163

HiTechnic device constants

Constants that are for use with HiTechnic devices. Modules HiTechnic IRSeeker2 constants
Constants that are for use with the HiTechnic IRSeeker2 device.

HiTechnic IRReceiver constants


Constants that are for use with the HiTechnic IRReceiver device.

HiTechnic Color2 constants


Constants that are for use with the HiTechnic Color2 device.

4.163.1

Detailed Description

Constants that are for use with HiTechnic devices.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.164

HiTechnic IRSeeker2 constants

596

4.164

HiTechnic IRSeeker2 constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.164

HiTechnic IRSeeker2 constants

597

4.164.2.4

#dene HTIR2_REG_AC02 0x4B IRSeeker 2 AC 02 register

4.164.2.5

#dene HTIR2_REG_AC03 0x4C IRSeeker 2 AC 03 register

4.164.2.6

#dene HTIR2_REG_AC04 0x4D IRSeeker 2 AC 04 register

4.164.2.7

#dene HTIR2_REG_AC05 0x4E IRSeeker 2 AC 05 register

4.164.2.8

#dene HTIR2_REG_ACDIR 0x49 IRSeeker 2 AC direction register

4.164.2.9

#dene HTIR2_REG_DC01 0x43 IRSeeker 2 DC 01 register

4.164.2.10

#dene HTIR2_REG_DC02 0x44 IRSeeker 2 DC 02 register

4.164.2.11

#dene HTIR2_REG_DC03 0x45 IRSeeker 2 DC 03 register

4.164.2.12

#dene HTIR2_REG_DC04 0x46 IRSeeker 2 DC 04 register

4.164.2.13

#dene HTIR2_REG_DC05 0x47 IRSeeker 2 DC 05 register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.165

HiTechnic IRReceiver constants

598

4.164.2.14

#dene HTIR2_REG_DCAVG 0x48 IRSeeker 2 DC average register

4.164.2.15

#dene HTIR2_REG_DCDIR 0x42 IRSeeker 2 DC direction register

4.164.2.16

#dene HTIR2_REG_MODE 0x41 IRSeeker 2 mode register

4.165

HiTechnic IRReceiver constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.166

HiTechnic Color2 constants

599

4.165.2.3

#dene HT_CH2_A 2 Use IRReceiver channel 2 output A

4.165.2.4

#dene HT_CH2_B 3 Use IRReceiver channel 2 output B

4.165.2.5

#dene HT_CH3_A 4 Use IRReceiver channel 3 output A

4.165.2.6

#dene HT_CH3_B 5 Use IRReceiver channel 3 output B

4.165.2.7

#dene HT_CH4_A 6 Use IRReceiver channel 4 output A

4.165.2.8

#dene HT_CH4_B 7 Use IRReceiver channel 4 output B

4.166

HiTechnic Color2 constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.166

HiTechnic Color2 constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.167

MindSensors device constants

601

4.166.2.9

#dene HT_CMD_COLOR2_PASSIVE 0x01 Set the Color2 sensor to passive mode

4.166.2.10

#dene HT_CMD_COLOR2_RAW 0x03 Set the Color2 sensor to raw mode

4.166.2.11

#dene HT_CMD_COLOR2_WBCAL 0x43 Set the Color2 sensor to white level calibration mode

4.167

MindSensors device constants

Constants that are for use with MindSensors devices. Modules MindSensors DIST-Nx constants
Constants that are for use with the MindSensors DIST-Nx device.

MindSensors PSP-Nx constants


Constants that are for use with the MindSensors PSP-Nx device.

MindSensors nRLink constants


Constants that are for use with the MindSensors nRLink 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

Constants that are for use with MindSensors devices.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.168

MindSensors DIST-Nx constants

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

#dene MS_CMD_ADPA_ON 0x4E Turn MindSensors ADPA mode on

4.167.2.3

#dene MS_CMD_DEENERGIZED 0x44 De-energize the MindSensors device

4.167.2.4

#dene MS_CMD_ENERGIZED 0x45 Energize the MindSensors device

4.168

MindSensors DIST-Nx constants

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

MindSensors DIST-Nx constants

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

#dene DIST_CMD_GP2D12 0x31 Set the DIST-Nx to GP2D12 mode

4.168.2.3

#dene DIST_CMD_GP2D120 0x32 Set the DIST-Nx to GP2D120 mode

4.168.2.4

#dene DIST_CMD_GP2YA02 0x34 Set the DIST-Nx to GP2YA02 mode

4.168.2.5

#dene DIST_CMD_GP2YA21 0x33 Set the DIST-Nx to GP2YA21 mode

4.168.2.6

#dene DIST_REG_DIST 0x42 The DIST-Nx distance register

4.168.2.7

#dene DIST_REG_DIST1 0x58 The DIST-Nx distance 1 register

4.168.2.8

#dene DIST_REG_DIST_MAX 0x54 The DIST-Nx maximum distance register

4.168.2.9

#dene DIST_REG_DIST_MIN 0x52 The DIST-Nx minimum distance register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.169

MindSensors PSP-Nx constants

604

4.168.2.10

#dene DIST_REG_MODULE_TYPE 0x50 The DIST-Nx module type register

4.168.2.11

#dene DIST_REG_NUM_POINTS 0x51 The DIST-Nx number of points register

4.168.2.12

#dene DIST_REG_VOLT 0x44 The DIST-Nx voltage register

4.168.2.13

#dene DIST_REG_VOLT1 0x56 The DIST-Nx voltage 1 register

4.169

MindSensors PSP-Nx constants

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.

MindSensors PSP-Nx button set 2 constants


Constants that are for interpretting MindSensors PSP-Nx button set 2 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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.169

MindSensors PSP-Nx constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.170

MindSensors PSP-Nx button set 1 constants

606

4.170

MindSensors PSP-Nx button set 1 constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.171

MindSensors PSP-Nx button set 2 constants

607

4.170.2.6

#dene PSP_BTNSET1_UP 0x08 The PSP-Nx button set 1 up arrow

4.171

MindSensors PSP-Nx button set 2 constants

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.172

MindSensors nRLink constants

608

4.171.2.5

#dene PSP_BTNSET2_R1 0x10 The PSP-Nx button set 2 R1

4.171.2.6

#dene PSP_BTNSET2_R2 0x40 The PSP-Nx button set 2 R2

4.171.2.7

#dene PSP_BTNSET2_SQUARE 0x01 The PSP-Nx button set 2 square

4.171.2.8

#dene PSP_BTNSET2_TRIANGLE 0x08 The PSP-Nx button set 2 triangle

4.172

MindSensors nRLink constants

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.172

MindSensors nRLink constants

609

4.172.2 4.172.2.1

Dene Documentation #dene NRLINK_CMD_2400 0x44 Set NRLink to 2400 baud

4.172.2.2

#dene NRLINK_CMD_4800 0x48 Set NRLink to 4800 baud

4.172.2.3

#dene NRLINK_CMD_FLUSH 0x46 Flush the NRLink

4.172.2.4

#dene NRLINK_CMD_IR_LONG 0x4C Set the NRLink to long range IR

4.172.2.5

#dene NRLINK_CMD_IR_SHORT 0x53 Set the NRLink to short range IR

4.172.2.6

#dene NRLINK_CMD_RUN_MACRO 0x52 Run an NRLink macro

4.172.2.7

#dene NRLINK_CMD_SET_PF 0x50 Set the NRLink to Power Function mode

4.172.2.8

#dene NRLINK_CMD_SET_RCX 0x58 Set the NRLink to RCX mode

4.172.2.9

#dene NRLINK_CMD_SET_TRAIN 0x54 Set the NRLink to IR Train mode

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.173

Data type limits

610

4.172.2.10

#dene NRLINK_CMD_TX_RAW 0x55 Set the NRLink to transmit raw bytes

4.172.2.11

#dene NRLINK_REG_BYTES 0x40 The NRLink bytes register

4.172.2.12

#dene NRLINK_REG_DATA 0x42 The NRLink data register

4.172.2.13

#dene NRLINK_REG_EEPROM 0x50 The NRLink eeprom register

4.173

Data type limits

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.173

Data type limits

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.174

Graphics library begin modes

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

#dene SHRT_MAX 32767 The maximum value of the short type

4.173.2.12

#dene SHRT_MIN -32767 The minimum value of the short type

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

Graphics library begin modes

Constants that are used to specify the polygon surface begin mode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.175

Graphics library actions

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

Graphics library actions

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.175

Graphics library actions

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

4.176

Graphics library settings

615

4.175.2.8

#dene GL_TRANSLATE_Y 2 Translate along the Y axis.

4.175.2.9

#dene GL_TRANSLATE_Z 3 Translate along the Z axis.

4.176

Graphics library settings

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

Graphics library cull mode

616

4.177

Graphics library cull mode

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:

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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"

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

631

#dene OUT_REGMODE_SYNC 2 #dene UpdateFlags 0


Update ags eld.

#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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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 RICImgRect(_Pt, _W, _H) _Pt, (_W)&0xFF, (_W)>>8, (_H)&0xFF, (_H)>>8


Output an RIC ImgRect 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.

#dene RICOpLine(_CopyOptions, _Point1, _Point2) 12, 0, 5, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point1, _Point2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

649

Output an RIC Line opcode.

#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 RICSpriteData(...) __VA_ARGS__


Output RIC sprite data.

#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.

#dene RICMapElement(_Domain, _Range) Domain)>>8, (_Range)&0xFF, (_Range)>>8


Output an RIC map element.

(_Domain)&0xFF,

(_-

#dene RICMapFunction(_MapElement,...) _MapElement, __VA_ARGS__


Output an RIC VarMap function.

#dene RICArg(_arg) ((_arg)|0x1000)


Output an RIC parameterized argument.

#dene RICMapArg(_mapidx, mapidx)&0xF)<<8))


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

_arg)

((_arg)|0x1000|(((_-

5.2

NBCCommon.h File Reference

650

Output an RIC parameterized and mapped argument.

#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 RICPolygonPoints(_pPoint1, _pPoint2,...) _pPoint1, _pPoint2, __VA_ARGS__


Output RIC polygon points.

#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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

653

5.2.2.9

#dene BT_ARM_CMD_MODE 1 BtState constant bluetooth command mode

5.2.2.10

#dene BT_ARM_DATA_MODE 2 BtState constant bluetooth data mode

5.2.2.11

#dene BT_ARM_OFF 0 BtState constant bluetooth off

5.2.2.12

#dene BT_BRICK_PORT_OPEN 0x02 BtStateStatus port open bit

5.2.2.13

#dene BT_BRICK_VISIBILITY 0x01 BtStateStatus brick visibility bit

5.2.2.14

#dene BT_CMD_BYTE 1 Size of Bluetooth command

5.2.2.15

#dene BT_CMD_READY 0x02 A constant representing bluetooth direct command

5.2.2.16

#dene BT_CONNECTION_0_ENABLE 0x10 BtStateStatus connection 0 enable/disable bit

5.2.2.17

#dene BT_CONNECTION_1_ENABLE 0x20 BtStateStatus connection 1 enable/disable bit

5.2.2.18

#dene BT_CONNECTION_2_ENABLE 0x40 BtStateStatus connection 2 enable/disable bit

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

654

5.2.2.19

#dene BT_CONNECTION_3_ENABLE 0x80 BtStateStatus connection 3 enable/disable bit

5.2.2.20

#dene BT_DEFAULT_INQUIRY_MAX 0 Bluetooth default inquiry Max (0 == unlimited)

5.2.2.21

#dene BT_DEFAULT_INQUIRY_TIMEOUT_LO 15 Bluetooth inquiry timeout (151.28 sec = 19.2 sec)

5.2.2.22

#dene BT_DEVICE_AWAY 0x80 Bluetooth device away

5.2.2.23

#dene BT_DEVICE_EMPTY 0x00 Bluetooth device table empty

5.2.2.24

#dene BT_DEVICE_KNOWN 0x02 Bluetooth device known

5.2.2.25

#dene BT_DEVICE_NAME 0x40 Bluetooth device name

5.2.2.26

#dene BT_DEVICE_UNKNOWN 0x01 Bluetooth device unknown

5.2.2.27

#dene BT_DISABLE 0x01 BtHwStatus bluetooth disable

5.2.2.28

#dene BT_ENABLE 0x00 BtHwStatus bluetooth enable

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

655

5.2.2.29

#dene BTN1 0 The exit button.

5.2.2.30

#dene BTN2 1 The right button.

5.2.2.31

#dene BTN3 2 The left button.

5.2.2.32

#dene BTN4 3 The enter button.

5.2.2.33

#dene BTNCENTER BTN4 The enter button.

5.2.2.34

#dene BTNEXIT BTN1 The exit button.

5.2.2.35

#dene BTNLEFT BTN3 The left button.

5.2.2.36

#dene BTNRIGHT BTN2 The right button.

5.2.2.37

#dene BTNSTATE_LONG_PRESSED_EV 0x04 Button is in the long pressed state.

5.2.2.38

#dene BTNSTATE_LONG_RELEASED_EV 0x08 Button is in the long released state.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

656

5.2.2.39

#dene BTNSTATE_NONE 0x10 The default button state.

5.2.2.40

#dene BTNSTATE_PRESSED_EV 0x01 Button is in the pressed state.

5.2.2.41

#dene BTNSTATE_PRESSED_STATE 0x80 A bitmask for the button pressed state

5.2.2.42

#dene BTNSTATE_SHORT_RELEASED_EV 0x02 Button is in the short released state.

5.2.2.43

#dene ButtonModuleID 0x00040001 The button module ID

5.2.2.44

#dene ButtonModuleName "Button.mod" The button module name

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene CHAR_BIT 8 The number of bits in the char type

5.2.2.52

#dene CHAR_MAX 127 The maximum value of the char type

5.2.2.53

#dene CHAR_MIN -127 The minimum value of the char type

5.2.2.54

#dene CLUMP_DONE 1 VM has nished executing thread

5.2.2.55

#dene CLUMP_SUSPEND 2 VM should suspend thread

5.2.2.56

#dene ColorSensorRead 34 Read data from the NXT 2.0 color sensor

5.2.2.57

#dene COM_CHANNEL_FOUR_ACTIVE 0x08 Low speed channel 4 is active

5.2.2.58

#dene COM_CHANNEL_NONE_ACTIVE 0x00 None of the low speed channels are active

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

658

5.2.2.59

#dene COM_CHANNEL_ONE_ACTIVE 0x01 Low speed channel 1 is active

5.2.2.60

#dene COM_CHANNEL_THREE_ACTIVE 0x04 Low speed channel 3 is active

5.2.2.61

#dene COM_CHANNEL_TWO_ACTIVE 0x02 Low speed channel 2 is active

5.2.2.62

#dene CommandModuleID 0x00010001 The command module ID

5.2.2.63

#dene CommandModuleName "Command.mod" The command module name

5.2.2.64

#dene CommandOffsetActivateFlag 30 Offset to the activate ag

5.2.2.65

#dene CommandOffsetAwake 29 Offset to the VMs awake state

5.2.2.66

#dene CommandOffsetDeactivateFlag 31 Offset to the deactivate ag

5.2.2.67

#dene CommandOffsetFileName 32 Offset to the running programs lename

5.2.2.68

#dene CommandOffsetFormatString 0 Offset to the format string

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

659

5.2.2.69

#dene CommandOffsetMemoryPool 52 Offset to the VMs memory pool

5.2.2.70

#dene CommandOffsetOffsetDS 24 Offset to the running programs data space (DS)

5.2.2.71

#dene CommandOffsetOffsetDVA 26 Offset to the running programs DOPE vector address (DVA)

5.2.2.72

#dene CommandOffsetPRCHandler 16 Offset to the RC Handler function pointer

5.2.2.73

#dene CommandOffsetProgStatus 28 Offset to the running programs status

5.2.2.74

#dene CommandOffsetSyncTick 32824 Offset to the VM sync tick

5.2.2.75

#dene CommandOffsetSyncTime 32820 Offset to the VM sync time

5.2.2.76

#dene CommandOffsetTick 20 Offset to the VMs current tick

5.2.2.77

#dene CommBTCheckStatus 28 Check the bluetooth status

5.2.2.78

#dene CommBTConnection 36 Connect or disconnect to a known bluetooth device

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

660

5.2.2.79

#dene CommBTOnOff 35 Turn the bluetooth radio on or off

5.2.2.80

#dene CommBTRead 30 Read from a bluetooth connection

5.2.2.81

#dene CommBTWrite 29 Write to a bluetooth connections

5.2.2.82

#dene CommExecuteFunction 81 Execute one of the Comm modules internal functions

5.2.2.83

#dene CommHSCheckStatus 39 Check the status of the hi-speed port

5.2.2.84

#dene CommHSControl 88 Control the hi-speed port

5.2.2.85

#dene CommHSRead 38 Read data from the hi-speed port

5.2.2.86

#dene CommHSWrite 37 Write data to the hi-speed port

5.2.2.87

#dene CommLSCheckStatus 23 Check the status of a lowspeed (aka I2C) device

5.2.2.88

#dene CommLSRead 22 Read from a lowspeed (aka I2C) device

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

661

5.2.2.89

#dene CommLSWrite 21 Write to a lowspeed (aka I2C) device

5.2.2.90

#dene CommLSWriteEx 89 Write to a lowspeed (aka I2C) device with optional restart on read

5.2.2.91

#dene CommModuleID 0x00050001 The Comm module ID

5.2.2.92

#dene CommModuleName "Comm.mod" The Comm module name

5.2.2.93

#dene CommOffsetBrickDataBdAddr 1144 Offset to Bluetooth address (7 bytes)

5.2.2.94

#dene CommOffsetBrickDataBluecoreVersion 1142 Offset to Bluecore version (2 bytes)

5.2.2.95

#dene CommOffsetBrickDataBtHwStatus 1152 Offset to BtHwStatus (1 byte)

5.2.2.96

#dene CommOffsetBrickDataBtStateStatus 1151 Offset to BtStateStatus (1 byte)

5.2.2.97

#dene CommOffsetBrickDataName 1126 Offset to brick name (16 bytes)

5.2.2.98

#dene CommOffsetBrickDataTimeOutValue 1153 Offset to data timeout value (1 byte)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

662

5.2.2.99

#dene CommOffsetBtConnectTableBdAddr(p) (((p)47)+974) Offset to Bluetooth connect table address (7 bytes)

5.2.2.100

#dene CommOffsetBtConnectTableClassOfDevice(p) (((p)47)+954) Offset to Bluetooth connect table device class (4 bytes)

5.2.2.101

#dene CommOffsetBtConnectTableHandleNr(p) (((p)47)+981) Offset to Bluetooth connect table handle (1 byte)

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

#dene CommOffsetBtDeviceCnt 1889 Offset to Bluetooth device count (1 byte)

5.2.2.107

#dene CommOffsetBtDeviceNameCnt 1890 Offset to Bluetooth device name count (1 byte)

5.2.2.108

#dene CommOffsetBtDeviceTableBdAddr(p) (((p)31)+28) Offset to Bluetooth device table address (7 bytes)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

663

5.2.2.109

#dene CommOffsetBtDeviceTableClassOfDevice(p) (((p)31)+24) Offset to Bluetooth device table device class (4 bytes)

5.2.2.110

#dene CommOffsetBtDeviceTableDeviceStatus(p) (((p)31)+35) Offset to Bluetooth device table status (1 byte)

5.2.2.111

#dene CommOffsetBtDeviceTableName(p) (((p)31)+8) Offset to BT device table name (16 bytes)

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

#dene CommOffsetHsFlags 1891 Offset to High Speed ags (1 byte)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene CommOffsetHsMode 1895 Offset to High Speed mode (2 bytes)

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

#dene CommOffsetHsSpeed 1892 Offset to High Speed speed (1 byte)

5.2.2.127

#dene CommOffsetHsState 1893 Offset to High Spped state (1 byte)

5.2.2.128

#dene CommOffsetPFunc 0 Offset to the Comm module rst function pointer (4 bytes)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

666

5.2.2.139

#dene CommOffsetUsbState 1894 Offset to Usb State (1 byte)

5.2.2.140

#dene ComputeCalibValue 42 Compute a calibration value

5.2.2.141

#dene DatalogGetTimes 45 Get datalog timing information

5.2.2.142

#dene DatalogWrite 44 Write to the datalog

5.2.2.143

#dene DEGREES_PER_RADIAN 180/PI Used for converting from radians to degrees

5.2.2.144

#dene DISPLAY_BUSY 0x80 R - Refresh in progress

5.2.2.145

#dene DISPLAY_CHAR 0x04 W - draw char (actual font) (CMD,TRUE,X1,Y1,Char,x)

5.2.2.146

#dene DISPLAY_CONTRAST_DEFAULT 0x5A Default display contrast value

5.2.2.147

#dene DISPLAY_CONTRAST_MAX 0x7F Maximum display contrast value

5.2.2.148

#dene DISPLAY_ERASE_ALL 0x00 W - erase entire screen (CMD,x,x,x,x,x)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

667

5.2.2.149

#dene DISPLAY_ERASE_LINE 0x05 W - erase a single line (CMD,x,LINE,x,x,x)

5.2.2.150

#dene DISPLAY_FILL_REGION 0x06 W - ll screen region (CMD,TRUE/FALSE,X1,Y1,X2,Y2)

5.2.2.151

#dene DISPLAY_FRAME 0x07 W - draw a frame (on/off) (CMD,TRUE/FALSE,X1,Y1,X2,Y2)

5.2.2.152

#dene DISPLAY_HEIGHT 64 The height of the LCD screen in pixels

5.2.2.153

#dene DISPLAY_HORIZONTAL_LINE 0x02 W - draw horizontal line (CMD,TRUE/FALSE,X1,Y1,X2,x)

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

#dene DISPLAY_ON 0x01 W - Display on

5.2.2.158

#dene DISPLAY_PIXEL 0x01 W - set pixel (on/off) (CMD,TRUE/FALSE,X,Y,x,x)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

668

5.2.2.159

#dene DISPLAY_POPUP 0x08 W - Use popup display memory

5.2.2.160

#dene DISPLAY_REFRESH 0x02 W - Enable refresh

5.2.2.161

#dene DISPLAY_REFRESH_DISABLED 0x40 R - Refresh disabled

5.2.2.162

#dene DISPLAY_VERTICAL_LINE 0x03 W - draw vertical line (CMD,TRUE/FALSE,X1,Y1,x,Y2)

5.2.2.163

#dene DISPLAY_WIDTH 100 The width of the LCD screen in pixels

5.2.2.164

#dene DisplayExecuteFunction 80 Execute one of the Display modules internal functions

5.2.2.165

#dene DisplayModuleID 0x000A0001 The display module ID

5.2.2.166

#dene DisplayModuleName "Display.mod" The display module name

5.2.2.167

#dene DisplayOffsetContrast 1719 Adjust the display contrast with this eld

5.2.2.168

#dene DisplayOffsetDisplay 104 Display content copied to physical display every 17 mS

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

669

5.2.2.169

#dene DisplayOffsetEraseMask 4 Section erase mask (executed rst)

5.2.2.170

#dene DisplayOffsetFlags 117 Update ags enumerated above

5.2.2.171

#dene DisplayOffsetNormal(l, w) (((l)100)+(w)+119) Raw display memory for normal screen

5.2.2.172

#dene DisplayOffsetPBitmaps(p) (((p)4)+68) Pointer to free bitmap les

5.2.2.173

#dene DisplayOffsetPFont 12 Pointer to font le

5.2.2.174

#dene DisplayOffsetPFunc 0 Simple draw entry

5.2.2.175

#dene DisplayOffsetPMenuIcons(p) (((p)4)+88) Pointer to menu icon images (NULL == none)

5.2.2.176

#dene DisplayOffsetPMenuText 84 Pointer to menu icon text (NULL == none)

5.2.2.177

#dene DisplayOffsetPopup(l, w) (((l)100)+(w)+919) Raw display memory for popup screen

5.2.2.178

#dene DisplayOffsetPScreens(p) (((p)4)+56) Pointer to screen bitmap le

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

670

5.2.2.179

#dene DisplayOffsetPStatusIcons 52 Pointer to status icon collection le

5.2.2.180

#dene DisplayOffsetPStatusText 48 Pointer to status text string

5.2.2.181

#dene DisplayOffsetPStepIcons 100 Pointer to step icon collection le

5.2.2.182

#dene DisplayOffsetPTextLines(p) (((p)4)+16) Pointer to text strings

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

#dene DisplayOffsetTextLinesCenterFlags 118 Mask to center TextLines

5.2.2.186

#dene DisplayOffsetUpdateMask 8 Section update mask (executed next)

5.2.2.187

#dene DIST_CMD_CUSTOM 0x35 Set the DIST-Nx to a custom mode

5.2.2.188

#dene DIST_CMD_GP2D12 0x31 Set the DIST-Nx to GP2D12 mode

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

671

5.2.2.189

#dene DIST_CMD_GP2D120 0x32 Set the DIST-Nx to GP2D120 mode

5.2.2.190

#dene DIST_CMD_GP2YA02 0x34 Set the DIST-Nx to GP2YA02 mode

5.2.2.191

#dene DIST_CMD_GP2YA21 0x33 Set the DIST-Nx to GP2YA21 mode

5.2.2.192

#dene DIST_REG_DIST 0x42 The DIST-Nx distance register

5.2.2.193

#dene DIST_REG_DIST1 0x58 The DIST-Nx distance 1 register

5.2.2.194

#dene DIST_REG_DIST_MAX 0x54 The DIST-Nx maximum distance register

5.2.2.195

#dene DIST_REG_DIST_MIN 0x52 The DIST-Nx minimum distance register

5.2.2.196

#dene DIST_REG_MODULE_TYPE 0x50 The DIST-Nx module type register

5.2.2.197

#dene DIST_REG_NUM_POINTS 0x51 The DIST-Nx number of points register

5.2.2.198

#dene DIST_REG_VOLT 0x44 The DIST-Nx voltage register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

672

5.2.2.199

#dene DIST_REG_VOLT1 0x56 The DIST-Nx voltage 1 register

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

#dene DRAW_OPT_CLEAR_WHOLE_SCREEN (0x0001) Clear the entire screen before drawing

5.2.2.205

#dene DRAW_OPT_FILL_SHAPE (0x0020) Fill the shape while drawing (rectangle, circle, ellipses, and polygon)

5.2.2.206

#dene DRAW_OPT_FONT_DIR_B2TL (0x0100) Font bottom to top left align

5.2.2.207

#dene DRAW_OPT_FONT_DIR_B2TR (0x0140) Font bottom to top right align

5.2.2.208

#dene DRAW_OPT_FONT_DIR_L2RB (0x0000) Font left to right bottom align

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

673

5.2.2.209

#dene DRAW_OPT_FONT_DIR_L2RT (0x0040) Font left to right top align

5.2.2.210

#dene DRAW_OPT_FONT_DIR_R2LB (0x0080) Font right to left bottom align

5.2.2.211

#dene DRAW_OPT_FONT_DIR_R2LT (0x00C0) Font right to left top align

5.2.2.212

#dene DRAW_OPT_FONT_DIR_T2BL (0x0180) Font top to bottom left align

5.2.2.213

#dene DRAW_OPT_FONT_DIR_T2BR (0x01C0) Font top to bottom right align

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

#dene DRAW_OPT_INVERT (0x0004) Invert text or graphics

5.2.2.217

#dene DRAW_OPT_LOGICAL_AND (0x0008) Draw pixels using a logical AND operation

5.2.2.218

#dene DRAW_OPT_LOGICAL_COPY (0x0000) Draw pixels using a logical copy operation

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

674

5.2.2.219

#dene DRAW_OPT_LOGICAL_OPERATIONS (0x0018) Bit mask for the logical drawing operations

5.2.2.220

#dene DRAW_OPT_LOGICAL_OR (0x0010) Draw pixels using a logical OR operation

5.2.2.221

#dene DRAW_OPT_LOGICAL_XOR (0x0018) Draw pixels using a logical XOR operation

5.2.2.222

#dene DRAW_OPT_NORMAL (0x0000) Normal drawing

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

#dene DrawCircle 16 Draw a circle on the LCD screen

5.2.2.225

#dene DrawEllipse 94 Draw an ellipse on the LCD screen

5.2.2.226

#dene DrawFont 95 Draw text using a custom RIC-based font to the LCD screen

5.2.2.227

#dene DrawGraphic 18 Draw a graphic image on the LCD screen

5.2.2.228

#dene DrawGraphicArray 92 Draw a graphic image from a byte array to the LCD screen

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

675

5.2.2.229

#dene DrawLine 15 Draw a line on the LCD screen

5.2.2.230

#dene DrawPoint 14 Draw a single pixel on the LCD screen

5.2.2.231

#dene DrawPolygon 93 Draw a polygon on the LCD screen

5.2.2.232

#dene DrawRect 17 Draw a rectangle on the LCD screen

5.2.2.233

#dene DrawText 13 Draw text to one of 8 LCD lines

5.2.2.234

#dene EOF -1 A constant representing end of le

5.2.2.235

#dene ERR_ARG -1 0xFF Bad arguments

5.2.2.236

#dene ERR_BAD_POOL_SIZE -10 0xF6 VarsCmd.PoolSize > POOL_MAX_SIZE

5.2.2.237

#dene ERR_BAD_PTR -6 0xFA Someone passed us a bad pointer!

5.2.2.238

#dene ERR_CLUMP_COUNT -7 0xF9 (FileClumpCount == 0 || FileClumpCount >= NOT_A_CLUMP)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

676

5.2.2.239

#dene ERR_COMM_BUFFER_FULL -34 0xDE No room in comm buffer

5.2.2.240

#dene ERR_COMM_BUS_ERR -35 0xDD Something went wrong on the communications bus

5.2.2.241

#dene ERR_COMM_CHAN_INVALID -33 0xDF Specied channel/connection is not valid

5.2.2.242

#dene ERR_COMM_CHAN_NOT_READY -32 0xE0 Specied channel/connection not congured or busy

5.2.2.243

#dene ERR_DEFAULT_OFFSETS -14

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

NBCCommon.h File Reference

677

5.2.2.249

#dene ERR_INVALID_QUEUE -18 0xEE Illegal queue ID specied

5.2.2.250

#dene ERR_INVALID_SIZE -19 0xED Illegal size specied

5.2.2.251

#dene ERR_LOADER_ERR -11

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

NBCCommon.h File Reference

678

5.2.2.259

#dene ERR_RC_FAILED -67 0xBD Request failed (i.e. specied le not found)

5.2.2.260

#dene ERR_RC_ILLEGAL_VAL -64 0xC0 Data contains out-of-range values

5.2.2.261

#dene ERR_RC_UNKNOWN_CMD -66 0xBE Unknown command opcode

5.2.2.262

#dene ERR_SPOTCHECK_FAIL -12 0xF4 ((UBYTE)(VarsCmd.pCodespace) < pData) (c_cmd.c 1893)

5.2.2.263

#dene ERR_VER -4 0xFC Version mismatch between rmware and compiler

5.2.2.264

#dene FALSE 0 A false value

5.2.2.265

#dene FileClose 5 Close the specied le

5.2.2.266

#dene FileDelete 8 Delete a le

5.2.2.267

#dene FileFindFirst 83 Start a search for a le using a lename pattern

5.2.2.268

#dene FileFindNext 84 Continue searching for a le

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

679

5.2.2.269

#dene FileOpenAppend 2 Open a le for appending to the end of the le

5.2.2.270

#dene FileOpenRead 0 Open a le for reading

5.2.2.271

#dene FileOpenReadLinear 87 Open a linear le for reading

5.2.2.272

#dene FileOpenWrite 1 Open a le for writing (creates a new le)

5.2.2.273

#dene FileOpenWriteLinear 85 Open a linear le for writing

5.2.2.274

#dene FileOpenWriteNonLinear 86 Open a non-linear le for writing

5.2.2.275

#dene FileRead 3 Read from the specied le

5.2.2.276

#dene FileRename 7 Rename a le

5.2.2.277

#dene FileResize 91 Resize a le (not yet implemented)

5.2.2.278

#dene FileResolveHandle 6 Get a le handle for the specied lename if it is already open

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

680

5.2.2.279

#dene FileSeek 90 Seek to a specic position in an open le

5.2.2.280

#dene FileWrite 4 Write to the specied le

5.2.2.281

#dene FRAME_SELECT 0 Center icon select frame

5.2.2.282

#dene FREQUENCY_MAX 14080 Maximum frequency [Hz]

5.2.2.283

#dene FREQUENCY_MIN 220 Minimum frequency [Hz]

5.2.2.284

#dene GetStartTick 25 Get the current system tick count

5.2.2.285

#dene GL_CAMERA_DEPTH 3 Set the camera depth.

5.2.2.286

#dene GL_CIRCLE 4 Use circle mode.

5.2.2.287

#dene GL_CIRCLE_SIZE 1 Set the circle size.

5.2.2.288

#dene GL_CULL_BACK 2 Cull lines in back.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

681

5.2.2.289

#dene GL_CULL_FRONT 3 Cull lines in front.

5.2.2.290

#dene GL_CULL_MODE 2 Set the cull mode.

5.2.2.291

#dene GL_CULL_NONE 4 Do not cull any lines.

5.2.2.292

#dene GL_LINE 2 Use line mode.

5.2.2.293

#dene GL_POINT 3 Use point mode.

5.2.2.294

#dene GL_POLYGON 1 Use polygon mode.

5.2.2.295

#dene GL_ROTATE_X 4 Rotate around the X axis.

5.2.2.296

#dene GL_ROTATE_Y 5 Rotate around the Y axis.

5.2.2.297

#dene GL_ROTATE_Z 6 Rotate around the Z axis.

5.2.2.298

#dene GL_SCALE_X 7 Scale along the X axis.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

682

5.2.2.299

#dene GL_SCALE_Y 8 Scale along the Y axis.

5.2.2.300

#dene GL_SCALE_Z 9 Scale along the Z axis.

5.2.2.301

#dene GL_TRANSLATE_X 1 Translate along the X axis.

5.2.2.302

#dene GL_TRANSLATE_Y 2 Translate along the Y axis.

5.2.2.303

#dene GL_TRANSLATE_Z 3 Translate along the Z axis.

5.2.2.304

#dene GL_ZOOM_FACTOR 4 Set the zoom factor.

5.2.2.305

#dene HS_BAUD_115200 12 HsMode 115200 Baud

5.2.2.306

#dene HS_BAUD_1200 0 HsMode 1200 Baud

5.2.2.307

#dene HS_BAUD_14400 6 HsMode 14400 Baud

5.2.2.308

#dene HS_BAUD_19200 7 HsMode 19200 Baud

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

683

5.2.2.309

#dene HS_BAUD_230400 13 HsMode 230400 Baud

5.2.2.310

#dene HS_BAUD_2400 1 HsMode 2400 Baud

5.2.2.311

#dene HS_BAUD_28800 8 HsMode 28800 Baud

5.2.2.312

#dene HS_BAUD_3600 2 HsMode 3600 Baud

5.2.2.313

#dene HS_BAUD_38400 9 HsMode 38400 Baud

5.2.2.314

#dene HS_BAUD_460800 14 HsMode 460800 Baud

5.2.2.315

#dene HS_BAUD_4800 3 HsMode 4800 Baud

5.2.2.316

#dene HS_BAUD_57600 10 HsMode 57600 Baud

5.2.2.317

#dene HS_BAUD_7200 4 HsMode 7200 Baud

5.2.2.318

#dene HS_BAUD_76800 11 HsMode 76800 Baud

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

684

5.2.2.319

#dene HS_BAUD_921600 15 HsMode 921600 Baud

5.2.2.320

#dene HS_BAUD_9600 5 HsMode 9600 Baud

5.2.2.321

#dene HS_CMD_READY 0x04 A constant representing high speed direct command

5.2.2.322

#dene HS_CTRL_EXIT 2 Ddisable the high speed port

5.2.2.323

#dene HS_CTRL_INIT 0 Enable the high speed port

5.2.2.324

#dene HS_CTRL_UART 1 Setup the high speed port UART conguration

5.2.2.325

#dene HS_DISABLE 4 HsState disable

5.2.2.326

#dene HS_ENABLE 5 HsState enable

5.2.2.327

#dene HS_INIT_RECEIVER 2 HsState initialize receiver

5.2.2.328

#dene HS_INITIALISE 1 HsState initialize

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

685

5.2.2.329

#dene HS_MODE_10_STOP 0x0000 HsMode 1 stop bit

5.2.2.330

#dene HS_MODE_15_STOP 0x1000 HsMode 1.5 stop bits

5.2.2.331

#dene HS_MODE_20_STOP 0x2000 HsMode 2 stop bits

5.2.2.332

#dene HS_MODE_5_DATA 0x0000 HsMode 5 data bits

5.2.2.333

#dene HS_MODE_6_DATA 0x0040 HsMode 6 data bits

5.2.2.334

#dene HS_MODE_7_DATA 0x0080 HsMode 7 data bits

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

#dene HS_MODE_8_DATA 0x00C0 HsMode 8 data bits

5.2.2.337

#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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

686

5.2.2.338

#dene HS_MODE_E_PARITY 0x0000 HsMode Even parity

5.2.2.339

#dene HS_MODE_M_PARITY 0x0600 HsMode Mark parity

5.2.2.340

#dene HS_MODE_N_PARITY 0x0800 HsMode No parity

5.2.2.341

#dene HS_MODE_O_PARITY 0x0200 HsMode Odd parity

5.2.2.342

#dene HS_MODE_S_PARITY 0x0400 HsMode Space parity

5.2.2.343

#dene HS_SEND_DATA 3 HsState send data

5.2.2.344

#dene HS_UPDATE 1 HsFlags high speed update required

5.2.2.345

#dene HT_CH1_A 0 Use IRReceiver channel 1 output A

5.2.2.346

#dene HT_CH1_B 1 Use IRReceiver channel 1 output B

5.2.2.347

#dene HT_CH2_A 2 Use IRReceiver channel 2 output A

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

687

5.2.2.348

#dene HT_CH2_B 3 Use IRReceiver channel 2 output B

5.2.2.349

#dene HT_CH3_A 4 Use IRReceiver channel 3 output A

5.2.2.350

#dene HT_CH3_B 5 Use IRReceiver channel 3 output B

5.2.2.351

#dene HT_CH4_A 6 Use IRReceiver channel 4 output A

5.2.2.352

#dene HT_CH4_B 7 Use IRReceiver channel 4 output B

5.2.2.353

#dene HT_CMD_COLOR2_50HZ 0x35 Set the Color2 sensor to 50Hz mode

5.2.2.354

#dene HT_CMD_COLOR2_60HZ 0x36 Set the Color2 sensor to 60Hz mode

5.2.2.355

#dene HT_CMD_COLOR2_ACTIVE 0x00 Set the Color2 sensor to active mode

5.2.2.356

#dene HT_CMD_COLOR2_BLCAL 0x42 Set the Color2 sensor to black level calibration mode

5.2.2.357

#dene HT_CMD_COLOR2_FAR 0x46 Set the Color2 sensor to far mode

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene HT_CMD_COLOR2_NEAR 0x4E Set the Color2 sensor to near mode

5.2.2.361

#dene HT_CMD_COLOR2_PASSIVE 0x01 Set the Color2 sensor to passive mode

5.2.2.362

#dene HT_CMD_COLOR2_RAW 0x03 Set the Color2 sensor to raw mode

5.2.2.363

#dene HT_CMD_COLOR2_WBCAL 0x43 Set the Color2 sensor to white level calibration mode

5.2.2.364

#dene HTIR2_MODE_1200 0 Set IRSeeker2 to 1200 mode

5.2.2.365

#dene HTIR2_MODE_600 1 Set IRSeeker2 to 600 mode

5.2.2.366

#dene HTIR2_REG_AC01 0x4A IRSeeker 2 AC 01 register

5.2.2.367

#dene HTIR2_REG_AC02 0x4B IRSeeker 2 AC 02 register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

689

5.2.2.368

#dene HTIR2_REG_AC03 0x4C IRSeeker 2 AC 03 register

5.2.2.369

#dene HTIR2_REG_AC04 0x4D IRSeeker 2 AC 04 register

5.2.2.370

#dene HTIR2_REG_AC05 0x4E IRSeeker 2 AC 05 register

5.2.2.371

#dene HTIR2_REG_ACDIR 0x49 IRSeeker 2 AC direction register

5.2.2.372

#dene HTIR2_REG_DC01 0x43 IRSeeker 2 DC 01 register

5.2.2.373

#dene HTIR2_REG_DC02 0x44 IRSeeker 2 DC 02 register

5.2.2.374

#dene HTIR2_REG_DC03 0x45 IRSeeker 2 DC 03 register

5.2.2.375

#dene HTIR2_REG_DC04 0x46 IRSeeker 2 DC 04 register

5.2.2.376

#dene HTIR2_REG_DC05 0x47 IRSeeker 2 DC 05 register

5.2.2.377

#dene HTIR2_REG_DCAVG 0x48 IRSeeker 2 DC average register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

690

5.2.2.378

#dene HTIR2_REG_DCDIR 0x42 IRSeeker 2 DC direction register

5.2.2.379

#dene HTIR2_REG_MODE 0x41 IRSeeker 2 mode register

5.2.2.380

#dene I2C_REG_CMD 0x41 Standard NXT I2C device command register

5.2.2.381

#dene I2C_REG_DEVICE_ID 0x10 Standard NXT I2C device ID register

5.2.2.382

#dene I2C_REG_VENDOR_ID 0x08 Standard NXT I2C vendor ID register

5.2.2.383

#dene I2C_REG_VERSION 0x00 Standard NXT I2C version register

5.2.2.384

#dene IN_1 0x00 Input port 1

5.2.2.385

#dene IN_2 0x01 Input port 2

5.2.2.386

#dene IN_3 0x02 Input port 3

5.2.2.387

#dene IN_4 0x03 Input port 4

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

691

5.2.2.388

#dene IN_MODE_ANGLESTEP 0xE0 RCX rotation sensor (16 ticks per revolution)

5.2.2.389

#dene IN_MODE_BOOLEAN 0x20 Boolean value (0 or 1)

5.2.2.390

#dene IN_MODE_CELSIUS 0xA0 RCX temperature sensor value in degrees celcius

5.2.2.391

#dene IN_MODE_FAHRENHEIT 0xC0 RCX temperature sensor value in degrees fahrenheit

5.2.2.392

#dene IN_MODE_MODEMASK 0xE0 Mask for the mode without any slope value

5.2.2.393

#dene IN_MODE_PCTFULLSCALE 0x80 Scaled value from 0 to 100

5.2.2.394

#dene IN_MODE_PERIODCOUNTER 0x60 Counts the number of boolean periods

5.2.2.395

#dene IN_MODE_RAW 0x00 Raw value from 0 to 1023

5.2.2.396

#dene IN_MODE_SLOPEMASK 0x1F Mask for slope parameter added to mode

5.2.2.397

#dene IN_MODE_TRANSITIONCNT 0x40 Counts the number of boolean transitions

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

692

5.2.2.398

#dene IN_TYPE_ANGLE 0x04 RCX rotation sensor

5.2.2.399

#dene IN_TYPE_COLORBLUE 0x10 NXT 2.0 color sensor with blue light

5.2.2.400

#dene IN_TYPE_COLOREXIT 0x12 NXT 2.0 color sensor internal state

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

#dene IN_TYPE_COLORNONE 0x11 NXT 2.0 color sensor with no light

5.2.2.404

#dene IN_TYPE_COLORRED 0x0E NXT 2.0 color sensor with red light

5.2.2.405

#dene IN_TYPE_CUSTOM 0x09 NXT custom sensor

5.2.2.406

#dene IN_TYPE_HISPEED 0x0C NXT Hi-speed port (only S4)

5.2.2.407

#dene IN_TYPE_LIGHT_ACTIVE 0x05 NXT light sensor with light

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

693

5.2.2.408

#dene IN_TYPE_LIGHT_INACTIVE 0x06 NXT light sensor without light

5.2.2.409

#dene IN_TYPE_LOWSPEED 0x0A NXT I2C digital sensor

5.2.2.410

#dene IN_TYPE_LOWSPEED_9V 0x0B NXT I2C digital sensor with 9V power

5.2.2.411

#dene IN_TYPE_NO_SENSOR 0x00 No sensor congured

5.2.2.412

#dene IN_TYPE_REFLECTION 0x03 RCX light sensor

5.2.2.413

#dene IN_TYPE_SOUND_DB 0x07 NXT sound sensor with dB scaling

5.2.2.414

#dene IN_TYPE_SOUND_DBA 0x08 NXT sound sensor with dBA scaling

5.2.2.415

#dene IN_TYPE_SWITCH 0x01 NXT or RCX touch sensor

5.2.2.416

#dene IN_TYPE_TEMPERATURE 0x02 RCX temperature sensor

5.2.2.417

#dene INPUT_BLACKCOLOR 1 The color value is black

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene INPUT_BLUECOLOR 2 The color value is blue

5.2.2.421

#dene INPUT_CAL_POINT_0 0 Calibration point 0

5.2.2.422

#dene INPUT_CAL_POINT_1 1 Calibration point 1

5.2.2.423

#dene INPUT_CAL_POINT_2 2 Calibration point 2

5.2.2.424

#dene INPUT_CUSTOM9V 0x01 Custom sensor 9V

5.2.2.425

#dene INPUT_CUSTOMACTIVE 0x02 Custom sensor active

5.2.2.426

#dene INPUT_CUSTOMINACTIVE 0x00 Custom sensor inactive

5.2.2.427

#dene INPUT_DIGI0 1 Digital pin 0

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

695

5.2.2.428

#dene INPUT_DIGI1 2 Digital pin 1

5.2.2.429

#dene INPUT_GREEN 1 Access the green value from color sensor value arrays

5.2.2.430

#dene INPUT_GREENCOLOR 3 The color value is green

5.2.2.431

#dene INPUT_INVALID_DATA 0x01 Invalid data ag

5.2.2.432

#dene INPUT_NO_OF_COLORS 4 The number of entries in the color sensor value arrays

5.2.2.433

#dene INPUT_NO_OF_POINTS 3 The number of calibration points

5.2.2.434

#dene INPUT_RED 0 Access the red value from color sensor value arrays

5.2.2.435

#dene INPUT_REDCOLOR 5 The color value is red

5.2.2.436

#dene INPUT_RESETCAL 0x80 Unused calibration state constant

5.2.2.437

#dene INPUT_RUNNINGCAL 0x20 Unused calibration state constant

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene INPUT_STARTCAL 0x40 Unused calibration state constant

5.2.2.441

#dene INPUT_WHITECOLOR 6 The color value is white

5.2.2.442

#dene INPUT_YELLOWCOLOR 4 The color value is yellow

5.2.2.443

#dene InputMode 1 Input mode eld. Contains one of the sensor mode constants. Read/write.

5.2.2.444

#dene InputModuleID 0x00030001 The input module ID

5.2.2.445

#dene InputModuleName "Input.mod" The input module name.

5.2.2.446

#dene InputOffsetADRaw(p) (((p)20)+2) Read the AD raw sensor value (2 bytes) uword

5.2.2.447

#dene InputOffsetColorADRaw(p, nc) (80+((p)84)+52+((nc)2)) Read AD raw color sensor values

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene InputOffsetColorCalibrationState(p) (80+((p)84)+80) Read color sensor calibration state

5.2.2.450

#dene InputOffsetColorCalLimits(p, np) (80+((p)84)+48+((np)2)) Read/write color calibration limits

5.2.2.451

#dene InputOffsetColorSensorBoolean(p, nc) (80+((p)84)+76+((nc)2)) Read color sensor boolean values

5.2.2.452

#dene InputOffsetColorSensorRaw(p, nc) (80+((p)84)+60+((nc)2)) Read raw color sensor values

5.2.2.453

#dene InputOffsetColorSensorValue(p, nc) (80+((p)84)+68+((nc)2)) Read scaled color sensor values

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene InputOffsetDigiPinsIn(p) (((p)20)+12) Read/write the status of the digital pins

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

#dene InputOffsetSensorBoolean(p) (((p)20)+10) Read the sensor boolean value

5.2.2.462

#dene InputOffsetSensorMode(p) (((p)20)+9) Read/write the sensor mode

5.2.2.463

#dene InputOffsetSensorRaw(p) (((p)20)+4) Read the raw sensor value (2 bytes) uword

5.2.2.464

#dene InputOffsetSensorType(p) (((p)20)+8) Read/write the sensor type

5.2.2.465

#dene InputOffsetSensorValue(p) (((p)20)+6) Read/write the scaled sensor value (2 bytes) sword

5.2.2.466

#dene INT_MAX 32767 The maximum value of the int type

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

699

5.2.2.467

#dene INT_MIN -32767 The minimum value of the int type

5.2.2.468

#dene INTF_BTOFF 13 Turn off the bluetooth radio

5.2.2.469

#dene INTF_BTON 12 Turn on the bluetooth radio

5.2.2.470

#dene INTF_CONNECT 3 Connect to one of the known devices

5.2.2.471

#dene INTF_CONNECTBYNAME 18 Connect to a bluetooth device by name

5.2.2.472

#dene INTF_CONNECTREQ 17 Connection request from another device

5.2.2.473

#dene INTF_DISCONNECT 4 Disconnect from one of the connected devices

5.2.2.474

#dene INTF_DISCONNECTALL 5 Disconnect all devices

5.2.2.475

#dene INTF_EXTREAD 15 External read request

5.2.2.476

#dene INTF_FACTORYRESET 11 Reset bluetooth settings to factory values

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

700

5.2.2.477

#dene INTF_OPENSTREAM 9 Open a bluetooth stream

5.2.2.478

#dene INTF_PINREQ 16 Bluetooth PIN request

5.2.2.479

#dene INTF_REMOVEDEVICE 6 Remove a device from the known devices table

5.2.2.480

#dene INTF_SEARCH 1 Search for bluetooth devices

5.2.2.481

#dene INTF_SENDDATA 10 Send data over a bluetooth connection

5.2.2.482

#dene INTF_SENDFILE 0 Send a le via bluetooth to another device

5.2.2.483

#dene INTF_SETBTNAME 14 Set the bluetooth name

5.2.2.484

#dene INTF_SETCMDMODE 8 Set bluetooth into command mode

5.2.2.485

#dene INTF_STOPSEARCH 2 Stop searching for bluetooth devices

5.2.2.486

#dene INTF_VISIBILITY 7 Set the bluetooth visibility on or off

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

703

5.2.2.506

#dene LDR_APPENDNOTPOSSIBLE 0x8D00 Only datales can be appended to.

5.2.2.507

#dene LDR_BTBUSY 0x9400 The bluetooth system is busy.

5.2.2.508

#dene LDR_BTCONNECTFAIL 0x9500 Bluetooth connection attempt failed.

5.2.2.509

#dene LDR_BTTIMEOUT 0x9600 A timeout in the bluetooth system has occurred.

5.2.2.510

#dene LDR_CMD_BOOTCMD 0x97 Reboot the NXT into SAMBA mode

5.2.2.511

#dene LDR_CMD_BTFACTORYRESET 0xA4 Reset bluetooth conguration to factory defaults

5.2.2.512

#dene LDR_CMD_BTGETADR 0x9A Get the NXTs bluetooth brick address

5.2.2.513

#dene LDR_CMD_CLOSE 0x84 Close a le handle

5.2.2.514

#dene LDR_CMD_CLOSEMODHANDLE 0x92 Close a module handle

5.2.2.515

#dene LDR_CMD_CROPDATAFILE 0x8D Crop a data le to its used space

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

704

5.2.2.516

#dene LDR_CMD_DELETE 0x85 Delete a le

5.2.2.517

#dene LDR_CMD_DELETEUSERFLASH 0xA0 Delete all les from user ash memory

5.2.2.518

#dene LDR_CMD_DEVICEINFO 0x9B Read device information

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

#dene LDR_CMD_IOMAPREAD 0x94 Read data from a module IOMAP

5.2.2.524

#dene LDR_CMD_IOMAPWRITE 0x95 Write data to a module IOMAP

5.2.2.525

#dene LDR_CMD_OPENAPPENDDATA 0x8C Open a data le for appending

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

705

5.2.2.526

#dene LDR_CMD_OPENREAD 0x80 Open a le for reading

5.2.2.527

#dene LDR_CMD_OPENREADLINEAR 0x8A Open a linear le for reading

5.2.2.528

#dene LDR_CMD_OPENWRITE 0x81 Open a le for writing

5.2.2.529

#dene LDR_CMD_OPENWRITEDATA 0x8B Open a data le for writing

5.2.2.530

#dene LDR_CMD_OPENWRITELINEAR 0x89 Open a linear le for writing

5.2.2.531

#dene LDR_CMD_POLLCMD 0xA2 Poll command

5.2.2.532

#dene LDR_CMD_POLLCMDLEN 0xA1 Read poll command length

5.2.2.533

#dene LDR_CMD_READ 0x82 Read from a le

5.2.2.534

#dene LDR_CMD_RENAMEFILE 0xA3 Rename a le

5.2.2.535

#dene LDR_CMD_RESIZEDATAFILE 0xD0 Resize a data le

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

706

5.2.2.536

#dene LDR_CMD_SEEKFROMCURRENT 0xD2 Seek from the current position

5.2.2.537

#dene LDR_CMD_SEEKFROMEND 0xD3 Seek from the end of the le

5.2.2.538

#dene LDR_CMD_SEEKFROMSTART 0xD1 Seek from the start of the le

5.2.2.539

#dene LDR_CMD_SETBRICKNAME 0x98 Set the NXTs brick name

5.2.2.540

#dene LDR_CMD_VERSIONS 0x88 Read rmware version information

5.2.2.541

#dene LDR_CMD_WRITE 0x83 Write to a le

5.2.2.542

#dene LDR_ENDOFFILE 0x8500 The end of the le has been reached.

5.2.2.543

#dene LDR_EOFEXPECTED 0x8400 EOF expected.

5.2.2.544

#dene LDR_FILEEXISTS 0x8F00 A le with the same name already exists.

5.2.2.545

#dene LDR_FILEISBUSY 0x8B00 The le is already being used.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

707

5.2.2.546

#dene LDR_FILEISFULL 0x8E00 The allocated le size has been lled.

5.2.2.547

#dene LDR_FILENOTFOUND 0x8700 No les matched the search criteria.

5.2.2.548

#dene LDR_FILETX_CLOSEERROR 0x9B00 Error transmitting le: attempt to close le failed.

5.2.2.549

#dene LDR_FILETX_DSTEXISTS 0x9800 Error transmitting le: destination le exists.

5.2.2.550

#dene LDR_FILETX_SRCMISSING 0x9900 Error transmitting le: source le is missing.

5.2.2.551

#dene LDR_FILETX_STREAMERROR 0x9A00 Error transmitting le: a stream error occurred.

5.2.2.552

#dene LDR_FILETX_TIMEOUT 0x9700 Error transmitting le: a timeout occurred.

5.2.2.553

#dene LDR_HANDLEALREADYCLOSED 0x8800 The le handle has already been closed.

5.2.2.554

#dene LDR_ILLEGALFILENAME 0x9200

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

NBCCommon.h File Reference

708

5.2.2.556

#dene LDR_INPROGRESS 0x0001 The function is executing but has not yet completed.

5.2.2.557

#dene LDR_INVALIDSEEK 0x9C00 Invalid le seek operation.

5.2.2.558

#dene LDR_MODULENOTFOUND 0x9000 No modules matched the specied search criteria.

5.2.2.559

#dene LDR_NOLINEARSPACE 0x8900 Not enough linear ash memory is available.

5.2.2.560

#dene LDR_NOMOREFILES 0x8300 The maximum number of les has been reached.

5.2.2.561

#dene LDR_NOMOREHANDLES 0x8100 All available le handles are in use.

5.2.2.562

#dene LDR_NOSPACE 0x8200 Not enough free ash memory for the specied le size.

5.2.2.563

#dene LDR_NOTLINEARFILE 0x8600 The specied le is not linear.

5.2.2.564

#dene LDR_NOWRITEBUFFERS 0x8C00 No more write buffers are available.

5.2.2.565

#dene LDR_OUTOFBOUNDARY 0x9100 Specied IOMap offset is outside the bounds of the IOMap.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

709

5.2.2.566

#dene LDR_REQPIN 0x0002 A PIN exchange request is in progress.

5.2.2.567

#dene LDR_SUCCESS 0x0000 The function completed successfully.

5.2.2.568

#dene LDR_UNDEFINEDERROR 0x8A00 An undened error has occurred.

5.2.2.569

#dene ListFiles 47 List les that match the specied lename pattern

5.2.2.570

#dene LoaderExecuteFunction 82 Execute one of the Loader modules internal functions

5.2.2.571

#dene LoaderModuleID 0x00090001 The Loader module ID

5.2.2.572

#dene LoaderModuleName "Loader.mod" The Loader module name

5.2.2.573

#dene LoaderOffsetFreeUserFlash 4 Offset to the amount of free user ash

5.2.2.574

#dene LoaderOffsetPFunc 0 Offset to the Loader module function pointer

5.2.2.575

#dene LONG_MAX 2147483647 The maximum value of the long type

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

710

5.2.2.576

#dene LONG_MIN -2147483647 The minimum value of the long type

5.2.2.577

#dene LOWSPEED_CH_NOT_READY 1 Lowspeed port is not ready

5.2.2.578

#dene LOWSPEED_COMMUNICATING 3 Channel is actively communicating

5.2.2.579

#dene LOWSPEED_DATA_RECEIVED 3 Lowspeed port is in data received mode

5.2.2.580

#dene LOWSPEED_DONE 5 Channel is done communicating

5.2.2.581

#dene LOWSPEED_ERROR 4 Channel is in an error state

5.2.2.582

#dene LOWSPEED_IDLE 0 Channel is idle

5.2.2.583

#dene LOWSPEED_INIT 1 Channel is being initialized

5.2.2.584

#dene LOWSPEED_LOAD_BUFFER 2 Channel buffer is loading

5.2.2.585

#dene LOWSPEED_NO_ERROR 0 Lowspeed port has no error

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

711

5.2.2.586

#dene LOWSPEED_RECEIVING 2 Lowspeed port is in receiving mode

5.2.2.587

#dene LOWSPEED_RX_ERROR 3 Lowspeed port encountered an error while receiving data

5.2.2.588

#dene LOWSPEED_TRANSMITTING 1 Lowspeed port is in transmitting mode

5.2.2.589

#dene LOWSPEED_TX_ERROR 2 Lowspeed port encountered an error while transmitting data

5.2.2.590

#dene LowSpeedModuleID 0x000B0001 The low speed module ID

5.2.2.591

#dene LowSpeedModuleName "Low Speed.mod" The low speed module name

5.2.2.592

#dene LowSpeedOffsetChannelState(p) ((p)+156) R - Lowspeed channgel state (1 byte)

5.2.2.593

#dene LowSpeedOffsetErrorType(p) ((p)+160) R - Lowspeed port error type (1 byte)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

712

5.2.2.596

#dene LowSpeedOffsetInBufInPtr(p) (((p)19)+16) RW - Input buffer in pointer eld offset (1 byte)

5.2.2.597

#dene LowSpeedOffsetInBufOutPtr(p) (((p)19)+17) RW - Input buffer out pointer eld offset (1 byte)

5.2.2.598

#dene LowSpeedOffsetMode(p) ((p)+152) R - Lowspeed port mode (1 byte)

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

#dene LowSpeedOffsetOutBufInPtr(p) (((p)19)+92) RW - Output buffer in pointer eld offset (1 byte)

5.2.2.603

#dene LowSpeedOffsetOutBufOutPtr(p) (((p)19)+93) RW - Output buffer out pointer eld offset (1 byte)

5.2.2.604

#dene LowSpeedOffsetSpeed 165 R - Lowspeed speed (unused)

5.2.2.605

#dene LowSpeedOffsetState 164 R - Lowspeed state (all channels)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

713

5.2.2.606

#dene LR_COULD_NOT_SAVE 0x51 Bluetooth list result could not save

5.2.2.607

#dene LR_ENTRY_REMOVED 0x53 Bluetooth list result entry removed

5.2.2.608

#dene LR_STORE_IS_FULL 0x52 Bluetooth list result store is full

5.2.2.609

#dene LR_SUCCESS 0x50 Bluetooth list result success

5.2.2.610

#dene LR_UNKNOWN_ADDR 0x54 Bluetooth list result unknown address

5.2.2.611

#dene LSREAD_NO_RESTART_1 0x01 No restart on read for channel 1

5.2.2.612

#dene LSREAD_NO_RESTART_2 0x02 No restart on read for channel 2

5.2.2.613

#dene LSREAD_NO_RESTART_3 0x04 No restart on read for channel 3

5.2.2.614

#dene LSREAD_NO_RESTART_4 0x08 No restart on read for channel 4

5.2.2.615

#dene LSREAD_NO_RESTART_MASK 0x10 No restart mask

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

714

5.2.2.616

#dene LSREAD_RESTART_ALL 0x00 Restart on read for all channels (default)

5.2.2.617

#dene LSREAD_RESTART_NONE 0x0F No restart on read for all channels

5.2.2.618

#dene MAILBOX1 0 Mailbox number 1

5.2.2.619

#dene MAILBOX10 9 Mailbox number 10

5.2.2.620

#dene MAILBOX2 1 Mailbox number 2

5.2.2.621

#dene MAILBOX3 2 Mailbox number 3

5.2.2.622

#dene MAILBOX4 3 Mailbox number 4

5.2.2.623

#dene MAILBOX5 4 Mailbox number 5

5.2.2.624

#dene MAILBOX6 5 Mailbox number 6

5.2.2.625

#dene MAILBOX7 6 Mailbox number 7

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

715

5.2.2.626

#dene MAILBOX8 7 Mailbox number 8

5.2.2.627

#dene MAILBOX9 8 Mailbox number 9

5.2.2.628

#dene MAX_BT_MSG_SIZE 60000 Max Bluetooth Message Size

5.2.2.629

#dene MENUICON_CENTER 1 Center icon

5.2.2.630

#dene MENUICON_LEFT 0 Left icon

5.2.2.631

#dene MENUICON_RIGHT 2 Right icon

5.2.2.632

#dene MENUICONS 3 The number of menu icons

5.2.2.633

#dene MENUTEXT 2 Center icon text

5.2.2.634

#dene MessageRead 27 Read a message from a mailbox

5.2.2.635

#dene MessageWrite 26 Write a message to a mailbox

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

716

5.2.2.636

#dene MIN_1 60000 1 minute

5.2.2.637

#dene MS_1 1 1 millisecond

5.2.2.638

#dene MS_10 10 10 milliseconds

5.2.2.639

#dene MS_100 100 100 milliseconds

5.2.2.640

#dene MS_150 150 150 milliseconds

5.2.2.641

#dene MS_2 2 2 milliseconds

5.2.2.642

#dene MS_20 20 20 milliseconds

5.2.2.643

#dene MS_200 200 200 milliseconds

5.2.2.644

#dene MS_250 250 250 milliseconds

5.2.2.645

#dene MS_3 3 3 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

717

5.2.2.646

#dene MS_30 30 30 milliseconds

5.2.2.647

#dene MS_300 300 300 milliseconds

5.2.2.648

#dene MS_350 350 350 milliseconds

5.2.2.649

#dene MS_4 4 4 milliseconds

5.2.2.650

#dene MS_40 40 40 milliseconds

5.2.2.651

#dene MS_400 400 400 milliseconds

5.2.2.652

#dene MS_450 450 450 milliseconds

5.2.2.653

#dene MS_5 5 5 milliseconds

5.2.2.654

#dene MS_50 50 50 milliseconds

5.2.2.655

#dene MS_500 500 500 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

718

5.2.2.656

#dene MS_6 6 6 milliseconds

5.2.2.657

#dene MS_60 60 60 milliseconds

5.2.2.658

#dene MS_600 600 600 milliseconds

5.2.2.659

#dene MS_7 7 7 milliseconds

5.2.2.660

#dene MS_70 70 70 milliseconds

5.2.2.661

#dene MS_700 700 700 milliseconds

5.2.2.662

#dene MS_8 8 8 milliseconds

5.2.2.663

#dene MS_80 80 80 milliseconds

5.2.2.664

#dene MS_800 800 800 milliseconds

5.2.2.665

#dene MS_9 9 9 milliseconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

719

5.2.2.666

#dene MS_90 90 90 milliseconds

5.2.2.667

#dene MS_900 900 900 milliseconds

5.2.2.668

#dene MS_CMD_ADPA_OFF 0x4F Turn MindSensors ADPA mode off

5.2.2.669

#dene MS_CMD_ADPA_ON 0x4E Turn MindSensors ADPA mode on

5.2.2.670

#dene MS_CMD_DEENERGIZED 0x44 De-energize the MindSensors device

5.2.2.671

#dene MS_CMD_ENERGIZED 0x45 Energize the MindSensors device

5.2.2.672

#dene NA 0xFFFF The specied argument does not apply (aka unwired)

5.2.2.673

#dene NO_ERR 0 Successful execution of the specied command

5.2.2.674

#dene NO_OF_BTNS 4 The number of NXT buttons.

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

NBCCommon.h File Reference

720

5.2.2.676

#dene NRLINK_CMD_2400 0x44 Set NRLink to 2400 baud

5.2.2.677

#dene NRLINK_CMD_4800 0x48 Set NRLink to 4800 baud

5.2.2.678

#dene NRLINK_CMD_FLUSH 0x46 Flush the NRLink

5.2.2.679

#dene NRLINK_CMD_IR_LONG 0x4C Set the NRLink to long range IR

5.2.2.680

#dene NRLINK_CMD_IR_SHORT 0x53 Set the NRLink to short range IR

5.2.2.681

#dene NRLINK_CMD_RUN_MACRO 0x52 Run an NRLink macro

5.2.2.682

#dene NRLINK_CMD_SET_PF 0x50 Set the NRLink to Power Function mode

5.2.2.683

#dene NRLINK_CMD_SET_RCX 0x58 Set the NRLink to RCX mode

5.2.2.684

#dene NRLINK_CMD_SET_TRAIN 0x54 Set the NRLink to IR Train mode

5.2.2.685

#dene NRLINK_CMD_TX_RAW 0x55 Set the NRLink to transmit raw bytes

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

721

5.2.2.686

#dene NRLINK_REG_BYTES 0x40 The NRLink bytes register

5.2.2.687

#dene NRLINK_REG_DATA 0x42 The NRLink data register

5.2.2.688

#dene NRLINK_REG_EEPROM 0x50 The NRLink eeprom register

5.2.2.689

#dene NULL 0 A constant representing NULL

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene OUT_A 0x00 Output port A

5.2.2.698

#dene OUT_AB 0x03 Output ports A and B

5.2.2.699

#dene OUT_ABC 0x06 Output ports A, B, and C

5.2.2.700

#dene OUT_AC 0x04 Output ports A and C

5.2.2.701

#dene OUT_B 0x01 Output port B

5.2.2.702

#dene OUT_BC 0x05 Output ports B and C

5.2.2.703

#dene OUT_C 0x02 Output port C

5.2.2.704

#dene OUT_MODE_BRAKE 0x02 Uses electronic braking to outputs

5.2.2.705

#dene OUT_MODE_COAST 0x00 No power and no braking so motors rotate freely.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

723

5.2.2.706

#dene OUT_MODE_MOTORON 0x01 Enables PWM power to the outputs given the Power setting

5.2.2.707

#dene OUT_MODE_REGMETHOD 0xF0 Mask for unimplemented regulation mode

5.2.2.708

#dene OUT_MODE_REGULATED 0x04 Enables active power regulation using the RegMode value

5.2.2.709

#dene OUT_OPTION_HOLDATLIMIT 0x10

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

NBCCommon.h File Reference

724

5.2.2.716

#dene OUT_RUNSTATE_RAMPDOWN 0x40

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene OutputOffsetOptions(p) (((p)32)+29)

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene OutputOffsetRotationCount(p) (((p)32)+8)

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).

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene PF_CHANNEL_1 0 Power function channel 1

5.2.2.743

#dene PF_CHANNEL_2 1 Power function channel 2

5.2.2.744

#dene PF_CHANNEL_3 2 Power function channel 3

5.2.2.745

#dene PF_CHANNEL_4 3 Power function channel 4

5.2.2.746

#dene PF_CMD_BRAKE 3 Power function command brake

5.2.2.747

#dene PF_CMD_FWD 1 Power function command forward

5.2.2.748

#dene PF_CMD_REV 2 Power function command reverse

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

728

5.2.2.749

#dene PF_CMD_STOP 0 Power function command stop

5.2.2.750

#dene PF_CST_CLEAR1_CLEAR2 0 Power function CST clear 1 and clear 2

5.2.2.751

#dene PF_CST_CLEAR1_SET2 2 Power function CST clear 1 and set 2

5.2.2.752

#dene PF_CST_DECREMENT_PWM 5 Power function CST decrement PWM

5.2.2.753

#dene PF_CST_FULL_FWD 6 Power function CST full forward

5.2.2.754

#dene PF_CST_FULL_REV 7 Power function CST full reverse

5.2.2.755

#dene PF_CST_INCREMENT_PWM 4 Power function CST increment PWM

5.2.2.756

#dene PF_CST_SET1_CLEAR2 1 Power function CST set 1 and clear 2

5.2.2.757

#dene PF_CST_SET1_SET2 3 Power function CST set 1 and set 2

5.2.2.758

#dene PF_CST_TOGGLE_DIR 8 Power function CST toggle direction

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

729

5.2.2.759

#dene PF_FUNC_CLEAR 1 Power function single pin - clear

5.2.2.760

#dene PF_FUNC_NOCHANGE 0 Power function single pin - no change

5.2.2.761

#dene PF_FUNC_SET 2 Power function single pin - set

5.2.2.762

#dene PF_FUNC_TOGGLE 3 Power function single pin - toggle

5.2.2.763

#dene PF_MODE_COMBO_DIRECT 1 Power function mode combo direct

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

#dene PF_MODE_SINGLE_PIN_CONT 2 Power function mode single pin continuous

5.2.2.768

#dene PF_MODE_SINGLE_PIN_TIME 3 Power function mode single pin timed

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

730

5.2.2.769

#dene PF_MODE_TRAIN 0 Power function mode IR Train

5.2.2.770

#dene PF_OUT_A 0 Power function output A

5.2.2.771

#dene PF_OUT_B 1 Power function output B

5.2.2.772

#dene PF_PIN_C1 0 Power function pin C1

5.2.2.773

#dene PF_PIN_C2 1 Power function pin C2

5.2.2.774

#dene PF_PWM_BRAKE 8 Power function PWM brake

5.2.2.775

#dene PF_PWM_FLOAT 0 Power function PWM oat

5.2.2.776

#dene PF_PWM_FWD1 1 Power function PWM foward level 1

5.2.2.777

#dene PF_PWM_FWD2 2 Power function PWM foward level 2

5.2.2.778

#dene PF_PWM_FWD3 3 Power function PWM foward level 3

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

731

5.2.2.779

#dene PF_PWM_FWD4 4 Power function PWM foward level 4

5.2.2.780

#dene PF_PWM_FWD5 5 Power function PWM foward level 5

5.2.2.781

#dene PF_PWM_FWD6 6 Power function PWM foward level 6

5.2.2.782

#dene PF_PWM_FWD7 7 Power function PWM foward level 7

5.2.2.783

#dene PF_PWM_REV1 15 Power function PWM reverse level 1

5.2.2.784

#dene PF_PWM_REV2 14 Power function PWM reverse level 2

5.2.2.785

#dene PF_PWM_REV3 13 Power function PWM reverse level 3

5.2.2.786

#dene PF_PWM_REV4 12 Power function PWM reverse level 4

5.2.2.787

#dene PF_PWM_REV5 11 Power function PWM reverse level 5

5.2.2.788

#dene PF_PWM_REV6 10 Power function PWM reverse level 6

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

732

5.2.2.789

#dene PF_PWM_REV7 9 Power function PWM reverse level 7

5.2.2.790

#dene PI 3.141593 A constant for PI

5.2.2.791

#dene PID_0 0 PID zero

5.2.2.792

#dene PID_1 32 PID one

5.2.2.793

#dene PID_2 64 PID two

5.2.2.794

#dene PID_3 96 PID three

5.2.2.795

#dene PID_4 128 PID four

5.2.2.796

#dene PID_5 160 PID ve

5.2.2.797

#dene PID_6 192 PID six

5.2.2.798

#dene PID_7 224 PID seven

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

NBCCommon.h File Reference

734

5.2.2.808

#dene PSP_BTNSET1_LEFT 0x01 The PSP-Nx button set 1 left arrow

5.2.2.809

#dene PSP_BTNSET1_R3 0x20 The PSP-Nx button set 1 R3

5.2.2.810

#dene PSP_BTNSET1_RIGHT 0x04 The PSP-Nx button set 1 right arrow

5.2.2.811

#dene PSP_BTNSET1_UP 0x08 The PSP-Nx button set 1 up arrow

5.2.2.812

#dene PSP_BTNSET2_CIRCLE 0x04 The PSP-Nx button set 2 circle

5.2.2.813

#dene PSP_BTNSET2_CROSS 0x02 The PSP-Nx button set 2 cross

5.2.2.814

#dene PSP_BTNSET2_L1 0x20 The PSP-Nx button set 2 L1

5.2.2.815

#dene PSP_BTNSET2_L2 0x80 The PSP-Nx button set 2 L2

5.2.2.816

#dene PSP_BTNSET2_R1 0x10 The PSP-Nx button set 2 R1

5.2.2.817

#dene PSP_BTNSET2_R2 0x40 The PSP-Nx button set 2 R2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

735

5.2.2.818

#dene PSP_BTNSET2_SQUARE 0x01 The PSP-Nx button set 2 square

5.2.2.819

#dene PSP_BTNSET2_TRIANGLE 0x08 The PSP-Nx button set 2 triangle

5.2.2.820

#dene PSP_CMD_ANALOG 0x73 Set the PSP-Nx to analog mode

5.2.2.821

#dene PSP_CMD_DIGITAL 0x41 Set the PSP-Nx to digital mode

5.2.2.822

#dene PSP_REG_BTNSET1 0x42 The PSP-Nx button set 1 register

5.2.2.823

#dene PSP_REG_BTNSET2 0x43 The PSP-Nx button set 2 register

5.2.2.824

#dene PSP_REG_XLEFT 0x44 The PSP-Nx X left register

5.2.2.825

#dene PSP_REG_XRIGHT 0x46 The PSP-Nx X right register

5.2.2.826

#dene PSP_REG_YLEFT 0x45 The PSP-Nx Y left register

5.2.2.827

#dene PSP_REG_YRIGHT 0x47 The PSP-Nx Y right register

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

736

5.2.2.828

#dene RADIANS_PER_DEGREE PI/180 Used for converting from degrees to radians

5.2.2.829

#dene RAND_MAX 32768 The maximum unsigned int random number returned by rand

5.2.2.830

#dene RandomNumber 24 Generate a random number

5.2.2.831

#dene RawValue 2 Raw value eld. Contains the current raw analog sensor value. Read only.

5.2.2.832

#dene RCX_AbsVarOp 0x74 Absolute value function

5.2.2.833

#dene RCX_AndVarOp 0x84 AND function

5.2.2.834

#dene RCX_AutoOffOp 0xb1 Set auto off timer

5.2.2.835

#dene RCX_BatteryLevelOp 0x30 Read the battery level

5.2.2.836

#dene RCX_BatteryLevelSrc 34 The RCX battery level source

5.2.2.837

#dene RCX_BootModeOp 0x65 Set into book mode

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

737

5.2.2.838

#dene RCX_CalibrateEventOp 0x04 Calibrate event

5.2.2.839

#dene RCX_ClearAllEventsOp 0x06 Clear all events

5.2.2.840

#dene RCX_ClearCounterOp 0xb7 Clear a counter

5.2.2.841

#dene RCX_ClearMsgOp 0x90 Clear message

5.2.2.842

#dene RCX_ClearSensorOp 0xd1 Clear a sensor

5.2.2.843

#dene RCX_ClearSoundOp 0x80 Clear sound

5.2.2.844

#dene RCX_ClearTimerOp 0xa1 Clear a timer

5.2.2.845

#dene RCX_ClickCounterSrc 27 The RCX event click counter source

5.2.2.846

#dene RCX_ConstantSrc 2 The RCX constant value source

5.2.2.847

#dene RCX_CounterSrc 21 The RCX counter source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

738

5.2.2.848

#dene RCX_DatalogOp 0x62 Datalog the specied source/value

5.2.2.849

#dene RCX_DatalogRawDirectSrc 42 The RCX direct datalog raw source

5.2.2.850

#dene RCX_DatalogRawIndirectSrc 41 The RCX indirect datalog raw source

5.2.2.851

#dene RCX_DatalogSrcDirectSrc 38 The RCX direct datalog source source

5.2.2.852

#dene RCX_DatalogSrcIndirectSrc 37 The RCX indirect datalog source source

5.2.2.853

#dene RCX_DatalogValueDirectSrc 40 The RCX direct datalog value source

5.2.2.854

#dene RCX_DatalogValueIndirectSrc 39 The RCX indirect datalog value source

5.2.2.855

#dene RCX_DecCounterOp 0xa7 Decrement a counter

5.2.2.856

#dene RCX_DeleteSubOp 0xc1 Delete a subroutine

5.2.2.857

#dene RCX_DeleteSubsOp 0x70 Delete subroutines

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

739

5.2.2.858

#dene RCX_DeleteTaskOp 0x61 Delete a task

5.2.2.859

#dene RCX_DeleteTasksOp 0x40 Delete tasks

5.2.2.860

#dene RCX_DirectEventOp 0x03 Fire an event

5.2.2.861

#dene RCX_DisplayOp 0x33 Set LCD display value

5.2.2.862

#dene RCX_DivVarOp 0x44 Divide function

5.2.2.863

#dene RCX_DurationSrc 31 The RCX event duration source

5.2.2.864

#dene RCX_EventStateSrc 25 The RCX event static source

5.2.2.865

#dene RCX_FirmwareVersionSrc 35 The RCX rmware version source

5.2.2.866

#dene RCX_GlobalMotorStatusSrc 17 The RCX global motor status source

5.2.2.867

#dene RCX_GOutputDirOp 0x77 Set global motor direction

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

740

5.2.2.868

#dene RCX_GOutputModeOp 0x67 Set global motor mode

5.2.2.869

#dene RCX_GOutputPowerOp 0xa3 Set global motor power levels

5.2.2.870

#dene RCX_HysteresisSrc 30 The RCX event hysteresis source

5.2.2.871

#dene RCX_IncCounterOp 0x97 Increment a counter

5.2.2.872

#dene RCX_IndirectVarSrc 36 The RCX indirect variable source

5.2.2.873

#dene RCX_InputBooleanSrc 13 The RCX input boolean source

5.2.2.874

#dene RCX_InputModeOp 0x42 Set the input mode

5.2.2.875

#dene RCX_InputModeSrc 11 The RCX input mode source

5.2.2.876

#dene RCX_InputRawSrc 12 The RCX input raw source

5.2.2.877

#dene RCX_InputTypeOp 0x32 Set the input type

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

741

5.2.2.878

#dene RCX_InputTypeSrc 10 The RCX input type source

5.2.2.879

#dene RCX_InputValueSrc 9 The RCX input value source

5.2.2.880

#dene RCX_IRModeOp 0x31 Set the IR transmit mode

5.2.2.881

#dene RCX_LightOp 0x87 Light opcode

5.2.2.882

#dene RCX_LowerThresholdSrc 29 The RCX event lower threshold source

5.2.2.883

#dene RCX_LSBlinkTimeOp 0xe3 Set the light sensor blink time

5.2.2.884

#dene RCX_LSCalibrateOp 0xc0 Calibrate the light sensor

5.2.2.885

#dene RCX_LSHysteresisOp 0xd3 Set the light sensor hysteresis

5.2.2.886

#dene RCX_LSLowerThreshOp 0xc3 Set the light sensor lower threshold

5.2.2.887

#dene RCX_LSUpperThreshOp 0xb3 Set the light sensor upper threshold

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

742

5.2.2.888

#dene RCX_MessageOp 0xf7 Set message

5.2.2.889

#dene RCX_MessageSrc 15 The RCX message source

5.2.2.890

#dene RCX_MulVarOp 0x54 Multiply function

5.2.2.891

#dene RCX_MuteSoundOp 0xd0 Mute sound

5.2.2.892

#dene RCX_OnOffFloatOp 0x21 Control motor state - on, off, oat

5.2.2.893

#dene RCX_OrVarOp 0x94 OR function

5.2.2.894

#dene RCX_OUT_A 0x01 RCX Output A

5.2.2.895

#dene RCX_OUT_AB 0x03 RCX Outputs A and B

5.2.2.896

#dene RCX_OUT_ABC 0x07 RCX Outputs A, B, and C

5.2.2.897

#dene RCX_OUT_AC 0x05 RCX Outputs A and C

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

743

5.2.2.898

#dene RCX_OUT_B 0x02 RCX Output B

5.2.2.899

#dene RCX_OUT_BC 0x06 RCX Outputs B and C

5.2.2.900

#dene RCX_OUT_C 0x04 RCX Output C

5.2.2.901

#dene RCX_OUT_FLOAT 0 Set RCX output to oat

5.2.2.902

#dene RCX_OUT_FULL 7 Set RCX output power level to full

5.2.2.903

#dene RCX_OUT_FWD 0x80 Set RCX output direction to forward

5.2.2.904

#dene RCX_OUT_HALF 3 Set RCX output power level to half

5.2.2.905

#dene RCX_OUT_LOW 0 Set RCX output power level to low

5.2.2.906

#dene RCX_OUT_OFF 0x40 Set RCX output to off

5.2.2.907

#dene RCX_OUT_ON 0x80 Set RCX output to on

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

744

5.2.2.908

#dene RCX_OUT_REV 0 Set RCX output direction to reverse

5.2.2.909

#dene RCX_OUT_TOGGLE 0x40 Set RCX output direction to toggle

5.2.2.910

#dene RCX_OutputDirOp 0xe1 Set the motor direction

5.2.2.911

#dene RCX_OutputPowerOp 0x13 Set the motor power level

5.2.2.912

#dene RCX_OutputStatusSrc 3 The RCX output status source

5.2.2.913

#dene RCX_PBTurnOffOp 0x60 Turn off the brick

5.2.2.914

#dene RCX_PingOp 0x10 Ping the brick

5.2.2.915

#dene RCX_PlaySoundOp 0x51 Play a sound

5.2.2.916

#dene RCX_PlayToneOp 0x23 Play a tone

5.2.2.917

#dene RCX_PlayToneVarOp 0x02 Play a tone using a variable

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

745

5.2.2.918

#dene RCX_PollMemoryOp 0x63 Poll a memory location

5.2.2.919

#dene RCX_PollOp 0x12 Poll a source/value combination

5.2.2.920

#dene RCX_ProgramSlotSrc 8 The RCX program slot source

5.2.2.921

#dene RCX_RandomSrc 4 The RCX random number source

5.2.2.922

#dene RCX_RemoteKeysReleased 0x0000 All remote keys have been released

5.2.2.923

#dene RCX_RemoteOp 0xd2 Execute simulated remote control buttons

5.2.2.924

#dene RCX_RemoteOutABackward 0x4000 Set output A backward

5.2.2.925

#dene RCX_RemoteOutAForward 0x0800 Set output A forward

5.2.2.926

#dene RCX_RemoteOutBBackward 0x8000 Set output B backward

5.2.2.927

#dene RCX_RemoteOutBForward 0x1000 Set output B forward

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

746

5.2.2.928

#dene RCX_RemoteOutCBackward 0x0001 Set output C backward

5.2.2.929

#dene RCX_RemoteOutCForward 0x2000 Set output C forward

5.2.2.930

#dene RCX_RemotePBMessage1 0x0100 Send PB message 1

5.2.2.931

#dene RCX_RemotePBMessage2 0x0200 Send PB message 2

5.2.2.932

#dene RCX_RemotePBMessage3 0x0400 Send PB message 3

5.2.2.933

#dene RCX_RemotePlayASound 0x0080 Play a sound

5.2.2.934

#dene RCX_RemoteSelProgram1 0x0002 Select program 1

5.2.2.935

#dene RCX_RemoteSelProgram2 0x0004 Select program 2

5.2.2.936

#dene RCX_RemoteSelProgram3 0x0008 Select program 3

5.2.2.937

#dene RCX_RemoteSelProgram4 0x0010 Select program 4

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

747

5.2.2.938

#dene RCX_RemoteSelProgram5 0x0020 Select program 5

5.2.2.939

#dene RCX_RemoteStopOutOff 0x0040 Stop and turn off outputs

5.2.2.940

#dene RCX_ScoutCounterLimitSrc 22 The Scout counter limit source

5.2.2.941

#dene RCX_ScoutEventFBSrc 24 The Scout event feedback source

5.2.2.942

#dene RCX_ScoutLightParamsSrc 19 The Scout light parameters source

5.2.2.943

#dene RCX_ScoutOp 0x47 Scout opcode

5.2.2.944

#dene RCX_ScoutRulesOp 0xd5 Set Scout rules

5.2.2.945

#dene RCX_ScoutRulesSrc 18 The Scout rules source

5.2.2.946

#dene RCX_ScoutTimerLimitSrc 20 The Scout timer limit source

5.2.2.947

#dene RCX_SelectProgramOp 0x91 Select a program slot

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

748

5.2.2.948

#dene RCX_SendUARTDataOp 0xc2 Send data via IR using UART settings

5.2.2.949

#dene RCX_SetCounterOp 0xd4 Set counter value

5.2.2.950

#dene RCX_SetDatalogOp 0x52 Set the datalog size

5.2.2.951

#dene RCX_SetEventOp 0x93 Set an event

5.2.2.952

#dene RCX_SetFeedbackOp 0x83 Set Scout feedback

5.2.2.953

#dene RCX_SetPriorityOp 0xd7 Set task priority

5.2.2.954

#dene RCX_SetSourceValueOp 0x05 Set a source/value

5.2.2.955

#dene RCX_SetTimerLimitOp 0xc4 Set timer limit

5.2.2.956

#dene RCX_SetVarOp 0x14 Set function

5.2.2.957

#dene RCX_SetWatchOp 0x22 Set the watch source/value

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

749

5.2.2.958

#dene RCX_SgnVarOp 0x64 Sign function

5.2.2.959

#dene RCX_SoundOp 0x57 Sound opcode

5.2.2.960

#dene RCX_StartTaskOp 0x71 Start a task

5.2.2.961

#dene RCX_StopAllTasksOp 0x50 Stop all tasks

5.2.2.962

#dene RCX_StopTaskOp 0x81 Stop a task

5.2.2.963

#dene RCX_SubVarOp 0x34 Subtract function

5.2.2.964

#dene RCX_SumVarOp 0x24 Sum function

5.2.2.965

#dene RCX_TaskEventsSrc 23 The RCX task events source

5.2.2.966

#dene RCX_TenMSTimerSrc 26 The RCX 10ms timer source

5.2.2.967

#dene RCX_TimerSrc 1 The RCX timer source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

750

5.2.2.968

#dene RCX_UARTSetupSrc 33 The RCX UART setup source

5.2.2.969

#dene RCX_UnlockFirmOp 0xa5 Unlock the rmware

5.2.2.970

#dene RCX_UnlockOp 0x15 Unlock the brick

5.2.2.971

#dene RCX_UnmuteSoundOp 0xe0 Unmute sound

5.2.2.972

#dene RCX_UploadDatalogOp 0xa4 Upload datalog contents

5.2.2.973

#dene RCX_UpperThresholdSrc 28 The RCX event upper threshold source

5.2.2.974

#dene RCX_VariableSrc 0 The RCX variable source

5.2.2.975

#dene RCX_ViewSourceValOp 0xe5 View a source/value

5.2.2.976

#dene RCX_VLLOp 0xe2 Send visual light link (VLL) data

5.2.2.977

#dene RCX_WatchSrc 14 The RCX watch source

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

751

5.2.2.978

#dene ReadButton 20 Read the current button state

5.2.2.979

#dene ReadSemData 40 Read motor semaphore data

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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)

Output an RIC parameterized argument.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

753

Parameters: _arg The argument that you want to parameterize.

5.2.2.991

#dene RICImgPoint(_X, _Y) (_X)&0xFF, (_X)>>8, (_Y)&0xFF, (_Y)>>8

Output an RIC ImgPoint structure. Parameters: _X The X coordinate. _Y The Y coordinate.

5.2.2.992

#dene RICImgRect(_Pt, _W, _H) _Pt, (_W)&0xFF, (_W)>>8, (_H)&0xFF, (_H)>>8

Output an RIC ImgRect structure. Parameters: _Pt An ImgPoint. See RICImgPoint. _W The rectangle width. _H The rectangle height.

5.2.2.993

#dene RICMapArg(_mapidx, _arg) ((_arg)|0x1000|(((_mapidx)&0xF)<<8))

Output an RIC parameterized and mapped argument. Parameters: _mapidx The varmap data address. _arg The parameterized argument you want to pass through a varmap.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

754

5.2.2.994

#dene RICMapElement(_Domain, _Range) (_Domain)&0xFF, (_Domain)>>8, (_Range)&0xFF, (_Range)>>8

Output an RIC map element. Parameters: _Domain The map element domain. _Range The map element range.

5.2.2.995

#dene RICMapFunction(_MapElement, ...) _MapElement, __VA_ARGS__

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

Output an RIC CopyBits opcode.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene RICOpLine(_CopyOptions, _Point1, _Point2) 12, 0, 5, 0, (_CopyOptions)&0xFF, (_CopyOptions)>>8, _Point1, _Point2

Output an RIC Line opcode.


Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Output an RIC Polygon opcode.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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.

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

#dene RICPolygonPoints(_pPoint1, _pPoint2, ...) _pPoint1, _pPoint2, __VA_ARGS__

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

#dene RICSpriteData( ...) __VA_ARGS__

Output RIC sprite data. 5.2.2.1009 #dene ROTATE_QUEUE 5 VM should rotate queue 5.2.2.1010 #dene RotationCount 14

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

760

5.2.2.1017

#dene SCHAR_MIN -127 The minimum value of the signed char type

5.2.2.1018

#dene SCOUT_FXR_ALARM 2 Alarm special effects

5.2.2.1019

#dene SCOUT_FXR_BUG 1 Bug special effects

5.2.2.1020

#dene SCOUT_FXR_NONE 0 No special effects

5.2.2.1021

#dene SCOUT_FXR_RANDOM 3 Random special effects

5.2.2.1022

#dene SCOUT_FXR_SCIENCE 4 Science special effects

5.2.2.1023

#dene SCOUT_LIGHT_OFF 0 Turn off the scout light

5.2.2.1024

#dene SCOUT_LIGHT_ON 0x80 Turn on the scout light

5.2.2.1025

#dene SCOUT_LR_AVOID 3 Light rule avoid

5.2.2.1026

#dene SCOUT_LR_IGNORE 0 Light rule ignore

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

761

5.2.2.1027

#dene SCOUT_LR_OFF_WHEN 5 Light rule off when

5.2.2.1028

#dene SCOUT_LR_SEEK_DARK 2 Light rule seek dark

5.2.2.1029

#dene SCOUT_LR_SEEK_LIGHT 1 Light rule seek light

5.2.2.1030

#dene SCOUT_LR_WAIT_FOR 4 Light rule wait for

5.2.2.1031

#dene SCOUT_MODE_POWER 1 Enter power mode

5.2.2.1032

#dene SCOUT_MODE_STANDALONE 0 Enter stand alone mode

5.2.2.1033

#dene SCOUT_MR_CIRCLE_LEFT 4 Motion rule circle left

5.2.2.1034

#dene SCOUT_MR_CIRCLE_RIGHT 3 Motion rule circle right

5.2.2.1035

#dene SCOUT_MR_FORWARD 1 Motion rule forward

5.2.2.1036

#dene SCOUT_MR_LOOP_A 5 Motion rule loop A

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

762

5.2.2.1037

#dene SCOUT_MR_LOOP_AB 7 Motion rule loop A then B

5.2.2.1038

#dene SCOUT_MR_LOOP_B 6 Motion rule loop B

5.2.2.1039

#dene SCOUT_MR_NO_MOTION 0 Motion rule none

5.2.2.1040

#dene SCOUT_MR_ZIGZAG 2 Motion rule zigzag

5.2.2.1041

#dene SCOUT_SNDSET_ALARM 3 Set sound set to alarm

5.2.2.1042

#dene SCOUT_SNDSET_BASIC 1 Set sound set to basic

5.2.2.1043

#dene SCOUT_SNDSET_BUG 2 Set sound set to bug

5.2.2.1044

#dene SCOUT_SNDSET_NONE 0 Set sound set to none

5.2.2.1045

#dene SCOUT_SNDSET_RANDOM 4 Set sound set to random

5.2.2.1046

#dene SCOUT_SNDSET_SCIENCE 5 Set sound set to science

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

763

5.2.2.1047

#dene SCOUT_SOUND_1_BLINK 17 Play the Scout 1 blink sound

5.2.2.1048

#dene SCOUT_SOUND_2_BLINK 18 Play the Scout 2 blink sound

5.2.2.1049

#dene SCOUT_SOUND_COUNTER1 19 Play the Scout counter 1 sound

5.2.2.1050

#dene SCOUT_SOUND_COUNTER2 20 Play the Scout counter 2 sound

5.2.2.1051

#dene SCOUT_SOUND_ENTER_BRIGHT 14 Play the Scout enter bright sound

5.2.2.1052

#dene SCOUT_SOUND_ENTER_DARK 16 Play the Scout enter dark sound

5.2.2.1053

#dene SCOUT_SOUND_ENTER_NORMAL 15 Play the Scout enter normal sound

5.2.2.1054

#dene SCOUT_SOUND_ENTERSA 7 Play the Scout enter standalone sound

5.2.2.1055

#dene SCOUT_SOUND_KEYERROR 8 Play the Scout key error sound

5.2.2.1056

#dene SCOUT_SOUND_MAIL_RECEIVED 24 Play the Scout mail received sound

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

764

5.2.2.1057

#dene SCOUT_SOUND_NONE 9 Play the Scout none sound

5.2.2.1058

#dene SCOUT_SOUND_REMOTE 6 Play the Scout remote sound

5.2.2.1059

#dene SCOUT_SOUND_SPECIAL1 25 Play the Scout special 1 sound

5.2.2.1060

#dene SCOUT_SOUND_SPECIAL2 26 Play the Scout special 2 sound

5.2.2.1061

#dene SCOUT_SOUND_SPECIAL3 27 Play the Scout special 3 sound

5.2.2.1062

#dene SCOUT_SOUND_TIMER1 21 Play the Scout timer 1 sound

5.2.2.1063

#dene SCOUT_SOUND_TIMER2 22 Play the Scout timer 2 sound

5.2.2.1064

#dene SCOUT_SOUND_TIMER3 23 Play the Scout timer 3 sound

5.2.2.1065

#dene SCOUT_SOUND_TOUCH1_PRES 10 Play the Scout touch 1 pressed sound

5.2.2.1066

#dene SCOUT_SOUND_TOUCH1_REL 11 Play the Scout touch 1 released sound

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

765

5.2.2.1067

#dene SCOUT_SOUND_TOUCH2_PRES 12 Play the Scout touch 2 pressed sound

5.2.2.1068

#dene SCOUT_SOUND_TOUCH2_REL 13 Play the Scout touch 2 released sound

5.2.2.1069

#dene SCOUT_TGS_LONG 2 Transmit level long

5.2.2.1070

#dene SCOUT_TGS_MEDIUM 1 Transmit level medium

5.2.2.1071

#dene SCOUT_TGS_SHORT 0 Transmit level short

5.2.2.1072

#dene SCOUT_TR_AVOID 2 Touch rule avoid

5.2.2.1073

#dene SCOUT_TR_IGNORE 0 Touch rule ignore

5.2.2.1074

#dene SCOUT_TR_OFF_WHEN 4 Touch rule off when

5.2.2.1075

#dene SCOUT_TR_REVERSE 1 Touch rule reverse

5.2.2.1076

#dene SCOUT_TR_WAIT_FOR 3 Touch rule wait for

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

766

5.2.2.1077

#dene SCREEN_BACKGROUND 0 Entire screen

5.2.2.1078

#dene SCREEN_LARGE 1 Entire screen except status line

5.2.2.1079

#dene SCREEN_MODE_CLEAR 0x01 Clear the screen

See also: SetScreenMode()

5.2.2.1080

#dene SCREEN_MODE_RESTORE 0x00 Restore the screen

See also: SetScreenMode()

5.2.2.1081

#dene SCREEN_SMALL 2 Screen between menu icons and status line

5.2.2.1082

#dene SCREENS 3 The number of screen bits

5.2.2.1083

#dene SEC_1 1000 1 second

5.2.2.1084

#dene SEC_10 10000 10 seconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

767

5.2.2.1085

#dene SEC_15 15000 15 seconds

5.2.2.1086

#dene SEC_2 2000 2 seconds

5.2.2.1087

#dene SEC_20 20000 20 seconds

5.2.2.1088

#dene SEC_3 3000 3 seconds

5.2.2.1089

#dene SEC_30 30000 30 seconds

5.2.2.1090

#dene SEC_4 4000 4 seconds

5.2.2.1091

#dene SEC_5 5000 5 seconds

5.2.2.1092

#dene SEC_6 6000 6 seconds

5.2.2.1093

#dene SEC_7 7000 7 seconds

5.2.2.1094

#dene SEC_8 8000 8 seconds

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

768

5.2.2.1095

#dene SEC_9 9000 9 seconds

5.2.2.1096

#dene SetScreenMode 19 Set the screen mode

5.2.2.1097

#dene SetSleepTimeoutVal 46 Set the NXT sleep timeout value

5.2.2.1098

#dene SHRT_MAX 32767 The maximum value of the short type

5.2.2.1099

#dene SHRT_MIN -32767 The minimum value of the short type

5.2.2.1100

#dene SIZE_OF_BDADDR 7 Size of Bluetooth Address

5.2.2.1101

#dene SIZE_OF_BRICK_NAME 8 Size of NXT Brick name

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

769

5.2.2.1105

#dene SIZE_OF_BT_PINCODE 16 Size of Bluetooth PIN

5.2.2.1106

#dene SIZE_OF_BTBUF 128 Size of Bluetooth buffer

5.2.2.1107

#dene SIZE_OF_CLASS_OF_DEVICE 4 Size of class of device

5.2.2.1108

#dene SIZE_OF_HSBUF 128 Size of High Speed Port 4 buffer

5.2.2.1109

#dene SIZE_OF_USBBUF 64 Size of USB Buffer in bytes

5.2.2.1110

#dene SIZE_OF_USBDATA 62 Size of USB Buffer available for data

5.2.2.1111

#dene SOUND_CLICK 0 Play the standard key click sound

5.2.2.1112

#dene SOUND_DOUBLE_BEEP 1 Play the standard double beep sound

5.2.2.1113

#dene SOUND_DOWN 2 Play the standard sweep down sound

5.2.2.1114

#dene SOUND_FAST_UP 5 Play the standard fast up sound

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

770

5.2.2.1115

#dene SOUND_FLAGS_IDLE 0x00 R - Sound is idle

5.2.2.1116

#dene SOUND_FLAGS_RUNNING 0x02 R - Currently processing a tone or le

5.2.2.1117

#dene SOUND_FLAGS_UPDATE 0x01 W - Make changes take effect

5.2.2.1118

#dene SOUND_LOW_BEEP 4 Play the standard low beep sound

5.2.2.1119

#dene SOUND_MODE_LOOP 0x01 W - Play le until writing SOUND_STATE_STOP into SoundState

5.2.2.1120

#dene SOUND_MODE_ONCE 0x00 W - Only play le once

5.2.2.1121

#dene SOUND_MODE_TONE 0x02 W - Play tone specied in Frequency for Duration ms

5.2.2.1122

#dene SOUND_STATE_FILE 0x02 R - Processing a le of sound/melody data

5.2.2.1123

#dene SOUND_STATE_IDLE 0x00 R - Idle, ready for start sound (SOUND_UPDATE)

5.2.2.1124

#dene SOUND_STATE_STOP 0x04 W - Stop sound immediately and close hardware

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

771

5.2.2.1125

#dene SOUND_STATE_TONE 0x03 R - Processing a play tone request

5.2.2.1126

#dene SOUND_UP 3 Play the standard sweep up sound

5.2.2.1127

#dene SoundGetState 11 Get the current sound module state

5.2.2.1128

#dene SoundModuleID 0x00080001 The sound module ID

5.2.2.1129

#dene SoundModuleName "Sound.mod" The sound module name

5.2.2.1130

#dene SoundOffsetDuration 2 RW - Tone duration [mS] (2 bytes)

5.2.2.1131

#dene SoundOffsetFlags 26 RW - Play ag - described above (1 byte) SoundFlags constants

5.2.2.1132

#dene SoundOffsetFreq 0 RW - Tone frequency [Hz] (2 bytes)

5.2.2.1133

#dene SoundOffsetMode 28 RW - Play mode - described above (1 byte) SoundMode constants

5.2.2.1134

#dene SoundOffsetSampleRate 4 RW - Sound le sample rate [2000..16000] (2 bytes)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

772

5.2.2.1135

#dene SoundOffsetSoundFilename 6 RW - Sound/melody lename (20 bytes)

5.2.2.1136

#dene SoundOffsetState 27 RW - Play state - described above (1 byte) SoundState constants

5.2.2.1137

#dene SoundOffsetVolume 29 RW - Sound/melody volume [0..4] 0 = off (1 byte)

5.2.2.1138

#dene SoundPlayFile 9 Play a sound or melody le

5.2.2.1139

#dene SoundPlayTone 10 Play a simple tone with the specied frequency and duration

5.2.2.1140

#dene SoundSetState 12 Set the sound module state

5.2.2.1141

#dene SPECIALS 5 The number of special bit values

5.2.2.1142

#dene STAT_COMM_PENDING 32 Pending setup operation in progress

5.2.2.1143

#dene STAT_MSG_EMPTY_MAILBOX 64 Specied mailbox contains no new messages

5.2.2.1144

#dene STATUSICON_BATTERY 3 Battery status icon collection

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

773

5.2.2.1145

#dene STATUSICON_BLUETOOTH 0 BlueTooth status icon collection

5.2.2.1146

#dene STATUSICON_USB 1 USB status icon collection

5.2.2.1147

#dene STATUSICON_VM 2 VM status icon collection

5.2.2.1148

#dene STATUSICONS 4 The number of status icons

5.2.2.1149

#dene STATUSTEXT 1 Status text (BT name)

5.2.2.1150

#dene STEPICON_1 0 Left most step icon

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

#dene STEPICON_5 4 Right most step icon

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

774

5.2.2.1155

#dene STEPICONS 5

5.2.2.1156

#dene STEPLINE 3 Step collection lines

5.2.2.1157

#dene STOP_REQ 4 VM should stop executing program

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

775

5.2.2.1162

#dene TEMP_FQ_4 0x10 Set fault queue 4

5.2.2.1163

#dene TEMP_FQ_6 0x18 Set fault queue 6

5.2.2.1164

#dene TEMP_I2C_ADDRESS 0x98 The temperature sensors I2C address

5.2.2.1165

#dene TEMP_OS_ONESHOT 0x80 Set the sensor into oneshot mode

5.2.2.1166

#dene TEMP_POL_HIGH 0x04 Set polarity to high

5.2.2.1167

#dene TEMP_POL_LOW 0x00 Set polarity to low

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

776

5.2.2.1172

#dene TEMP_RES_10BIT 0x20 Set the resolution to 10 bit

5.2.2.1173

#dene TEMP_RES_11BIT 0x40 Set the resolution to 11 bit

5.2.2.1174

#dene TEMP_RES_12BIT 0x60 Set the resolution to 12 bit

5.2.2.1175

#dene TEMP_RES_9BIT 0x00 Set the resolution to 9 bit

5.2.2.1176

#dene TEMP_SD_CONTINUOUS 0x00 Set the mode to continuous

5.2.2.1177

#dene TEMP_SD_SHUTDOWN 0x01 Set the mode to shutdown

5.2.2.1178

#dene TEMP_TM_COMPARATOR 0x00 Set the thermostat mode to comparator

5.2.2.1179

#dene TEMP_TM_INTERRUPT 0x02 Set the thermostat mode to interrupt

5.2.2.1180

#dene TEXTLINE_1 0 Text line 1

5.2.2.1181

#dene TEXTLINE_2 1 Text line 2

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

777

5.2.2.1182

#dene TEXTLINE_3 2 Text line 3

5.2.2.1183

#dene TEXTLINE_4 3 Text line 4

5.2.2.1184

#dene TEXTLINE_5 4 Text line 5

5.2.2.1185

#dene TEXTLINE_6 5 Text line 6

5.2.2.1186

#dene TEXTLINE_7 6 Text line 7

5.2.2.1187

#dene TEXTLINE_8 7 Text line 8

5.2.2.1188

#dene TEXTLINES 8 The number of text lines on the LCD

5.2.2.1189

#dene TIMES_UP 6 VM time is up

5.2.2.1190

#dene TONE_A3 220 Third octave A

5.2.2.1191

#dene TONE_A4 440 Fourth octave A

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

778

5.2.2.1192

#dene TONE_A5 880 Fifth octave A

5.2.2.1193

#dene TONE_A6 1760 Sixth octave A

5.2.2.1194

#dene TONE_A7 3520 Seventh octave A

5.2.2.1195

#dene TONE_AS3 233 Third octave A sharp

5.2.2.1196

#dene TONE_AS4 466 Fourth octave A sharp

5.2.2.1197

#dene TONE_AS5 932 Fifth octave A sharp

5.2.2.1198

#dene TONE_AS6 1865 Sixth octave A sharp

5.2.2.1199

#dene TONE_AS7 3729 Seventh octave A sharp

5.2.2.1200

#dene TONE_B3 247 Third octave B

5.2.2.1201

#dene TONE_B4 494 Fourth octave B

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

779

5.2.2.1202

#dene TONE_B5 988 Fifth octave B

5.2.2.1203

#dene TONE_B6 1976 Sixth octave B

5.2.2.1204

#dene TONE_B7 3951 Seventh octave B

5.2.2.1205

#dene TONE_C4 262 Fourth octave C

5.2.2.1206

#dene TONE_C5 523 Fifth octave C

5.2.2.1207

#dene TONE_C6 1047 Sixth octave C

5.2.2.1208

#dene TONE_C7 2093 Seventh octave C

5.2.2.1209

#dene TONE_CS4 277 Fourth octave C sharp

5.2.2.1210

#dene TONE_CS5 554 Fifth octave C sharp

5.2.2.1211

#dene TONE_CS6 1109 Sixth octave C sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

780

5.2.2.1212

#dene TONE_CS7 2217 Seventh octave C sharp

5.2.2.1213

#dene TONE_D4 294 Fourth octave D

5.2.2.1214

#dene TONE_D5 587 Fifth octave D

5.2.2.1215

#dene TONE_D6 1175 Sixth octave D

5.2.2.1216

#dene TONE_D7 2349 Seventh octave D

5.2.2.1217

#dene TONE_DS4 311 Fourth octave D sharp

5.2.2.1218

#dene TONE_DS5 622 Fifth octave D sharp

5.2.2.1219

#dene TONE_DS6 1245 Sixth octave D sharp

5.2.2.1220

#dene TONE_DS7 2489 Seventh octave D sharp

5.2.2.1221

#dene TONE_E4 330 Fourth octave E

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

781

5.2.2.1222

#dene TONE_E5 659 Fifth octave E

5.2.2.1223

#dene TONE_E6 1319 Sixth octave E

5.2.2.1224

#dene TONE_E7 2637 Seventh octave E

5.2.2.1225

#dene TONE_F4 349 Fourth octave F

5.2.2.1226

#dene TONE_F5 698 Fifth octave F

5.2.2.1227

#dene TONE_F6 1397 Sixth octave F

5.2.2.1228

#dene TONE_F7 2794 Seventh octave F

5.2.2.1229

#dene TONE_FS4 370 Fourth octave F sharp

5.2.2.1230

#dene TONE_FS5 740 Fifth octave F sharp

5.2.2.1231

#dene TONE_FS6 1480 Sixth octave F sharp

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

782

5.2.2.1232

#dene TONE_FS7 2960 Seventh octave F sharp

5.2.2.1233

#dene TONE_G4 392 Fourth octave G

5.2.2.1234

#dene TONE_G5 784 Fifth octave G

5.2.2.1235

#dene TONE_G6 1568 Sixth octave G

5.2.2.1236

#dene TONE_G7 3136 Seventh octave G

5.2.2.1237

#dene TONE_GS4 415 Fourth octave G sharp

5.2.2.1238

#dene TONE_GS5 831 Fifth octave G sharp

5.2.2.1239

#dene TONE_GS6 1661 Sixth octave G sharp

5.2.2.1240

#dene TONE_GS7 3322 Seventh octave G sharp

5.2.2.1241

#dene TOPLINE 4 Top status underline

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

783

5.2.2.1242

#dene TRAIN_CHANNEL_1 0 IR Train channel 1

5.2.2.1243

#dene TRAIN_CHANNEL_2 1 IR Train channel 2

5.2.2.1244

#dene TRAIN_CHANNEL_3 2 IR Train channel 3

5.2.2.1245

#dene TRAIN_CHANNEL_ALL 3 IR Train channel all

5.2.2.1246

#dene TRAIN_FUNC_DECR_SPEED 2 PF/IR Train function decrement speed

5.2.2.1247

#dene TRAIN_FUNC_INCR_SPEED 1 PF/IR Train function increment speed

5.2.2.1248

#dene TRAIN_FUNC_STOP 0 PF/IR Train function stop

5.2.2.1249

#dene TRAIN_FUNC_TOGGLE_LIGHT 4 PF/IR Train function toggle light

5.2.2.1250

#dene TRUE 1 A true value

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

785

5.2.2.1258

#dene UF_UPDATE_RESET_COUNT 0x08

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

NBCCommon.h File Reference

786

5.2.2.1268

#dene UI_BUTTON_ENTER 2 W - Insert enter button

5.2.2.1269

#dene UI_BUTTON_EXIT 4 W - Insert exit button

5.2.2.1270

#dene UI_BUTTON_LEFT 1 W - Insert left arrow button

5.2.2.1271

#dene UI_BUTTON_NONE 0 R - Button inserted are executed

5.2.2.1272

#dene UI_BUTTON_RIGHT 3 W - Insert right arrow button

5.2.2.1273

#dene UI_FLAGS_BUSY 0x40 R - UI busy running or datalogging (popup disabled)

5.2.2.1274

#dene UI_FLAGS_DISABLE_EXIT 0x04 RW - Disable exit button

5.2.2.1275

#dene UI_FLAGS_DISABLE_LEFT_RIGHT_ENTER 0x02 RW - Disable left, right and enter button

5.2.2.1276

#dene UI_FLAGS_ENABLE_STATUS_UPDATE 0x80 W - Enable status line to be updated

5.2.2.1277

#dene UI_FLAGS_EXECUTE_LMS_FILE 0x20 W - Execute LMS le in "LMSlename" (Try It)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

787

5.2.2.1278

#dene UI_FLAGS_REDRAW_STATUS 0x08 W - Redraw entire status line

5.2.2.1279

#dene UI_FLAGS_RESET_SLEEP_TIMER 0x10 W - Reset sleep timeout timer

5.2.2.1280

#dene UI_FLAGS_UPDATE 0x01 W - Make changes take effect

5.2.2.1281

#dene UI_STATE_BT_ERROR 16 R - BT error

5.2.2.1282

#dene UI_STATE_CONNECT_REQUEST 12 RW - Request for connection accept

5.2.2.1283

#dene UI_STATE_DRAW_MENU 6 RW - Execute function and draw menu icons

5.2.2.1284

#dene UI_STATE_ENTER_PRESSED 10 RW - Load selected function and next menu id

5.2.2.1285

#dene UI_STATE_EXECUTE_FILE 13 RW - Execute le in "LMSlename"

5.2.2.1286

#dene UI_STATE_EXECUTING_FILE 14 R - Executing le in "LMSlename"

5.2.2.1287

#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

5.2

NBCCommon.h File Reference

788

5.2.2.1288

#dene UI_STATE_INIT_DISPLAY 0 RW - Init display and load font, menu etc.

5.2.2.1289

#dene UI_STATE_INIT_INTRO 2 R - Display intro

5.2.2.1290

#dene UI_STATE_INIT_LOW_BATTERY 1 R - Low battery voltage at power on

5.2.2.1291

#dene UI_STATE_INIT_MENU 4 RW - Init menu system

5.2.2.1292

#dene UI_STATE_INIT_WAIT 3 RW - Wait for initialization end

5.2.2.1293

#dene UI_STATE_LEFT_PRESSED 8 RW - Load selected function and next menu id

5.2.2.1294

#dene UI_STATE_LOW_BATTERY 15 R - Low battery at runtime

5.2.2.1295

#dene UI_STATE_NEXT_MENU 5 RW - Next menu icons ready for drawing

5.2.2.1296

#dene UI_STATE_RIGHT_PRESSED 9 RW - Load selected function and next menu id

5.2.2.1297

#dene UI_STATE_TEST_BUTTONS 7 RW - Wait for buttons to be pressed

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

790

5.2.2.1307

#dene UIOffsetAbortFlag 40 RW - Long Abort (true == use long press to abort) (1 byte)

5.2.2.1308

#dene UIOffsetBatteryState 30 W - Battery state (0..4 capacity) (1 byte)

5.2.2.1309

#dene UIOffsetBatteryVoltage 4 R - Battery voltage in millivolts (2 bytes)

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)

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

791

5.2.2.1317

#dene UIOffsetPMenu 0 W - Pointer to menu le (4 bytes)

5.2.2.1318

#dene UIOffsetRechargeable 35 R - Rechargeable battery (0 = no, 1 = yes) (1 byte)

5.2.2.1319

#dene UIOffsetRunState 29 W - VM Run state (0 = stopped, 1 = running) (1 byte)

5.2.2.1320

#dene UIOffsetSleepTimeout 33 RW - Sleep timeout time (min) (1 byte)

5.2.2.1321

#dene UIOffsetSleepTimer 34 RW - Sleep timer (min) (1 byte)

5.2.2.1322

#dene UIOffsetState 27 RW - UI state (states enumerated above) (1 byte)

5.2.2.1323

#dene UIOffsetUsbState 32 W - Usb state (0=disconnected, 1=connected, 2=working) (1 byte)

5.2.2.1324

#dene UIOffsetVolume 36 RW - Volume used in UI (0 - 4) (1 byte)

5.2.2.1325

#dene ULONG_MAX 4294967295 The maximum value of the unsigned long type

5.2.2.1326

#dene UpdateCalibCacheInfo 43 Update sensor calibration cache information

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

5.2

NBCCommon.h File Reference

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

NBCCommon.h File Reference

793

5.2.2.1336

#dene US_REG_FACTORY_SCALE_DIVISOR 0x13

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

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

Generated on Tue Jun 29 02:01:17 2010 for NBC by Doxygen

You might also like