PIDUINO
Loading...
Searching...
No Matches
Piduino::System::RaspianInfo

#include <system.h>

Collaboration diagram for Piduino::System::RaspianInfo:

Classes

union  BoardInfo
 
struct  BoardInfoField
 

Public Types

enum  BoardType {
  RpiA = 0x00 , RpiB = 0x01 , RpiAPlus = 0x02 , RpiBPlus = 0x03 ,
  Rpi2B = 0x04 , RpiAlpha = 0x05 , RpiCM1 = 0x06 , Rpi3B = 0x08 ,
  RpiZero = 0x09 , RpiCM3 = 0x0a , RpiZeroW = 0x0c , Rpi3BPlus = 0x0d ,
  Rpi3APlus = 0x0e , RpiInternal = 0x0f , RpiCM3Plus = 0x10 , Rpi4B = 0x11 ,
  RpiZero2W = 0x12 , Rpi400 = 0x13 , RpiCM4 = 0x14 , RpiCM4S = 0x15 ,
  RpiInternal2 = 0x16 , Rpi5 = 0x17 , RpiCM5 = 0x18 , Rpi500 = 0x19 ,
  RpiCM5Lite = 0x1a , RpiUnknown = -1
}
 
enum  Processor {
  BCM2835 = 0x00 , BCM2836 = 0x01 , BCM2837 = 0x02 , BCM2711 = 0x03 ,
  BCM2712 = 0x04
}
 
enum  Manufacturer {
  SonyUK = 0x00 , Egoman = 0x01 , Embest = 0x02 , SonyJapan = 0x03 ,
  Embest2 = 0x04 , Stadium = 0x05
}
 
enum  MemorySize {
  Memory256MB = 0x00 , Memory512MB = 0x01 , Memory1GB = 0x02 , Memory2GB = 0x03 ,
  Memory4GB = 0x04 , Memory8GB = 0x05 , Memory16GB = 0x06
}
 

Public Member Functions

 RaspianInfo ()
 
bool newFlag () const
 
bool found () const
 
uint8_t revision () const
 
BoardType board () const
 
Processor processor () const
 
Manufacturer manufacturer () const
 
MemorySize memory () const
 
bool warranty () const
 
bool otpReady () const
 
bool otpProgram () const
 
bool overVoltage () const
 
uint32_t value () const
 

Private Attributes

BoardInfo _info
 

Detailed Description

Definition at line 119 of file system.h.

Member Enumeration Documentation

◆ BoardType

Enumerator
RpiA 
RpiB 
RpiAPlus 
RpiBPlus 
Rpi2B 
RpiAlpha 
RpiCM1 
Rpi3B 
RpiZero 
RpiCM3 
RpiZeroW 
Rpi3BPlus 
Rpi3APlus 
RpiInternal 
RpiCM3Plus 
Rpi4B 
RpiZero2W 
Rpi400 
RpiCM4 
RpiCM4S 
RpiInternal2 
Rpi5 
RpiCM5 
Rpi500 
RpiCM5Lite 
RpiUnknown 

Definition at line 125 of file system.h.

◆ Manufacturer

Enumerator
SonyUK 
Egoman 
Embest 
SonyJapan 
Embest2 
Stadium 

Definition at line 164 of file system.h.

◆ MemorySize

Enumerator
Memory256MB 
Memory512MB 
Memory1GB 
Memory2GB 
Memory4GB 
Memory8GB 
Memory16GB 

Definition at line 174 of file system.h.

◆ Processor

Enumerator
BCM2835 
BCM2836 
BCM2837 
BCM2711 
BCM2712 

Definition at line 155 of file system.h.

Constructor & Destructor Documentation

◆ RaspianInfo()

Piduino::System::RaspianInfo::RaspianInfo ( )

Member Function Documentation

◆ board()

BoardType Piduino::System::RaspianInfo::board ( ) const
inline

◆ found()

bool Piduino::System::RaspianInfo::found ( ) const
inline

Definition at line 188 of file system.h.

References newFlag().

Here is the call graph for this function:

◆ manufacturer()

Manufacturer Piduino::System::RaspianInfo::manufacturer ( ) const
inline

◆ memory()

MemorySize Piduino::System::RaspianInfo::memory ( ) const
inline

◆ newFlag()

bool Piduino::System::RaspianInfo::newFlag ( ) const
inline

◆ otpProgram()

bool Piduino::System::RaspianInfo::otpProgram ( ) const
inline

◆ otpReady()

bool Piduino::System::RaspianInfo::otpReady ( ) const
inline

◆ overVoltage()

bool Piduino::System::RaspianInfo::overVoltage ( ) const
inline

◆ processor()

Processor Piduino::System::RaspianInfo::processor ( ) const
inline

◆ revision()

uint8_t Piduino::System::RaspianInfo::revision ( ) const
inline

◆ value()

uint32_t Piduino::System::RaspianInfo::value ( ) const
inline

Definition at line 218 of file system.h.

References _info, and Piduino::System::RaspianInfo::BoardInfo::value.

◆ warranty()

bool Piduino::System::RaspianInfo::warranty ( ) const
inline

Member Data Documentation

◆ _info

BoardInfo Piduino::System::RaspianInfo::_info
private