rtos 
Vars | |
display_icon | Icon state for the containing controller's screen. |
---|---|
display_indicators | Bitflag (RTOS_RED, RTOS_YELLOW, RTOS_GREEN) for indicator lights. |
print_history | List containing the last RTOS_OUTPUT_ROWS lines, FIFO queue. |
Procs | |
check_access | |
check_id | |
finish_startup | Program-specific startup code, Usually calls UI draw procs. |
halt | |
populate_memory | Load our variables from the configuration database. Return a string to halt. |
post_signal | |
redraw_screen | |
unlock_on_roundstart | Called by the embedded controller itself on roundstart to unlock the controlled mechanism. |
update_visuals |
Var Details
display_icon 
Icon state for the containing controller's screen.
display_indicators 
Bitflag (RTOS_RED, RTOS_YELLOW, RTOS_GREEN) for indicator lights.
print_history 
List containing the last RTOS_OUTPUT_ROWS lines, FIFO queue.
Proc Details
check_access
- RTOS.h - Check Access
- Softcode allowed(), takes an ID access list from the ID peripheral.
- Deadlocks if the Access DB is missing or invalid
check_id
- RTOS.h - Check ID
- Check if an inserted ID is allowed. Wraps rtos/check_access()
- Deadlocks if there is no card reader.
finish_startup
Program-specific startup code, Usually calls UI draw procs.
halt
- RTOS.h - Halt
- error_code - 4 number error code
- error_message - 20-character free text error message
- Sets
deadlocked
, consider this the RTOS equivalent of CRASH()
populate_memory
Load our variables from the configuration database. Return a string to halt.
post_signal
- RTOS.h - Post Signal
- Follows standard post_signal calling conventions.
redraw_screen
- RTOS.h - Redraw Screen
- Redraws the print_history buffers to the screen. Call after manual editing.
unlock_on_roundstart
Called by the embedded controller itself on roundstart to unlock the controlled mechanism.
update_visuals
- RTOS.h - Update Visuals
- Updates the visual-related vars, and triggers an icon update for the parent machine. Otherwise, halts.