Return
|
The current number of clock seconds
|
Note
|
This forms the system clock
|
[Expand]
function ClockGetTime:Int64;
Description: Get the current system time in 100 nanosecond ticks since 1/1/1601
Return
|
The current system time
|
Note
|
This is the same time format as Windows FILE_TIME and is intended to allow compatibility with file system functions etc. By default the time returned by this function is considered to be UTC but the actual conversion between UTC and local time is handled at a higher level.
|
[Expand]
function ClockSetTime(const Time:Int64; RTC:Boolean):Int64;
Description: Set the current system time in 100 nanosecond ticks since 1/1/1601
Time
|
The time to be set
|
RTC
|
Set the default RTC (real time clock) if available
|
Return
|
The system time after setting
|
Note
|
This is the same time format as Windows FILE_TIME and is intended to allow compatibility with file system functions etc. By default the time passed to this function is considered to be UTC but the actual conversion between UTC and local time is handled at a higher level.
|
[Expand]
function ClockGetCount:LongWord; inline;
Description: Gets the current system clock count (32 least significant bits of total)
Note
|
This will normally come from the free running system timer in the board and is useful as a form of tick count but not for time keeping because the actual rate at which this increments is dependent on the system timer clock frequency of the specific board and may not be a measure of time in its raw form.
|
[Expand]
function ClockGetTotal:Int64; inline;
Description: Gets the total system clock count
Note
|
This will normally come from the free running system timer in the board and is useful as a form of tick count but not for time keeping because the actual rate at which this increments is dependent on the system timer clock frequency of the specific board and may not be a measure of time in its raw form.
|
[Expand]
function ClockUpdateOffset:LongWord; inline;
Description: Update the system time offset between UTC and Local
[Expand]
function ClockGetRate(ClockId:LongWord):LongWord; inline;
Description: Get the clock rate in Hz of the specified Clock
[Expand]
function ClockSetRate(ClockId,Rate:LongWord; Turbo:Boolean):LongWord; inline;
Description: Set the clock rate in Hz of the specified Clock
[Expand]
function ClockGetState(ClockId:LongWord):LongWord; inline;
Description: Get the state of the specified Clock
[Expand]
function ClockSetState(ClockId,State:LongWord):LongWord; inline;
Description: Set the state of the specified Clock
[Expand]
function ClockGetMinRate(ClockId:LongWord):LongWord; inline;
Description: Get the minimum clock rate in Hz of the specified Clock
[Expand]
function ClockGetMaxRate(ClockId:LongWord):LongWord; inline;
Description: Get the maximum clock rate in Hz of the specified Clock
Turbo functions
[Expand]
function TurboGetState(TurboId:LongWord):LongWord; inline;
Description: Get the Turbo state (0 equals Off/1 equals On) of the specified device
[Expand]
function TurboSetState(TurboId,State:LongWord):LongWord; inline;
Description: Set the Turbo state (0 equals Off/1 equals On) of the specified device
Voltage functions
[Expand]
function VoltageGetValue(VoltageId:LongWord):LongWord; inline;
Description: Get the current voltage level of the specified device
[Expand]
function VoltageSetValue(VoltageId,Value:LongWord):LongWord; inline;
Description: Set the current voltage level of the specified device
[Expand]
function VoltageGetMinValue(VoltageId:LongWord):LongWord; inline;
Description: Get the minimum voltage level of the specified device
[Expand]
function VoltageGetMaxValue(VoltageId:LongWord):LongWord; inline;
Description: Get the maximum voltage level of the specified device
Temperature functions
[Expand]
function TemperatureGetCurrent(TemperatureId:LongWord):LongWord; inline;
Description: Get the current temperature in thousandths of a degree C of the specified device
[Expand]
function TemperatureGetMaximum(TemperatureId:LongWord):LongWord; inline;
Description: Get the maximum temperature in thousandths of a degree C of the specified device
GPU memory functions
[Expand]
function GPUMemoryAllocate(Length,Alignment,Flags:LongWord):THandle; inline;
Description: Allocate memory from the GPU
[Expand]
function GPUMemoryRelease(Handle:THandle):LongWord; inline;
Description: Release memory allocated from the GPU
[Expand]
function GPUMemoryLock(Handle:THandle):LongWord; inline;
Description: Lock memory allocated from the GPU and return an address
[Expand]
function GPUMemoryUnlock(Handle:THandle):LongWord; inline;
Description: Unlock memory allocated from the GPU
GPU miscellaneous functions
[Expand]
function GPUExecuteCode(Address:Pointer; R0,R1,R2,R3,R4,R5:LongWord):LongWord; inline;
Description: Execute a block of code on the GPU
[Expand]
function DispmanxHandleGet(Resource:THandle):THandle; inline;
Description: Convert a Dispmanx Resouse handle to a Memory handle (Which can be passed to Lock/Unlock above)
[Expand]
function EDIDBlockGet(Block:LongWord; Buffer:Pointer; Length:LongWord):LongWord; inline;
Description: Get an EDID block from HDMI
Framebuffer functions
[Expand]
function FramebufferAvailable:Boolean; inline;
Description: Check if a framebuffer device is currently available
[Expand]
function FramebufferAllocate(Alignment:LongWord; var Address,Length:LongWord):LongWord; inline;
Description: Allocate a new Framebuffer
[Expand]
function FramebufferRelease:LongWord; inline;
Description: Release the current Framebuffer
[Expand]
function FramebufferSetState(State:LongWord):LongWord; inline;
Description: Set the current Framebuffer (Display) state (0 for Off/1 for On)
[Expand]
function FramebufferGetDimensions(var Width,Height,Top,Bottom,Left,Right:LongWord):LongWord; inline;
Description: Get the default Dimensions of the Framebuffer (Physical Width, Height and Overscan Top, Bottom, Left, Right in Pixels)
[Expand]
function FramebufferGetPhysical(var Width,Height:LongWord):LongWord; inline;
Description: Get the Physical Framebuffer Width and Height in Pixels
Note
|
The "physical" size is the size of the allocated buffer in memory, not the resolution of the video signal sent to the display device
|
[Expand]
function FramebufferSetPhysical(var Width,Height:LongWord):LongWord; inline;
Description: Set the Physical Framebuffer Width and Height in Pixels
[Expand]
function FramebufferTestPhysical(var Width,Height:LongWord):LongWord; inline;
Description: Test the Physical Framebuffer Width and Height in Pixels
[Expand]
function FramebufferGetVirtual(var Width,Height:LongWord):LongWord; inline;
Description: Get the Virtual Framebuffer Width and Height in Pixels
Note
|
The "virtual" size is the portion of buffer that is sent to the display device, not the resolution the buffer itself. This may be smaller than the allocated buffer size in order to implement panning
|
[Expand]
function FramebufferSetVirtual(var Width,Height:LongWord):LongWord; inline;
Description: Set the Virtual Framebuffer Width and Height in Pixels
[Expand]
function FramebufferTestVirtual(var Width,Height:LongWord):LongWord; inline;
Description: Test the Virtual Framebuffer Width and Height in Pixels
[Expand]
function FramebufferGetDepth(var Depth:LongWord):LongWord; inline;
Description: Get the Framebuffer Depth in Bits per Pixel
[Expand]
function FramebufferSetDepth(var Depth:LongWord):LongWord; inline;
Description: Set the Framebuffer Depth in Bits per Pixel
[Expand]
function FramebufferTestDepth(var Depth:LongWord):LongWord; inline;
Description: Test the Framebuffer Depth in Bits per Pixel
[Expand]
function FramebufferGetPixelOrder(var Order:LongWord):LongWord; inline;
Description: Get the Framebuffer Pixel Order (0 = BGR/1 = RGB)
[Expand]
function FramebufferSetPixelOrder(var Order:LongWord):LongWord; inline;
Description: Set the Framebuffer Pixel Order (0 = BGR/1 = RGB)
[Expand]
function FramebufferTestPixelOrder(var Order:LongWord):LongWord; inline;
Description: Test the Framebuffer Pixel Order (0 = BGR/1 = RGB)
[Expand]
function FramebufferGetAlphaMode(var Mode:LongWord):LongWord; inline;
Description: Get the Framebuffer Alpha Mode
[Expand]
function FramebufferSetAlphaMode(var Mode:LongWord):LongWord; inline;
Description: Set the Framebuffer Alpha Mode
[Expand]
function FramebufferTestAlphaMode(var Mode:LongWord):LongWord; inline;
Description: Test the Framebuffer Alpha Mode
[Expand]
function FramebufferGetPitch:LongWord; inline;
Description: Get the Framebuffer Pitch in Bytes per Line
[Expand]
function FramebufferGetOffset(var X,Y:LongWord):LongWord; inline;
Description: Get the Framebuffer Virtual Offset in Pixels
[Expand]
function FramebufferSetOffset(var X,Y:LongWord):LongWord; inline;
Description: Set the Framebuffer Virtual Offset in Pixels
[Expand]
function FramebufferTestOffset(var X,Y:LongWord):LongWord; inline;
Description: Test the Framebuffer Virtual Offset in Pixels
[Expand]
function FramebufferGetOverscan(var Top,Bottom,Left,Right:LongWord):LongWord; inline;
Description: Get the Framebuffer Top, Bottom, Left and Right Overscan in Pixels
[Expand]
function FramebufferSetOverscan(var Top,Bottom,Left,Right:LongWord):LongWord; inline;
Description: Set the Framebuffer Top, Bottom, Left and Right Overscan in Pixels
[Expand]
function FramebufferTestOverscan(var Top,Bottom,Left,Right:LongWord):LongWord; inline;
Description: Test the Framebuffer Top, Bottom, Left and Right Overscan in Pixels
[Expand]
function FramebufferGetPalette(Buffer:Pointer; Length:LongWord):LongWord; inline;
Description: Get the Framebuffer Palette in RGBA values
[Expand]
function FramebufferSetPalette(Start,Count:LongWord; Buffer:Pointer; Length:LongWord):LongWord; inline;
Description: Set the Framebuffer Palette in RGBA values
[Expand]
function FramebufferTestPalette(Start,Count:LongWord; Buffer:Pointer; Length:LongWord):LongWord; inline;
Description: Test the Framebuffer Palette in RGBA values
[Expand]
function FramebufferTestVsync:LongWord; inline;
Description: Test the Framebuffer Vertical Sync (Where Applicable)
[Expand]
function FramebufferSetVsync:LongWord; inline;
Description: Set (Wait For) the Framebuffer Vertical Sync (Where Applicable)
[Expand]
function FramebufferSetBacklight(Brightness:LongWord):LongWord; inline;
Description: Set the Framebuffer Backlight brightness (Where Applicable)
Touch functions
[Expand]
function TouchGetBuffer(var Address:LongWord):LongWord; inline;
Description: Get the Touchscreen memory buffer (Where Applicable)
Cursor functions
[Expand]
function CursorSetDefault:LongWord; inline;
Description: Set the default Cursor Info (Where Applicable)
[Expand]
function CursorSetInfo(Width,Height,HotspotX,HotspotY:LongWord; Pixels:Pointer; Length:LongWord):LongWord; inline;
Description: Set the Cursor Info (Width and Height, Hotspot and Pixel image)
[Expand]
function CursorSetState(Enabled:Boolean; X,Y:LongWord; Relative:Boolean):LongWord; inline;
Description: Set the Cursor State (Enabled, X and Y)
Relative
|
X, Y is relative to Display (Virtual) not Framebuffer (Physical)
|
DMA functions
[Expand]
function DMAAvailable:Boolean; inline;
Description: Check if DMA is currently available
[Expand]
function DMATransfer(Data:PDMAData; Direction,Peripheral:LongWord):LongWord; inline;
Description: Perform a DMA transfer using the list of DMA data blocks provided
Data
|
A linked list of DMA data blocks for the transfer
|
Direction
|
The direction of the DMA request (eg DMA_DIR_MEM_TO_MEM)
|
Peripheral
|
The peripheral Id for data request gating (eg DMA_DREQ_ID_NONE)
|
[Expand]
function DMAFillMemory(Dest:Pointer; Size:LongWord; Value:Byte):LongWord; inline;
Description: Fill memory at the destination address using DMA
Dest
|
The address to start the memory fill
|
Size
|
The size of memory to fill in bytes
|
Value
|
The value to fill the memory with
|
[Expand]
function DMACopyMemory(Source,Dest:Pointer; Size:LongWord):LongWord; inline;
Description: Copy memory from the source to the destination address using DMA
Source
|
The source address to start the memory copy
|
Dest
|
The destination address to start the memory copy
|
Size
|
The size of memory to copy in bytes
|
[Expand]
function DMAReadPeripheral(Address,Dest:Pointer; Size,Peripheral:LongWord):LongWord; inline;
Description: Read from a periperal address to the destination address using DMA
Address
|
The address of the periperhal register to read from
|
Source
|
The destination address to start writing to
|
Size
|
The size of the read in bytes
|
Peripheral
|
The peripheral Id for data request gating (eg DMA_DREQ_ID_UART_RX)
|
[Expand]
function DMAWritePeripheral(Source,Address:Pointer; Size,Peripheral:LongWord):LongWord; inline;
Description: Write to a peripheral address from the source address using DMA
Source
|
The source address to start reading from
|
Address
|
The address of the peripheral register to write to
|
Size
|
The size of the write in bytes
|
Peripheral
|
The peripheral Id for data request gating (eg DMA_DREQ_ID_UART_TX)
|
[Expand]
function DMAAllocateBuffer(Size:LongWord):Pointer; inline;
Description: Allocate a buffer compatible with DMA memory reads or writes
Size
|
The size of the buffer to allocate
|
[Expand]
function DMAAllocateBufferEx(var Size:LongWord):Pointer; inline;
Description: Allocate a buffer compatible with DMA memory reads or writes
Size
|
The size of the buffer to allocate (Updated on return to actual size)
|
[Expand]
function DMAReleaseBuffer(Buffer:Pointer):LongWord; inline;
Description: Release a buffer allocated with DMAAllocateBuffer
Buffer
|
The buffer to be released
|
[Expand]
function DMAGetChannels:LongWord; inline;
Description: Get the currently enabled DMA channel bitmap (If supported)
GPIO functions
[Expand]
function GPIOAvailable:Boolean; inline;
Description: Check if a GPIO device is available
Reg
|
The memory register to read from
|
Value
|
The value of the memory register
|
[Expand]
function GPIORead(Reg:LongWord):LongWord; inline;
Description: Perform a direct read from a GPIO register
Reg
|
The memory register to read from
|
Value
|
The value of the memory register
|
[Expand]
procedure GPIOWrite(Reg,Value:LongWord); inline;
Description: Perform a direct write to a GPIO register
Reg
|
The memory register to write to
|
Value
|
The value to write to the register
|
[Expand]
function GPIOInputGet(Pin:LongWord):LongWord; inline;
Description: Get the current state of a GPIO input pin
Pin
|
The pin to get the state for (eg GPIO_PIN_1)
|
Return
|
The current state (eg GPIO_LEVEL_HIGH) or GPIO_LEVEL_UNKNOWN on failure
|
[Expand]
function GPIOInputWait(Pin,Trigger,Timeout:LongWord):LongWord; inline;
Description: Wait for the state of a GPIO input pin to change
Pin
|
The pin to wait for the state to change (eg GPIO_PIN_1)
|
Trigger
|
The trigger event to wait for (eg GPIO_TRIGGER_HIGH)
|
Timeout
|
Number of milliseconds to wait for the change (INFINITE to wait forever)
|
Return
|
The state after the change (eg GPIO_LEVEL_HIGH) or GPIO_LEVEL_UNKNOWN on failure or timeout
|
[Expand]
function GPIOInputEvent(Pin,Trigger,Timeout:LongWord; Callback:TGPIOCallback; Data:Pointer):LongWord; inline;
Description: Schedule a function to be called when the state of a GPIO input pin changes
Pin
|
The pin to schedule the state change for (eg GPIO_PIN_1)
|
Trigger
|
The trigger event which will cause the function to be called (eg GPIO_TRIGGER_HIGH)
|
Timeout
|
The number of milliseconds before the scheduled trigger expires (INFINITE to never expire)
|
Callback
|
The function to be called when the trigger occurs
|
Data
|
A pointer to be pass to the function when the trigger occurs (Optional)
|
Return
|
ERROR_SUCCESS if the trigger was scheduled successfully or another error code on failure
|
Note
|
The pin and trigger that caused the event will be passed to the callback function
|
[Expand]
function GPIOOutputSet(Pin,Level:LongWord):LongWord; inline;
Description: Change the state of a GPIO output pin
Pin
|
The pin to change the state for (eg GPIO_PIN_1)
|
Level
|
The state to change the pin to (eg GPIO_LEVEL_HIGH)
|
Return
|
ERROR_SUCCESS if completed successfully or another error code on failure
|
[Expand]
function GPIOPullGet(Pin:LongWord):LongWord; inline;
Description: Get the current pull state of a GPIO pin
Pin
|
The pin to get the pull state for (eg GPIO_PIN_1)
|
Return
|
The current pull state of the pin (eg GPIO_PULL_UP) or GPIO_PULL_UNKNOWN on failure
|
[Expand]
function GPIOPullSelect(Pin,Mode:LongWord):LongWord; inline;
Description: Change the pull state of a GPIO pin
Pin
|
The pin to change the pull state for (eg GPIO_PIN_1)
|
Mode
|
The pull state to set for the pin (eg GPIO_PULL_UP)
|
Return
|
ERROR_SUCCESS if completed successfully or another error code on failure
|
[Expand]
function GPIOFunctionGet(Pin:LongWord):LongWord; inline;
Description: Get the current function of a GPIO pin
Pin
|
The pin to get the function for (eg GPIO_PIN_1)
|
Return
|
The current function of the pin (eg GPIO_FUNCTION_IN) or GPIO_FUNCTION_UNKNOWN on failure
|
[Expand]
function GPIOFunctionSelect(Pin,Mode:LongWord):LongWord; inline;
Description: Change the function of a GPIO pin
Pin
|
The pin to change the function for (eg GPIO_PIN_1)
|
Mode
|
The function to set for the pin (eg GPIO_FUNCTION_OUT)
|
Return
|
ERROR_SUCCESS if completed successfully or another error code on failure
|
Virtual GPIO functions
[Expand]
function VirtualGPIOInputGet(Pin:LongWord):LongWord; inline;
Description: Get the current state of a virtual GPIO input pin
Pin
|
The pin to get the state for (eg VIRTUAL_GPIO_PIN_1)
|
Return
|
The current state (eg GPIO_LEVEL_HIGH) or GPIO_LEVEL_UNKNOWN on failure
|
[Expand]
function VirtualGPIOOutputSet(Pin,Level:LongWord):LongWord; inline;
Description: To be documented
[Expand]
function VirtualGPIOFunctionSelect(Pin,Mode:LongWord):LongWord; inline;
Description: To be documented
SPI functions
[Expand]
function SPIAvailable:Boolean; inline;
Description: Check if an SPI device is available
[Expand]
function SPIStart(Mode,ClockRate,ClockPhase,ClockPolarity:LongWord):LongWord; inline;
Description: Start the default SPI device ready for writing and reading
Mode
|
The device mode to set (eg SPI_MODE_4WIRE)
|
ClockRate
|
The clock rate to set for the device
|
ClockPhase
|
The clock phase to set (eg SPI_CLOCK_PHASE_LOW)
|
ClockPolarity
|
The clock polarity to set (eg SPI_CLOCK_POLARITY_LOW)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIStop:LongWord; inline;
Description: Stop the default SPI device and terminate writing and reading
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIRead(ChipSelect:Word; Dest:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Read data from the default SPI device. Because SPI writes and then reads for each byte, dummy data will be written for each byte to be read.
ChipSelect
|
The chip select for the slave to read from (eg SPI_CS_0)
|
Dest
|
Pointer to a buffer to receive the data
|
Size
|
The size of the buffer
|
Count
|
The number of bytes read on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIWrite(ChipSelect:Word; Source:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write data to the default SPI device. Because SPI writes and then reads for each byte, received data will be discarded for each by written.
ChipSelect
|
The chip select for the slave to write to (eg SPI_CS_0)
|
Source
|
Pointer to a buffer of data to transmit
|
Size
|
The size of the buffer
|
Count
|
The number of bytes written on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIWriteRead(ChipSelect:Word; Source,Dest:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write data to and Read data from the default SPI device in one operation. Because SPI writes and then reads for each byte, both the source and dest buffers must be the same size.
ChipSelect
|
The chip select for the slave to write to and read from (eg SPI_CS_0)
|
Source
|
Pointer to a buffer of data to transmit
|
Dest
|
Pointer to a buffer to receive the data
|
Size
|
The size of the buffer
|
Count
|
The number of bytes written and read on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIGetMode:LongWord; inline;
Description: Get the device mode of the default SPI device
Return
|
The device mode or SPI_MODE_UNKNOWN on failure
|
[Expand]
function SPISetMode(Mode:LongWord):LongWord; inline;
Description: Set the device mode for the default SPI device
Mode
|
The device mode to set (eg SPI_MODE_4WIRE)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIGetClockRate(ChipSelect:Word):LongWord; inline;
Description: Get the clock rate of the default SPI device
ChipSelect
|
The chip select number to get clock rate from (SPI_CS_NONE for default)
|
Return
|
The clock rate in Hz or 0 on failure
|
[Expand]
function SPISetClockRate(ChipSelect:Word;ClockRate:LongWord):LongWord; inline;
Description: Set the clock rate for the default SPI device
ClockRate
|
The clock rate to set in Hz
|
ChipSelect
|
The chip select number to set clock rate for (SPI_CS_NONE for default)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIGetClockPhase:LongWord; inline;
Description: Get the clock phase of the default SPI device
Return
|
The clock phase or SPI_CLOCK_PHASE_UNKNOWN on failure
|
[Expand]
function SPISetClockPhase(ClockPhase:LongWord):LongWord; inline;
Description: Set the clock phase for the default SPI device
ClockPhase
|
The clock phase to set (eg SPI_CLOCK_PHASE_LOW)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIGetClockPolarity:LongWord; inline;
Description: Get the clock polarity of the default SPI device
Return
|
The clock polarity or SPI_CLOCK_POLARITY_UNKNOWN on failure
|
[Expand]
function SPISetClockPolarity(ClockPolarity:LongWord):LongWord; inline;
Description: Set the clock polarity for the default SPI device
ClockPolarity
|
The clock polarity to set (eg SPI_CLOCK_POLARITY_LOW)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function SPIGetSelectPolarity(ChipSelect:Word):LongWord; inline;
Description: Get the chip select polarity of the default SPI device
ChipSelect
|
The chip select number to get polarity from (SPI_CS_NONE for default)
|
Return
|
The chip select polarity or SPI_CS_POLARITY_UNKNOWN on failure
|
[Expand]
function SPISetSelectPolarity(ChipSelect:Word; SelectPolarity:LongWord):LongWord; inline;
Description: Set the chip select polarity for the default SPI device
ChipSelect
|
The chip select number to set polarity for (SPI_CS_NONE for default)
|
SelectPolarity
|
The chip select polarity to set (eg SPI_CS_POLARITY_LOW)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
I2C functions
[Expand]
function I2CAvailable:Boolean; inline;
Description: Check if an I2C device is available
[Expand]
function I2CStart(Rate:LongWord):LongWord; inline;
Description: Start the default I2C device ready for reading and writing
Rate
|
The clock rate to set for the device (0 to use the default rate)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CStop:LongWord; inline;
Description: Stop the default I2C device and terminate reading and writing
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CRead(Address:Word; Buffer:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Read data from the default I2C device
Address
|
The slave address to read from (I2C_ADDRESS_INVALID to use the current address)
|
Buffer
|
Pointer to a buffer to receive the data
|
Size
|
The size of the buffer
|
Count
|
The number of bytes read on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CWrite(Address:Word; Buffer:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write data to the default I2C device
Address
|
The slave address to write to (I2C_ADDRESS_INVALID to use the current address)
|
Buffer
|
Pointer to a buffer of data to transmit
|
Size
|
The size of the buffer
|
Count
|
The number of bytes written on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CWriteRead(Address:Word; Initial:Pointer; Len:LongWord; Data:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write data to and Read data from the default I2C device in one operation. Useful for devices that require a register address specified before a read (eg EEPROM devices)
Address
|
The slave address to write to (I2C_ADDRESS_INVALID to use the current address)
|
Initial
|
Pointer to the initial buffer to transmit
|
Len
|
The size of the initial buffer
|
Data
|
Pointer to a buffer to receive the data
|
Size
|
The size of the data buffer
|
Count
|
The number of bytes read on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CWriteWrite(Address:Word; Initial:Pointer; Len:LongWord; Data:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write 2 data blocks to the default I2C device in one operation. Useful for devices that require a register address specified before a write (eg EEPROM devices)
Address
|
The slave address to write to (I2C_ADDRESS_INVALID to use the current address)
|
Initial
|
Pointer to the initial buffer to transmit
|
Len
|
The size of the initial buffer
|
Data
|
Pointer to a buffer of data to transmit
|
Size
|
The size of the data buffer
|
Count
|
The number of bytes of data written on return
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CGetRate:LongWord; inline;
Description: Get the clock rate of the default I2C device
Return
|
The clock rate in Hz or 0 on failure
|
[Expand]
function I2CSetRate(Rate:LongWord):LongWord; inline;
Description: Set the clock rate for the default I2C device
Rate
|
The clock rate to set in Hz
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function I2CGetAddress:Word; inline;
Description: Get the slave address for the default I2C device
Return
|
The slave address or I2C_ADDRESS_INVALID on failure
|
[Expand]
function I2CSetAddress(Address:Word):LongWord; inline;
Description: Set the slave address for the default I2C device
Address
|
The slave address to set
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
PWM functions
[Expand]
function PWMAvailable:Boolean; inline;
Description: Check if a PWM device is available
[Expand]
function PWMStart:LongWord; inline;
Description: Start the default PWM device
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function PWMStop:LongWord; inline;
Description: Stop the default PWM device
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function PWMWrite(Value:LongWord):LongWord; inline;
Description: Write a value to the default PWM device
Value
|
The value to write
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
Note
|
The exact meaning of value may depend on the device and other configured options, in many cases the value will represent the "on" time of each pulse with regard to the duty cycle of the waveform output by the device
|
[Expand]
function PWMSetMode(Mode:LongWord):LongWord; inline;
Description: Set the mode for the default PWM device
Mode
|
The mode value to set (eg PWM_MODE_MARKSPACE)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function PWMSetRange(Range:LongWord):LongWord; inline;
Description: Set the range for the default PWM device
Range
|
The range value to set
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
Note
|
The exact meaning of range may depend on the device and other configured options, in many cases the range will represent the period of one full cycle of the waveform output by the device
|
[Expand]
function PWMSetFrequency(Frequency:LongWord):LongWord; inline;
Description: Set the clock frequency for the default PWM device
Frequency
|
The frequency to set in Hz
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
[Expand]
function PWMConfigure(DutyNS,PeriodNS:LongWord):LongWord; inline;
Description: Set the configuration of the default PWM device
DutyNS
|
The "on" time part of the cycle (Nanoseconds)
|
PeriodNS
|
The duration of one full cycle (Nanoseconds)
|
Return
|
ERROR_SUCCESS if completed or another error code on failure
|
RTC functions
[Expand]
function RTCAvailable:Boolean; inline;
Description: Check if a Real Time Clock (RTC) device is available
[Expand]
function RTCGetTime:Int64; inline;
Description: Get the current time from a Real Time Clock device
Note
|
Returned time is 100 nanosecond ticks since 1 January 1601. The same format as the ClockGetTime function.
|
[Expand]
function RTCSetTime(const Time:Int64):Int64; inline;
Description: Set the current time for a Real Time Clock device
Time
|
The time to be set
|
Return
|
The device time after setting (or 0 on failure)
|
Note
|
Time and returned time is 100 nanosecond ticks since 1 January 1601. The same format as the ClockSetTime function.
|
Serial functions
[Expand]
function SerialAvailable:Boolean; inline;
Description: Check if a Serial device is available
[Expand]
function SerialOpen(BaudRate,DataBits,StopBits,Parity,FlowControl,ReceiveDepth,TransmitDepth:LongWord):LongWord; inline;
Description: Open the default Serial device ready for sending and receiving
BaudRate
|
Baud rate for the connection (eg 9600, 57600, 115200 etc
|
DataBits
|
Size of the data (eg SERIAL_DATA_8BIT)
|
StopBits
|
Number of stop bits (eg SERIAL_STOP_1BIT)
|
Parity
|
Parity type for the data (eg SERIAL_PARITY_NONE)
|
FlowControl
|
Flow control for the connection (eg SERIAL_FLOW_NONE)
|
ReceiveDepth
|
Size of the receive buffer (0 = Default size)
|
TransmitDepth
|
Size of the transmit buffer (0 = Default size)
|
[Expand]
function SerialClose:LongWord; inline;
Description: Close the default Serial device and terminate sending and receiving
[Expand]
function SerialRead(Buffer:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Read data from the default Serial device
Buffer
|
Pointer to a buffer to receive the data
|
Size
|
The size of the buffer
|
Count
|
The number of bytes read on return
|
[Expand]
function SerialWrite(Buffer:Pointer; Size:LongWord; var Count:LongWord):LongWord; inline;
Description: Write data to the default Serial device
Buffer
|
Pointer to a buffer of data to transmit
|
Size
|
The size of the buffer
|
Count
|
The number of bytes written on return
|
Peripheral functions
[Expand]
function PeripheralGetBase:PtrUInt; inline;
Description: Get the base address of the peripherals
[Expand]
function PeripheralGetSize:LongWord; inline;
Description: Get the total size of the peripherals
[Expand]
function PeripheralRead(Base,Reg:LongWord):LongWord; inline;
Description: Read from a Peripheral register
[Expand]
procedure PeripheralWrite(Base,Reg,Value:LongWord); inline;
Description: Write to a Peripheral register
[Expand]
function LocalPeripheralGetBase:PtrUInt; inline;
Description: Get the base address of the local peripherals (Peripherals local to each CPU)
[Expand]
function LocalPeripheralGetSize:LongWord; inline;
Description: Get the total size of the local peripherals (Peripherals local to each CPU)
System functions
[Expand]
function GetSP:PtrUInt; inline;
Description: Get the current stack pointer (SP)
[Expand]
function GetPC:PtrUInt; inline;
Description: Get the current program counter (PC)
[Expand]
function GetIRQ:Boolean; inline;
Description: Get Interrupts (IRQ) state
Return
|
True is enabled, False if disabled
|
[Expand]
procedure EnableIRQ; inline;
Description: Enable Interrupts (IRQ) unconditionally
[Expand]
procedure DisableIRQ; inline;
Description: Disable Interrupts (IRQ) unconditionally
[Expand]
function SaveIRQ:TIRQMask; inline;
Description: Disable Interrupts (IRQ) and return the previous state
Return
|
IRQ state when called
|
[Expand]
function RestoreIRQ(IRQMask:TIRQMask):TIRQMask; inline;
Description: Restore Interrupts (IRQ) to a previous state
IRQMask
|
IRQ state to restore
|
Return
|
IRQ state when called
|
[Expand]
function GetFIQ:Boolean; inline;
Description: Get Fast Interrupts (FIQ) state
Return
|
True is enabled, False if disabled
|
[Expand]
procedure EnableFIQ; inline;
Description: Enable Fast Interrupts (FIQ) unconditionally
[Expand]
procedure DisableFIQ; inline;
Description: Disable Fast Interrupts (FIQ) unconditionally
[Expand]
function SaveFIQ:TFIQMask; inline;
Description: Disable Fast Interrupts (FIQ) and return the previous state
Return
|
FIQ state when called
|
[Expand]
function RestoreFIQ(FIQMask:TFIQMask):TFIQMask; inline;
Description: Restore Fast Interrupts (FIQ) to a previous state
FIQMask
|
FIQ state to restore
|
Return
|
FIQ state when called
|
[Expand]
procedure EnableIRQFIQ; inline;
Description: Enable Interrupts and Fast Interrupts (IRQ/FIQ) unconditionally
[Expand]
procedure DisableIRQFIQ; inline;
Description: Disable Interrupts and Fast Interrupts (IRQ/FIQ) unconditionally
[Expand]
function SaveIRQFIQ:TIRQFIQMask; inline;
Description: Disable Interrupts and Fast Interrupts (IRQ/FIQ) and return the previous state
Return
|
IRQ/FIQ state when called
|
[Expand]
function RestoreIRQFIQ(IRQFIQMask:TIRQFIQMask):TIRQFIQMask; inline;
Description: Restore Interrupts and Fast Interrupts (IRQ/FIQ) to a previous state
IRQFIQMask
|
IRQ/FIQ state to restore
|
Return
|
IRQ/FIQ state when called
|
[Expand]
function GetAbort:Boolean; inline;
Description: Get Abort state
Return
|
True is enabled, False if disabled
|
[Expand]
procedure EnableAbort; inline;
Description: Enable Abort unconditionally
[Expand]
procedure DisableAbort; inline;
Description: Disable Abort unconditionally
[Expand]
function SaveAbort:TAbortMask; inline;
Description: Disable Abort and return the previous state
Return
|
Abort state when called
|
[Expand]
function RestoreAbort(AbortMask:TAbortMask):TAbortMask; inline;
Description: Restore Abort to a previous state
AbortMask
|
Abort state to restore
|
Return
|
Abort state when called
|
[Expand]
procedure Halt; inline;
Description: Halt the current processor
[Expand]
procedure Pause; inline;
Description: Pause the current processor and wait for an Event or Interrupt (Where Applicable)
[Expand]
function HaltThread(ExitCode:LongWord):LongWord; inline;
Description: Halt the current thread
[Expand]
procedure SendEvent; inline;
Description: Send a signal that an Event has occurred (Where Applicable)
[Expand]
procedure WaitForEvent; inline;
Description: Wait for an Event to occur (Where Applicable)
[Expand]
procedure WaitForInterrupt; inline;
Description: Wait for an Interrupt to occur (Where Applicable)
[Expand]
procedure ReadMemoryBarrier; inline;
Description: Perform a Read Memory Barrier operation (Where Applicable)
[Expand]
procedure WriteMemoryBarrier; inline;
Description: Perform a Write Memory Barrier operation (Where Applicable)
[Expand]
procedure DataMemoryBarrier; inline;
Description: Perform a Data Memory Barrier operation (Where Applicable)
[Expand]
procedure DataSynchronizationBarrier; inline;
Description: Perform a Data Synchronization Barrier operation (Where Applicable)
[Expand]
procedure InstructionMemoryBarrier; inline;
Description: Perform an Instruction Memory Barrier operation (Where Applicable)
[Expand]
procedure InvalidateTLB; inline;
Description: Perform an Invalidate Entire TLB operation (Where Applicable)
[Expand]
procedure InvalidateDataTLB; inline;
Description: Perform an Invalidate Data TLB operation (Where Applicable)
[Expand]
procedure InvalidateInstructionTLB; inline;
Description: Perform an Invalidate Instruction TLB operation (Where Applicable)
[Expand]
procedure InvalidateCache; inline;
Description: Perform an Invalidate Entire Cache operation (Where Applicable)
[Expand]
procedure CleanDataCache; inline;
Description: Perform a Clean Data Cache operation (Where Applicable)
[Expand]
procedure InvalidateDataCache; inline;
Description: Perform an Invalidate Data Cache operation (Where Applicable)
[Expand]
procedure CleanAndInvalidateDataCache; inline;
Description: Perform a Clean and Invalidate Data Cache operation (Where Applicable)
[Expand]
procedure InvalidateInstructionCache; inline;
Description: Perform an Invalidate Instruction Cache operation (Where Applicable)
[Expand]
procedure CleanDataCacheRange(Address,Size:LongWord); inline;
Description: Perform a Clean Data Cache Range operation (Where Applicable)
[Expand]
procedure InvalidateDataCacheRange(Address,Size:LongWord); inline;
Description: Perform an Invalidate Data Cache Range operation (Where Applicable)
[Expand]
procedure CleanAndInvalidateDataCacheRange(Address,Size:LongWord); inline;
Description: Perform a Clean and Invalidate Data Cache Range operation (Where Applicable)
[Expand]
procedure InvalidateInstructionCacheRange(Address,Size:LongWord); inline;
Description: Perform an Invalidate Instruction Cache Range operation (Where Applicable)
[Expand]
procedure FlushPrefetchBuffer; inline;
Description: Perform a Flush Prefetch Buffer operation (Where Applicable)
[Expand]
procedure FlushBranchTargetCache; inline;
Description: Perform a Flush Entire Branch Target Cache operation (Where Applicable)
[Expand]
procedure ContextSwitch(OldStack,NewStack:Pointer; NewThread:TThreadHandle); inline;
Description: Perform a Context Switch from one thread to another
[Expand]
procedure ContextSwitchIRQ(OldStack,NewStack:Pointer; NewThread:TThreadHandle); inline;
Description: Perform a Context Switch from one thread to another from an IRQ handler
[Expand]
procedure ContextSwitchFIQ(OldStack,NewStack:Pointer; NewThread:TThreadHandle); inline;
Description: Perform a Context Switch from one thread to another from an FIQ handler
[Expand]
procedure ContextSwitchSWI(OldStack,NewStack:Pointer; NewThread:TThreadHandle); inline;
Description: Perform a Context Switch from one thread to another from a software interrupt handler
[Expand]
function InterlockedOr(var Target:LongInt;Value:LongInt):LongInt; inline;
Description: Perform an atomic OR operation
[Expand]
function InterlockedXor(var Target:LongInt; Value:LongInt):LongInt; inline;
Description: Perform an atomic XOR operation
[Expand]
function InterlockedAnd(var Target:LongInt; Value:LongInt):LongInt; inline;
Description: Perform an atomic AND operation
[Expand]
function InterlockedDecrement(var Target:LongInt):LongInt; inline;
Description: Perform an atomic decrement operation
[Expand]
function InterlockedIncrement(var Target:LongInt):LongInt; inline;
Description: Perform an atomic increment operation
[Expand]
function InterlockedExchange(var Target:LongInt; Source:LongInt):LongInt; inline;
Description: Perform an atomic exchange operation
[Expand]
function InterlockedAddExchange(var Target:LongInt; Source:LongInt):LongInt; inline;
Description: Perform an atomic add and exchange operation
[Expand]
function InterlockedCompareExchange(var Target:LongInt; Source,Compare:LongInt):LongInt; inline;
Description: Perform an atomic compare and exchange operation
[Expand]
function PageTableGetBase:PtrUInt; inline;
Description: Get the base address of the first level page table
[Expand]
function PageTableGetSize:LongWord; inline;
Description: Get the size of the first level page table
[Expand]
function PageTableGetEntry(Address:PtrUInt):TPageTableEntry; inline;
Description: Get the Page Table entry that corresponds to the supplied virtual address
[Expand]
function PageTableSetEntry(const Entry:TPageTableEntry):LongWord; inline;
Description: Set the Page Table entry that corresponds to the supplied virtual address
[Expand]
function PageTablesGetAddress:PtrUInt; inline;
Description: Get the address of the second level page tables
[Expand]
function PageTablesGetLength:LongWord; inline;
Description: Get the size of the second level page tables
[Expand]
function PageTablesGetCount:LongWord; inline;
Description: Get the number of second level page tables
[Expand]
function PageTablesGetShift:LongWord; inline;
Description: Get the multiplier to convert count to actual size of the second level page tables
[Expand]
function PageTablesGetNext:PtrUInt; inline;
Description: Get the address of the next available second level page table
[Expand]
function PageTablesGetUsed:LongWord; inline;
Description: Get the number of used second level page tables
[Expand]
function PageTablesGetFree:LongWord; inline;
Description: Get the number of available second level page tables
[Expand]
function VectorTableGetBase:PtrUInt; inline;
Description: Get the base address of the interrupt vector table
[Expand]
function VectorTableGetSize:LongWord; inline;
Description: Get the size in bytes of the interrupt vector table
[Expand]
function VectorTableGetCount:LongWord; inline;
Description: Get the number of entries in the interrupt vector table
[Expand]
function VectorTableGetEntry(Number:LongWord):PtrUInt; inline;
Description: Get the interrupt vector table entry that corresponds to the supplied number
[Expand]
function VectorTableSetEntry(Number:LongWord; Address:PtrUInt):LongWord; inline;
Description: Set the interrupt vector table entry that corresponds to the supplied number
Exception functions
[Expand]
procedure HardwareException(AType:LongWord; Address,Frame:Pointer);
Description: To be documented
[Expand]
procedure UnhandledException(Obj:TObject; Addr:CodePointer; FrameCount:LongInt; Frames:PCodePointer); {[public,alias:'FPC_BREAK_UNHANDLED_EXCEPTION'];}
Description: To be documented
Text IO functions
[Expand]
procedure TextIOOpen(var F:Text; AWrite:TTextIOWriteChar; ARead:TTextIOReadChar; AMode:LongInt; AUserData:Pointer);
Description: To be documented
[Expand]
procedure TextIOClose(var T:TextRec);
Description: To be documented
[Expand]
procedure TextIORead(var T:TextRec);
Description: To be documented
[Expand]
procedure TextIOWrite(var T:TextRec);
Description: To be documented
[Expand]
function TextIOReadData(ARead:TTextIOReadChar; AUserData:Pointer; ABuffer:PChar; ACount:LongInt):LongInt;
Description: To be documented
Console functions
[Expand]
function ConsoleGetKey(var ACh:Char; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsolePeekKey(var ACh:Char; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleWriteChar(ACh:Char; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleReadChar(var ACh:Char; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleReadWideChar(var ACh:WideChar; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleHideMouse(AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleShowMouse(X,Y:LongWord; AUserData:Pointer):Boolean; inline;
Description: To be documented
[Expand]
function ConsoleReadMouse(var X,Y,Buttons:LongWord; AUserData:Pointer):Boolean; inline;
Description: To be documented
CodePage functions
[Expand]
function CodePageToWideChar(Ch:Char):WideChar; inline;
Description: To be documented
[Expand]
function WideCharToCodePage(Ch:WideChar):Char; inline;
Description: To be documented
Name functions
[Expand]
function HostGetName:String; inline;
Description: To be documented
[Expand]
function HostSetName(const AName:String):Boolean; inline;
Description: To be documented
[Expand]
function HostGetDomain:String; inline;
Description: To be documented
[Expand]
function HostSetDomain(const ADomain:String):Boolean; inline;
Description: To be documented
Logging functions
[Expand]
procedure LoggingOutput(const AText:String); inline;
Description: To be documented
[Expand]
procedure LoggingOutputEx(AFacility,ASeverity:LongWord; const ATag,AContent:String); inline;
Description: To be documented
Utility functions
[Expand]
function FirstBitSet(Value:LongWord):LongWord; inline;
Description: Find the first set bit in a nonzero 32 bit value
Note
|
Returns 31 for MSB and 0 for LSB (0xFFFFFFFF/-1 if no bits are set)
|
[Expand]
function CountLeadingZeros(Value:LongWord):LongWord; inline;
Description: Count the number of leading 0 bits in a nonzero 32 bit value
Note
|
Returns 32 if no bits are set
|
[Expand]
function PhysicalToIOAddress(Address:Pointer):LongWord; inline;
Description: Convert Physical address to an IO addresses (Where Applicable)
[Expand]
function IOAddressToPhysical(Address:Pointer):LongWord; inline;
Description: Convert an IO address to a Physical address (Where Applicable)
[Expand]
function PhysicalToBusAddress(Address:Pointer):LongWord; inline;
Description: Convert a Physical address to a Bus address (Where Applicable)
[Expand]
function BusAddressToPhysical(Address:Pointer):LongWord; inline;
Description: Convert a Bus address to a Physical address (Where Applicable)
[Expand]
procedure NanosecondDelay(Nanoseconds:LongWord);
Description: Non sleep wait for a number of nanoseconds
Nanseconds
|
Number of nanoseconds to wait
|
[Expand]
procedure MicrosecondDelay(Microseconds:LongWord);
Description: Non sleep wait for a number of microseconds
Milliseconds
|
Number of microseconds to wait
|
[Expand]
procedure MillisecondDelay(Milliseconds:LongWord);
Description: Non sleep wait for a number of milliseconds
Milliseconds
|
Number of milliseconds to wait
|
[Expand]
procedure NanosecondDelayEx(Nanoseconds:LongWord; Wait:Boolean);
Description: Non sleep wait for a number of nanoseconds
Nanoseconds
|
Number of nanoseconds to wait
|
Wait
|
Use WaitForEvent on each loop to reduce power consumption
|
Note
|
Not suitable for use by interrupt handlers if wait is true
|
[Expand]
procedure MicrosecondDelayEx(Microseconds:LongWord; Wait:Boolean);
Description: Non sleep wait for a number of microseconds
Milliseconds
|
Number of milliseconds to wait
|
Wait
|
Use WaitForEvent on each loop to reduce power consumption
|
Note
|
Not suitable for use by interrupt handlers if wait is true
|
[Expand]
procedure MillisecondDelayEx(Milliseconds:LongWord; Wait:Boolean);
Description: Non sleep wait for a number of milliseconds
Milliseconds
|
Number of milliseconds to wait
|
Wait
|
Use WaitForEvent on each loop to reduce power consumption
|
Note
|
Not suitable for use by interrupt handlers if wait is true
|
System random functions
[Expand]
procedure SystemRandomize;
Description: To be documented
Dos conversion functions
[Expand]
function DosGetMsCount:Int64;
Description: To be documented
Dos info/date/time functions
[Expand]
function DosDosVersion:Word;
Description: To be documented
[Expand]
procedure DosGetDate(var Year,Month,MDay,WDay:Word);
Description: To be documented
[Expand]
procedure DosSetDate(Year,Month,Day:Word);
Description: To be documented
[Expand]
procedure DosGetTime(var Hour,Minute,Second,Sec100:Word);
Description: To be documented
[Expand]
procedure DosSetTime(Hour,Minute,Second,Sec100:Word);
Description: To be documented
Dos environment functions
[Expand]
function DosEnvCount:Longint;
Description: To be documented
[Expand]
function DosEnvStr(Index:LongInt):ShortString;
Description: To be documented
[Expand]
function DosGetEnv(EnvVar:ShortString):ShortString;
Description: To be documented
SysUtils tick functions
[Expand]
function SysUtilsGetTickCount:LongWord;
Description: To be documented
[Expand]
function SysUtilsGetTickCount64:QWord;
Description: To be documented
SysUtils locale functions
[Expand]
procedure SysUtilsGetLocalTime(var SystemTime:TSystemTime);
Description: Get the current local time as a SystemTime value
Note
|
Includes timezone offset if configured
|
[Expand]
procedure SysUtilsSetLocalTime(const SystemTime:TSystemTime);
Description: Set the current local time from a SystemTime value
Note
|
Includes timezone offset if configured
|
[Expand]
function SysUtilsGetLocalTimeOffset:Integer;
Description: Get the current local time offset value
Platform helper functions
[Expand]
procedure PlatformLog(Level:LongWord; const AText:String);
Description: To be documented
[Expand]
procedure PlatformLogInfo(const AText:String);
Description: To be documented
[Expand]
procedure PlatformLogError(const AText:String);
Description: To be documented
[Expand]
procedure PlatformLogDebug(const AText:String);
Description: To be documented
Return to
Unit Reference