Difference between revisions of "Unit GlobalConst"

From Ultibo.org
Jump to: navigation, search
Line 2,655: Line 2,655:
 
|-
 
|-
 
| <code>SIZE_2G = $80000000;</code>
 
| <code>SIZE_2G = $80000000;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>SIZE_4G = $100000000;</code>
 +
| &nbsp;
 +
|-
 +
| <code>SIZE_8G = $200000000;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 2,873: Line 2,881:
 
| <code>BOARD_TYPE_RPI4B = 31;</code>
 
| <code>BOARD_TYPE_RPI4B = 31;</code>
 
| Raspberry Pi 4 Model B
 
| Raspberry Pi 4 Model B
 +
|-
 +
| <code>BOARD_TYPE_RPI400 = 32;</code>
 +
| Raspberry Pi 400
 +
|-
 +
| <code>BOARD_TYPE_RPI_COMPUTE4 = 33;</code>
 +
| Raspberry Pi Compute Module 4
 
|-
 
|-
 
|}
 
|}
Line 3,129: Line 3,143:
 
|-
 
|-
 
| <code>CPU_GROUP_ALL = $FFFFFFFF;</code>
 
| <code>CPU_GROUP_ALL = $FFFFFFFF;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>CPU_GROUP_MAX = CPU_GROUP_31;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 3,238: Line 3,257:
 
|-
 
|-
 
| <code>CPU_ID_ALL = $FFFFFFFF;</code>
 
| <code>CPU_ID_ALL = $FFFFFFFF;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>CPU_ID_MAX = CPU_ID_31;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 3,632: Line 3,656:
 
|-
 
|-
 
| <code>DMA_DREQ_ID_SDHOST = 11;</code>
 
| <code>DMA_DREQ_ID_SDHOST = 11;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|Additional and aliased constants (Where applicable)
 +
|-
 +
| <code>DMA_DREQ_ID_UART0_TX = DMA_DREQ_ID_UART_TX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART0_RX = DMA_DREQ_ID_UART_RX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART1_TX = 12;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART1_RX = 13;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART2_TX = 14;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART2_RX = 15;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART3_TX = 16;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART3_RX = 17;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART4_TX = 18;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART4_RX = 19;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART5_TX = 20;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_UART5_RX = 21;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI0_TX = DMA_DREQ_ID_SPI_TX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI0_RX = DMA_DREQ_ID_SPI_RX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI1_TX = 22;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI1_RX = 23;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI2_TX = 24;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI2_RX = 25;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI3_TX = 26;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI3_RX = 27;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI4_TX = 28;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI4_RX = 29;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI5_TX = 30;</code>
 +
| &nbsp;
 +
|-
 +
| <code> DMA_DREQ_ID_SPI5_RX = 31;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI6_TX = 32;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_SPI6_RX = 33;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_PCM0_TX = DMA_DREQ_ID_PCM_TX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_PCM0_RX = DMA_DREQ_ID_PCM_RX;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_PWM0 = DMA_DREQ_ID_PWM;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_PWM1 = 34;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_EMMC0 = DMA_DREQ_ID_MMC;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_EMMC1 = DMA_DREQ_ID_SDHOST;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DMA_DREQ_ID_EMMC2 = 35;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 4,317: Line 4,442:
 
|-
 
|-
 
| <code>POWER_ID_CCP2TX = 20;</code>
 
| <code>POWER_ID_CCP2TX = 20;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|Additional constants (Where applicable)
 +
|-
 +
| <code>POWER_ID_UART4 = 21;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_UART5 = 22;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_UART6 = 23;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_UART7 = 24;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_UART8 = 25;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_UART9 = 26;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C4 = 27;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C5 = 28;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C6 = 29;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C7 = 30;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C8 = 31;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_I2C9 = 32;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI4 = 33;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI5 = 34;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI6 = 35;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI7 = 36;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI8 = 37;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POWER_ID_SPI9 = 38;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 4,417: Line 4,598:
 
|-
 
|-
 
| <code>CLOCK_ID_SPI3 = 25;</code>
 
| <code>CLOCK_ID_SPI3 = 25;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|Additional constants (Where applicable)
 +
|-
 +
| <code>CLOCK_ID_UART4 = 26;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_UART5 = 27;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_UART6 = 28;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_UART7 = 29;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_UART8 = 30;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_UART9 = 31;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C4 = 32;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C5 = 33;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C6 = 34;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C7 = 35;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C8 = 36;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_I2C9 = 37;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI4 = 38;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI5 = 39;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI6 = 40;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI7 = 41;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI8 = 42;</code>
 +
| &nbsp;
 +
|-
 +
| <code>CLOCK_ID_SPI9 = 43;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-

Revision as of 04:14, 7 June 2021

Return to Unit Reference


Description


Ultibo Global Constant Definitions unit

To be documented

Constants



[Expand]
Universal error ERROR_*


[Expand]
Universal value INVALID_*


[Expand]
File position FILE_*


[Expand]
File open/create CREATE_*


[Expand]
File creation flag FILE_FLAG_*


[Expand]
File attribute FILE_ATTRIBUTE_*


[Expand]
Filesystem attribute FS_*


[Expand]
File access GENERIC_*


[Expand]
File share FILE_SHARE_*


[Expand]
Timeout INFINITE =*


[Expand]
TLS TLS_*


[Expand]
Wait WAIT_*


[Expand]
Thread state STILL_*


[Expand]
TimeZone TIME_ZONE_*


[Expand]
Universal key codes KEY_CODE_*


[Expand]
Universal scan codes SCAN_CODE_*


[Expand]
Universal color COLOR_*


[Expand]
Universal size SIZE_*


[Expand]
Universal time MILLISECONDS_*


[Expand]
Ultibo time TIME_TICKS_*


[Expand]
Unix/Linux time UNIX_TIME_*


[Expand]
FreePascal time PASCAL_*


[Expand]
System call SYSTEM_CALL_*


[Expand]
Machine type MACHINE_TYPE_*


[Expand]
Board type BOARD_TYPE_*


[Expand]
CPU arch CPU_ARCH_*


[Expand]
CPU type CPU_TYPE_*


[Expand]
CPU model CPU_MODEL_*


[Expand]
CPU description CPU_DESCRIPTION_*


[Expand]
CPU state CPU_STATE_*


[Expand]
CPU group CPU_GROUP__*


[Expand]
CPU Id CPU_ID_*


[Expand]
CPU mask CPU_MASK_*


[Expand]
CPU affinity CPU_AFFINITY_*


[Expand]
FPU type FPU_TYPE_*


[Expand]
FPU state FPU_STATE_*


[Expand]
GPU type GPU_TYPE_*


[Expand]
GPU state GPU_STATE_*


[Expand]
Cache type CACHE_TYPE_*


[Expand]
DMA direction DMA_DIR_*


[Expand]
DMA DREQ Id DMA_DREQ_ID_*


[Expand]
GPIO pin GPIO_PIN_*


[Expand]
GPIO function GPIO_FUNCTION_*


[Expand]
GPIO level GPIO_LEVEL_*


[Expand]
GPIO pull GPIO_PULL_*


[Expand]
GPIO trigger GPIO_TRIGGER_*


[Expand]
Virtual GPIO pin VIRTUAL_GPIO_PIN_*


[Expand]
Virtual GPIO function VIRTUAL_GPIO_FUNCTION_*


[Expand]
Serial baud rate SERIAL_BAUD_RATE_*


[Expand]
Serial data bit SERIAL_DATA_*


[Expand]
Serial stop bit SERIAL_STOP_*


[Expand]
Serial parity SERIAL_PARITY_*


[Expand]
Serial flow control SERIAL_FLOW_*


[Expand]
I2C address I2C_ADDRESS_*


[Expand]
SPI mode SPI_MODE_*


[Expand]
SPI chip select SPI_CS_*


[Expand]
SPI clock phase (CPHA) SPI_CLOCK_PHASE_*


[Expand]
SPI clock polarity (CPOL) SPI_CLOCK_POLARITY_*


[Expand]
SPI chip select polarity (CSPOL) SPI_CS_POLARITY_*


[Expand]
Power Id POWER_ID_*


[Expand]
Power state POWER_STATE_*


[Expand]
Clock Id CLOCK_ID_*


[Expand]
Clock state CLOCK_STATE_*


[Expand]
Turbo Id TURBO_ID_*


[Expand]
Voltage Id VOLTAGE_ID_*


[Expand]
Temperature Id TEMPERATURE_ID_*


[Expand]
Console direction CONSOLE_DIRECTION_*


[Expand]
Console position CONSOLE_POSITION_*


[Expand]
Framebuffer depth FRAMEBUFFER_DEPTH_*


[Expand]
Framebuffer pixel order FRAMEBUFFER_ORDER_*


[Expand]
Framebuffer alpha mode FRAMEBUFFER_MODE_*


[Expand]
Framebuffer rotation FRAMEBUFFER_ROTATION_*


[Expand]
Log level LOG_LEVEL_*


[Expand]
Logging protocol LOGGING_PROTOCOL_*


[Expand]
Logging facility LOGGING_FACILITY_*


[Expand]
Logging severity LOGGING_SEVERITY_*


[Expand]
Handle type HANDLE_TYPE_*


[Expand]
Filesystem cache mode FILESYS_CACHE_MODE_*


[Expand]
Cursor arrow CURSOR_ARROW_*


Type definitions


None defined

Public variables


None defined

Function declarations


None defined


Return to Unit Reference