Package com.pi4j.system.impl
Class RaspiSystemInfoProvider
- java.lang.Object
-
- com.pi4j.system.impl.SystemInfoProviderBase
-
- com.pi4j.system.impl.DefaultSystemInfoProvider
-
- com.pi4j.system.impl.RaspiSystemInfoProvider
-
- All Implemented Interfaces:
SystemInfoProvider
public class RaspiSystemInfoProvider extends DefaultSystemInfoProvider implements SystemInfoProvider
Raspberry Pi platform specific implementation of the SystemInfoProvider interface.
-
-
Field Summary
Fields Modifier and Type Field Description static shortRPI_MFG_EGOMANstatic shortRPI_MFG_EMBESTstatic shortRPI_MFG_EMBEST2static shortRPI_MFG_SONYstatic shortRPI_MFG_UNKNOWNstatic shortRPI_MODEL_2Bstatic shortRPI_MODEL_3A_PLUSstatic shortRPI_MODEL_3Bstatic shortRPI_MODEL_3B_PLUSstatic shortRPI_MODEL_400static shortRPI_MODEL_4Bstatic shortRPI_MODEL_Astatic shortRPI_MODEL_A_PLUSstatic shortRPI_MODEL_ALPHAstatic shortRPI_MODEL_Bstatic shortRPI_MODEL_B_PLUSstatic shortRPI_MODEL_CMstatic shortRPI_MODEL_CM3static shortRPI_MODEL_CM3_PLUSstatic shortRPI_MODEL_CM4static shortRPI_MODEL_UNKNOWNstatic shortRPI_MODEL_ZEROstatic shortRPI_MODEL_ZERO_Wstatic shortRPI_PROC_BCM2835static shortRPI_PROC_BCM2836static shortRPI_PROC_BCM2837static shortRPI_RAM_1024static shortRPI_RAM_256static shortRPI_RAM_512
-
Constructor Summary
Constructors Constructor Description RaspiSystemInfoProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemInfo.BoardTypegetBoardType()longgetClockFrequencyArm()longgetClockFrequencyCore()longgetClockFrequencyDPI()longgetClockFrequencyEMMC()longgetClockFrequencyH264()longgetClockFrequencyHDMI()longgetClockFrequencyISP()longgetClockFrequencyPixel()longgetClockFrequencyPWM()longgetClockFrequencyUART()longgetClockFrequencyV3D()longgetClockFrequencyVEC()booleangetCodecH264Enabled()booleangetCodecMPG2Enabled()booleangetCodecWVC1Enabled()floatgetCpuTemperature()floatgetCpuVoltage()floatgetMemoryVoltageSDRam_C()floatgetMemoryVoltageSDRam_I()floatgetMemoryVoltageSDRam_P()StringgetModelName()StringgetOsFirmwareBuild()StringgetOsFirmwareDate()-
Methods inherited from class com.pi4j.system.impl.DefaultSystemInfoProvider
getBashVersionInfo, getBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuInfo, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemory, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getReadElfTag, getRevision, getSerial, hasReadElfTag, isHardFloatAbi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pi4j.system.SystemInfoProvider
getBogoMIPS, getCpuArchitecture, getCpuFeatures, getCpuImplementer, getCpuPart, getCpuRevision, getCpuVariant, getHardware, getJavaRuntime, getJavaVendor, getJavaVendorUrl, getJavaVersion, getJavaVirtualMachine, getMemoryBuffers, getMemoryCached, getMemoryFree, getMemoryShared, getMemoryTotal, getMemoryUsed, getOsArch, getOsName, getOsVersion, getProcessor, getRevision, getSerial, isHardFloatAbi
-
-
-
-
Field Detail
-
RPI_MODEL_A
public static final short RPI_MODEL_A
- See Also:
- Constant Field Values
-
RPI_MODEL_B
public static final short RPI_MODEL_B
- See Also:
- Constant Field Values
-
RPI_MODEL_A_PLUS
public static final short RPI_MODEL_A_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_B_PLUS
public static final short RPI_MODEL_B_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_2B
public static final short RPI_MODEL_2B
- See Also:
- Constant Field Values
-
RPI_MODEL_ALPHA
public static final short RPI_MODEL_ALPHA
- See Also:
- Constant Field Values
-
RPI_MODEL_CM
public static final short RPI_MODEL_CM
- See Also:
- Constant Field Values
-
RPI_MODEL_UNKNOWN
public static final short RPI_MODEL_UNKNOWN
- See Also:
- Constant Field Values
-
RPI_MODEL_3B
public static final short RPI_MODEL_3B
- See Also:
- Constant Field Values
-
RPI_MODEL_ZERO
public static final short RPI_MODEL_ZERO
- See Also:
- Constant Field Values
-
RPI_MODEL_CM3
public static final short RPI_MODEL_CM3
- See Also:
- Constant Field Values
-
RPI_MODEL_ZERO_W
public static final short RPI_MODEL_ZERO_W
- See Also:
- Constant Field Values
-
RPI_MODEL_3B_PLUS
public static final short RPI_MODEL_3B_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_3A_PLUS
public static final short RPI_MODEL_3A_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_CM3_PLUS
public static final short RPI_MODEL_CM3_PLUS
- See Also:
- Constant Field Values
-
RPI_MODEL_4B
public static final short RPI_MODEL_4B
- See Also:
- Constant Field Values
-
RPI_MODEL_400
public static final short RPI_MODEL_400
- See Also:
- Constant Field Values
-
RPI_MODEL_CM4
public static final short RPI_MODEL_CM4
- See Also:
- Constant Field Values
-
RPI_RAM_256
public static final short RPI_RAM_256
- See Also:
- Constant Field Values
-
RPI_RAM_512
public static final short RPI_RAM_512
- See Also:
- Constant Field Values
-
RPI_RAM_1024
public static final short RPI_RAM_1024
- See Also:
- Constant Field Values
-
RPI_MFG_SONY
public static final short RPI_MFG_SONY
- See Also:
- Constant Field Values
-
RPI_MFG_EGOMAN
public static final short RPI_MFG_EGOMAN
- See Also:
- Constant Field Values
-
RPI_MFG_EMBEST
public static final short RPI_MFG_EMBEST
- See Also:
- Constant Field Values
-
RPI_MFG_UNKNOWN
public static final short RPI_MFG_UNKNOWN
- See Also:
- Constant Field Values
-
RPI_MFG_EMBEST2
public static final short RPI_MFG_EMBEST2
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2835
public static final short RPI_PROC_BCM2835
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2836
public static final short RPI_PROC_BCM2836
- See Also:
- Constant Field Values
-
RPI_PROC_BCM2837
public static final short RPI_PROC_BCM2837
- See Also:
- Constant Field Values
-
-
Method Detail
-
getModelName
public String getModelName() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getModelNamein interfaceSystemInfoProvider- Overrides:
getModelNamein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getOsFirmwareBuild
public String getOsFirmwareBuild() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getOsFirmwareBuildin interfaceSystemInfoProvider- Overrides:
getOsFirmwareBuildin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getOsFirmwareDate
public String getOsFirmwareDate() throws IOException, InterruptedException, ParseException, UnsupportedOperationException
- Specified by:
getOsFirmwareDatein interfaceSystemInfoProvider- Overrides:
getOsFirmwareDatein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionParseExceptionUnsupportedOperationException
-
getBoardType
public SystemInfo.BoardType getBoardType() throws IOException, InterruptedException, UnsupportedOperationException
- Specified by:
getBoardTypein interfaceSystemInfoProvider- Overrides:
getBoardTypein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getCpuTemperature
public float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
getCpuTemperaturein interfaceSystemInfoProvider- Overrides:
getCpuTemperaturein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionNumberFormatExceptionUnsupportedOperationException
-
getCpuVoltage
public float getCpuVoltage() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
getCpuVoltagein interfaceSystemInfoProvider- Overrides:
getCpuVoltagein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionNumberFormatExceptionUnsupportedOperationException
-
getMemoryVoltageSDRam_C
public float getMemoryVoltageSDRam_C() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
getMemoryVoltageSDRam_Cin interfaceSystemInfoProvider- Overrides:
getMemoryVoltageSDRam_Cin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionNumberFormatExceptionUnsupportedOperationException
-
getMemoryVoltageSDRam_I
public float getMemoryVoltageSDRam_I() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
getMemoryVoltageSDRam_Iin interfaceSystemInfoProvider- Overrides:
getMemoryVoltageSDRam_Iin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionNumberFormatExceptionUnsupportedOperationException
-
getMemoryVoltageSDRam_P
public float getMemoryVoltageSDRam_P() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException- Specified by:
getMemoryVoltageSDRam_Pin interfaceSystemInfoProvider- Overrides:
getMemoryVoltageSDRam_Pin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionNumberFormatExceptionUnsupportedOperationException
-
getCodecH264Enabled
public boolean getCodecH264Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getCodecH264Enabledin interfaceSystemInfoProvider- Overrides:
getCodecH264Enabledin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getCodecMPG2Enabled
public boolean getCodecMPG2Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getCodecMPG2Enabledin interfaceSystemInfoProvider- Overrides:
getCodecMPG2Enabledin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getCodecWVC1Enabled
public boolean getCodecWVC1Enabled() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getCodecWVC1Enabledin interfaceSystemInfoProvider- Overrides:
getCodecWVC1Enabledin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyArm
public long getClockFrequencyArm() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyArmin interfaceSystemInfoProvider- Overrides:
getClockFrequencyArmin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyCore
public long getClockFrequencyCore() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyCorein interfaceSystemInfoProvider- Overrides:
getClockFrequencyCorein classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyH264
public long getClockFrequencyH264() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyH264in interfaceSystemInfoProvider- Overrides:
getClockFrequencyH264in classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyISP
public long getClockFrequencyISP() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyISPin interfaceSystemInfoProvider- Overrides:
getClockFrequencyISPin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyV3D
public long getClockFrequencyV3D() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyV3Din interfaceSystemInfoProvider- Overrides:
getClockFrequencyV3Din classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyUART
public long getClockFrequencyUART() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyUARTin interfaceSystemInfoProvider- Overrides:
getClockFrequencyUARTin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyPWM
public long getClockFrequencyPWM() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyPWMin interfaceSystemInfoProvider- Overrides:
getClockFrequencyPWMin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyEMMC
public long getClockFrequencyEMMC() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyEMMCin interfaceSystemInfoProvider- Overrides:
getClockFrequencyEMMCin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyPixel
public long getClockFrequencyPixel() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyPixelin interfaceSystemInfoProvider- Overrides:
getClockFrequencyPixelin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyVEC
public long getClockFrequencyVEC() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyVECin interfaceSystemInfoProvider- Overrides:
getClockFrequencyVECin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyHDMI
public long getClockFrequencyHDMI() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyHDMIin interfaceSystemInfoProvider- Overrides:
getClockFrequencyHDMIin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
getClockFrequencyDPI
public long getClockFrequencyDPI() throws IOException, InterruptedException, UnsupportedOperationException- Specified by:
getClockFrequencyDPIin interfaceSystemInfoProvider- Overrides:
getClockFrequencyDPIin classSystemInfoProviderBase- Throws:
IOExceptionInterruptedExceptionUnsupportedOperationException
-
-