|
#define | DEBUG_RECHARGEABLE |
|
#define | LMS2012_H_ |
|
#define | EP2 4 |
| Schematics revision D. More...
|
|
#define | FINALB 3 |
| Schematics revision B and C. More...
|
|
#define | FINAL 2 |
| Final prototype. More...
|
|
#define | SIMULATION 0 |
| LEGO digital simulation. More...
|
|
#define | PLATFORM_START FINAL |
| Oldest supported hardware (older versions will use this) More...
|
|
#define | PLATFORM_END EP2 |
| Newest supported hardware (newer versions will use this) More...
|
|
#define | A4 -1 |
|
#define | EVALBOARD -2 |
|
#define | ONE2ONE 1 |
| First real size prototype. More...
|
|
#define | HARDWARE FINAL |
| Actual hardware platform (must be one of above) More...
|
|
#define | UART1_FAKE_INTERRUPT |
| Don't use real interrupt on UART1 (linux prompt) More...
|
|
#define | DISABLE_PREEMPTED_VM |
| Don't run VM as preempted. More...
|
|
#define | DISABLE_USBSTICK_SUPPORT |
| Don't use USB stick. More...
|
|
#define | TESTDEVICE 3 |
|
#define | OUTPUTS vmOUTPUTS |
| Number of output ports in the system. More...
|
|
#define | INPUTS vmINPUTS |
| Number of input ports in the system. More...
|
|
#define | BUTTONS vmBUTTONS |
| Number of buttons in the system. More...
|
|
#define | LEDS vmLEDS |
| Number of LEDs in the system. More...
|
|
#define | LCD_WIDTH vmLCD_WIDTH |
| LCD horizontal pixels. More...
|
|
#define | LCD_HEIGHT vmLCD_HEIGHT |
| LCD vertical pixels. More...
|
|
#define | TOPLINE_HEIGHT vmTOPLINE_HEIGHT |
| Top line vertical pixels. More...
|
|
#define | LCD_STORE_LEVELS vmLCD_STORE_LEVELS |
| Store levels. More...
|
|
#define | FG_COLOR vmFG_COLOR |
| Foreground color. More...
|
|
#define | BG_COLOR vmBG_COLOR |
| Background color. More...
|
|
#define | CHAIN_DEPT vmCHAIN_DEPT |
| Number of bricks in the USB daisy chain (master + slaves) More...
|
|
#define | EVENT_BT_PIN vmEVENT_BT_PIN |
|
#define | MEMORY_FOLDER vmMEMORY_FOLDER |
|
#define | PROGRAM_FOLDER vmPROGRAM_FOLDER |
|
#define | DATALOG_FOLDER vmDATALOG_FOLDER |
|
#define | SDCARD_FOLDER vmSDCARD_FOLDER |
|
#define | USBSTICK_FOLDER vmUSBSTICK_FOLDER |
|
#define | DETAILS_FILE vmDETAILS_FILE |
| File containing firmware version. More...
|
|
#define | EXT_SOUND vmEXT_SOUND |
| Rudolf sound file. More...
|
|
#define | EXT_GRAPHICS vmEXT_GRAPHICS |
| Rudolf graphics file. More...
|
|
#define | EXT_BYTECODE vmEXT_BYTECODE |
| Rudolf byte code file. More...
|
|
#define | EXT_TEXT vmEXT_TEXT |
| Rudolf text file. More...
|
|
#define | EXT_DATALOG vmEXT_DATALOG |
| Rudolf datalog file. More...
|
|
#define | EXT_PROGRAM vmEXT_PROGRAM |
| Rudolf program byte code file. More...
|
|
#define | EXT_CONFIG vmEXT_CONFIG |
| rudolf configuration file More...
|
|
#define | UPDATE_TIME1 2 |
| Update repeat time1 [mS]. More...
|
|
#define | UPDATE_TIME2 10 |
| Update repeat time2 [mS]. More...
|
|
#define | UPDATE_MEMORY 200 |
| Update memory size [mS]. More...
|
|
#define | UPDATE_SDCARD 500 |
| Update sdcard size [mS]. More...
|
|
#define | UPDATE_USBSTICK 500 |
| Update usbstick size [mS]. More...
|
|
#define | MAX_SOUND_DATA_SIZE 250 |
|
#define | SOUND_CHUNK 250 |
|
#define | SOUND_ADPCM_CHUNK 125 |
|
#define | SOUND_MASTER_CLOCK 132000000 |
|
#define | SOUND_TONE_MASTER_CLOCK 1031250 |
|
#define | SOUND_MIN_FRQ 250 |
|
#define | SOUND_MAX_FRQ 10000 |
|
#define | SOUND_MAX_LEVEL 8 |
|
#define | SOUND_FILE_BUFFER_SIZE SOUND_CHUNK + 2 |
|
#define | SOUND_BUFFER_COUNT 3 |
|
#define | SOUND_FILE_FORMAT_NORMAL 0x0100 |
|
#define | SOUND_FILE_FORMAT_COMPRESSED 0x0101 |
|
#define | VtoC(V) ((UWORD)((V * ADC_RES) / ADC_REF)) |
|
#define | CtoV(C) ((UWORD)((C * ADC_REF) / ADC_RES)) |
|
#define | MtoV(M) ((UWORD)((M * ADC_REF * 100) / (ADC_RES * 52))) |
|
#define | KB 1024 |
|
#define | TYPE_NAME_LENGTH 11 |
|
#define | SYMBOL_LENGTH 4 |
| Symbol leng th (not including zero) More...
|
|
#define | TYPE_PARAMETERS 19 |
| Number of members in the structure above. More...
|
|
#define | MAX_DEVICE_INFOLENGTH 54 |
| Number of bytes in the structure above (can not be changed) More...
|
|
#define | ERR_STRING_SIZE vmERR_STRING_SIZE |
|
#define | COLORS 4 |
|
#define | CALPOINTS 3 |
|
#define | UART_PORT_CHANGED 0x01 |
| Input port changed. More...
|
|
#define | UART_DATA_READY 0x08 |
| Data is ready. More...
|
|
#define | UART_WRITE_REQUEST 0x10 |
| Write request. More...
|
|
#define | UART_SET_CONN _IOWR('u',0,DEVCON) |
|
#define | UART_READ_MODE_INFO _IOWR('u',1,UARTCTL) |
|
#define | UART_NACK_MODE_INFO _IOWR('u',2,UARTCTL) |
|
#define | UART_CLEAR_CHANGED _IOWR('u',3,UARTCTL) |
|
#define | IIC_PORT_CHANGED 0x01 |
| Input port changed. More...
|
|
#define | IIC_DATA_READY 0x08 |
| Data is ready. More...
|
|
#define | IIC_WRITE_REQUEST 0x10 |
| Write request. More...
|
|
#define | IIC_SET_CONN _IOWR('i',2,DEVCON) |
|
#define | IIC_READ_TYPE_INFO _IOWR('i',3,IICCTL) |
|
#define | IIC_SETUP _IOWR('i',5,IICDAT) |
|
#define | IIC_SET _IOWR('i',6,IICSTR) |
|
#define | TST_PIN_LENGTH 8 |
|
#define | TST_PIN_ON _IOWR('t',1,TSTPIN) |
|
#define | TST_PIN_OFF _IOWR('t',2,TSTPIN) |
|
#define | TST_PIN_READ _IOWR('t',3,TSTPIN) |
|
#define | TST_PIN_WRITE _IOWR('t',4,TSTPIN) |
|
#define | TST_UART_LENGTH UART_BUFFER_SIZE |
|
#define | TST_UART_ON _IOWR('t',5,TSTUART) |
|
#define | TST_UART_OFF _IOWR('t',6,TSTUART) |
|
#define | TST_UART_EN _IOWR('t',7,TSTUART) |
|
#define | TST_UART_DIS _IOWR('t',8,TSTUART) |
|
#define | TST_UART_READ _IOWR('t',9,TSTUART) |
|
#define | TST_UART_WRITE _IOWR('t',10,TSTUART) |
|
#define | LCD_BUFFER_SIZE (((LCD_WIDTH + 7) / 8) * LCD_HEIGHT) |
|
#define | LCD_TOPLINE_SIZE (((LCD_WIDTH + 7) / 8) * (TOPLINE_HEIGHT + 1)) |
|
#define | PRINTBUFFERSIZE 160 |
|
|
void | PrimParAdvance (void) |
| Skip next encoded parameter from byte code stream. More...
|
|
void * | PrimParPointer (void) |
| Get next encoded parameter from byte code stream. More...
|
|
IP | GetImageStart (void) |
| Get pointer to actual start of byte code image. More...
|
|
void | SetDispatchStatus (DSPSTAT Status) |
| Set object (dispatch) status. More...
|
|
void | SetInstructions (ULONG Instructions) |
| Set instructions. More...
|
|
PRGID | CurrentProgramId (void) |
| Get current program id. More...
|
|
OBJSTAT | ProgramStatus (PRGID PrgId) |
| Get program status. More...
|
|
OBJSTAT | ProgramStatusChange (PRGID PrgId) |
| Get program status change. More...
|
|
void | ProgramEnd (PRGID PrgId) |
| Exit program nicely (freeing up memory) More...
|
|
OBJID | CallingObjectId (void) |
| Get calling object id. More...
|
|
void | AdjustObjectIp (IMOFFS Value) |
| Adjust current instruction pointer. More...
|
|
IP | GetObjectIp (void) |
| Get current instruction pointer. More...
|
|
void | SetObjectIp (IP Ip) |
| Set current instruction pointer. More...
|
|
ULONG | GetTimeUS (void) |
|
ULONG | GetTimeMS (void) |
|
ULONG | GetTime (void) |
|
ULONG | CurrentObjectIp (void) |
|
void | VmPrint (char *pString) |
|
void | SetTerminalEnable (DATA8 Value) |
|
DATA8 | GetTerminalEnable (void) |
|
void | GetResourcePath (char *pString, DATA8 MaxLength) |
|
void * | VmMemoryResize (HANDLER Handle, DATA32 Elements) |
|
void | SetVolumePercent (DATA8 Volume) |
|
DATA8 | GetVolumePercent (void) |
|
void | SetSleepMinutes (DATA8 Minutes) |
|
DATA8 | GetSleepMinutes (void) |
|
DSPSTAT | ExecuteByteCode (IP pByteCode, GP pGlobals, LP pLocals) |
| Execute byte code stream (C-call) More...
|
|
DATA8 | CheckSdcard (DATA8 *pChanged, DATA32 *pTotal, DATA32 *pFree, DATA8 Force) |
|
DATA8 | CheckUsbstick (DATA8 *pChanged, DATA32 *pTotal, DATA32 *pFree, DATA8 Force) |
|
void | SetUiUpdate (void) |
|
RESULT | ValidateChar (DATA8 *pChar, DATA8 Set) |
|
RESULT | ValidateString (DATA8 *pString, DATA8 Set) |
|
ERR | LogErrorGet (void) |
|
void | LogErrorNumber (ERR Error) |
|
DATA8 | LogErrorNumberExists (ERR Error) |
|
DSPSTAT ExecuteByteCode |
( |
IP |
pByteCode, |
|
|
GP |
pGlobals, |
|
|
LP |
pLocals |
|
) |
| |
Execute byte code stream (C-call)
This call is able to execute up to "C_PRIORITY" byte codes instructions (no header necessary)
- Parameters
-
(IP) | Pointer to byte code stream (last byte code must be "opOBJECT_END") |
(GP) | Pointer to global variables to use (if none -> NULL) |
(LP) | Pointer to Local variables to use (if none -> NULL) |
- Returns
- (DSPSTAT) Dispatch status
Example:
IMGDATA BC1[] = { opUI_WRITE,PUT_STRING,LCS,'L','E','G','O','','
',0,opUI_WRITE,WRITE_FLUSH,opOBJECT_END }; ExecuteByteCode(BC1,NULL,NULL);
Definition at line 535 of file lms2012.c.