This section describes the classes CMachineInfo
and CKernelOptions
, which provide information about the Raspberry Pi model, on which the application is running, and the runtime options, which can be defined in the file cmdline.txt on the SD card.
Normally there is exactly one instance of the class CMachineInfo
in the system, which is created by the Circle system initialization code. If another instance is created, it acts as an alias for the first instance.
- MachineModelA
- MachineModelBRelease1MB256
- MachineModelBRelease2MB256
- MachineModelBRelease2MB512
- MachineModelAPlus
- MachineModelBPlus
- MachineModelZero
- MachineModelZeroW
- MachineModelZero2W
- MachineModel2B
- MachineModel3B
- MachineModel3APlus
- MachineModel3BPlus
- MachineModelCM
- MachineModelCM3
- MachineModelCM3Plus
- MachineModel4B
- MachineModel400
- MachineModelCM4
- MachineModelUnknown
- SoCTypeBCM2835
- SoCTypeBCM2836
- SoCTypeBCM2837
- SoCTypeBCM2711
- SoCTypeUnknown
- CLOCK_ID_CORE
- CLOCK_ID_ARM
- CLOCK_ID_UART
- CLOCK_ID_EMMC
- CLOCK_ID_EMMC2
The class CKernelOptions
provides the values of runtime options, which can be defined in the file cmdline.txt on the SD card. The supported options are listed in doc/cmdline.txt. There is exactly one or no instance of this class in the system. Only relatively simple programs can work without an instance of CKernelOptions
.