-
Notifications
You must be signed in to change notification settings - Fork 13
Hardware Infos
This category contains functions for retrieving hardware information such as memory usage, CPU info, etc. More...
| Type | Name |
|---|---|
| struct |
fplARMCPUCapabilities Container storing the capabilities of an ARM CPU. More... |
| struct |
fplCPUCapabilities Container storing the capabilities of a CPU. More... |
| union |
fplCPUIDLeaf Container representing the 4-registers for a CPU-Leaf (EAX, EBX, ECX, EDX). More... |
| struct |
fplX86CPUCapabilities Container storing the capabilities of an x86 CPU. More... |
| Type | Name |
|---|---|
| enum |
fplCPUArchType { fplCPUArchType_Unknown , fplCPUArchType_x86 , fplCPUArchType_x86_64 , fplCPUArchType_x64 , fplCPUArchType_Arm32 , fplCPUArchType_Arm64 , fplCPUArchType_First , fplCPUArchType_Last } An enumeration of architecture types. More... |
| enum |
fplCPUCapabilitiesType { fplCPUCapabilitiesType_Unknown , fplCPUCapabilitiesType_X86 , fplCPUCapabilitiesType_ARM , fplCPUCapabilitiesType_First , fplCPUCapabilitiesType_Last } An enumeration of CPU types. More... |
| Type | Name |
|---|---|
| fpl_platform_api fplCPUArchType |
fplCPUGetArchitecture (void) Gets the processor architecture type. |
| fpl_common_api const char * |
fplCPUGetArchName (const fplCPUArchType type) Gets the string representation of the given architecture type. |
| fpl_common_api bool |
fplCPUGetCapabilities (fplCPUCapabilities *outCaps) Gets the capabilities of the processor. |
| fpl_platform_api size_t |
fplCPUGetCoreCount (void) Retrieves the total number of processor cores. |
| fpl_common_api size_t |
fplCPUGetName (char *destBuffer, const size_t maxDestBufferLen) Retrieves the name of the processor. |
| fpl_common_api bool |
fplCPUID (const uint32_t functionId, fplCPUIDLeaf *outLeaf) Queries the x86 CPUID leaf register (EAX, EBX, ECX, EDX) for the given function id. |
| fpl_common_api uint64_t |
fplCPURDTSC (void) Reads the current time stamp counter (RDTSC). |
| fpl_common_api uint64_t |
fplCPUXCR0 (void) Gets the x86 extended control register for index zero. |
| fpl_common_api const char * |
fplGetCPUCapabilitiesTypeName (const fplCPUCapabilitiesType type) Gets the name of the specified fplCPUCapabilitiesType. |
This category contains functions for retrieving hardware information such as memory usage, CPU info, etc.
enum fplCPUArchTypeAn enumeration of architecture types.
| Name | Description |
|---|---|
| fplCPUArchType_Unknown | Unknown architecture. |
| fplCPUArchType_x86 | X86 architecture. |
| fplCPUArchType_x86_64 | X86 with 64-bit architecture. |
| fplCPUArchType_x64 | X64 only architecture. |
| fplCPUArchType_Arm32 | ARM32 architecture. |
| fplCPUArchType_Arm64 | ARM64 architecture. |
| fplCPUArchType_First | First fplCPUArchType. |
| fplCPUArchType_Last | Last fplCPUArchType. |
Definition at line 5547 of file final_platform_layer.h.
enum fplCPUCapabilitiesTypeAn enumeration of CPU types.
| Name | Description |
|---|---|
| fplCPUCapabilitiesType_Unknown | Unknown type. |
| fplCPUCapabilitiesType_X86 | x86 type. |
| fplCPUCapabilitiesType_ARM | ARM type. |
| fplCPUCapabilitiesType_First | First fplCPUCapabilitiesType. |
| fplCPUCapabilitiesType_Last | Last fplCPUCapabilitiesType. |
Definition at line 5571 of file final_platform_layer.h.
fpl_platform_api fplCPUArchType fplCPUGetArchitecture ( void )Gets the processor architecture type.
Returns: Returns the processor architecture enumeration value
See also: Get CPU architecture
fpl_common_api const char * fplCPUGetArchName ( const fplCPUArchType type)Gets the string representation of the given architecture type.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | type | The enumeration value fplCPUArchType. |
Returns: Returns a string for the given architecture type.
See also: Get CPU architecture
fpl_common_api bool fplCPUGetCapabilities ( fplCPUCapabilities * outCaps)Gets the capabilities of the processor.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | outCaps | Reference to the target structure fplCPUCapabilities. |
Returns: Returns true when the capabilities could be retrieved, false otherwise.
See also: Query CPU Capabilities
fpl_platform_api size_t fplCPUGetCoreCount ( void )Retrieves the total number of processor cores.
Returns: Returns the total number of processor cores.
See also: Get number of CPU-Cores
fpl_common_api size_t fplCPUGetName ( char * destBuffer, const size_t maxDestBufferLen )Retrieves the name of the processor.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | destBuffer | Reference to the destination character buffer. |
| [in] | maxDestBufferLen | The max length of the destination character buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Get the CPU Name
fpl_common_api bool fplCPUID ( const uint32_t functionId, fplCPUIDLeaf * outLeaf )Queries the x86 CPUID leaf register (EAX, EBX, ECX, EDX) for the given function id.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | functionId | The CPUID function id. |
| [out] | outLeaf | Reference to the target structure fplCPUIDLeaf. |
Returns: Returns true when CPUID is supported and the leaf was successfully updated, false otherwise.
Warning: This function works on X86 architectures only.
fpl_common_api uint64_t fplCPURDTSC ( void )Reads the current time stamp counter (RDTSC).
Returns: Returns the number of cycles since the system start or zero for non-x86 architectures.
Warning: This function works on X86 architectures only.
fpl_common_api uint64_t fplCPUXCR0 ( void )Gets the x86 extended control register for index zero.
Returns: Returns the extended control register on x86 or zero for non-x86 architectures.
Warning: This function works on X86 architectures only!
fpl_common_api const char * fplGetCPUCapabilitiesTypeName ( const fplCPUCapabilitiesType type)Gets the name of the specified fplCPUCapabilitiesType.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | type | The fplCPUCapabilitiesType. |
Returns: Returns the found name or
fpl_null (const char*).
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities