Documentation ¶
Overview ¶
Package pirev parses Raspberry Pi new-style revision codes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { Revision uint8 // 1.# Model Model Processor Processor Manufacturer Manufacturer MemSize uint // In megabytes NewStyleRev bool // New-style revision code WarrantyVoid bool // Warranty has been voided by overclocking NoOTPReading bool // OTP reading disallowed NoOTPPrograming bool // OTP programming disallowed NoOvervoltage bool // Overvoltage disallowed }
Info describes Raspberry Pi hardware as identified by revision code.
type Manufacturer ¶
type Manufacturer uint8
Manufacturer is a 4-bit value.
const ( SonyUK Manufacturer = iota // Sony UK Egoman Embest SonyJapan // Sony Japan // Embest2 is the same as Embest, if the docs can be believed. Embest2 // Embest Stadium )
Manufacturer constants.
func (Manufacturer) String ¶
func (i Manufacturer) String() string
type Model ¶
type Model uint8
Model is an 8-bit value.
Directories ¶
Path | Synopsis |
---|---|
Package bits does the low (bit-)level parsing and assembly of new-style Raspberry Pi revision codes.
|
Package bits does the low (bit-)level parsing and assembly of new-style Raspberry Pi revision codes. |
cmd
|
|
internal
|
|
print
Package print implements utilities to pretty-print Raspberry Pi revision code info structures.
|
Package print implements utilities to pretty-print Raspberry Pi revision code info structures. |
Package legacy describes Raspberry Pi old-style revision codes.
|
Package legacy describes Raspberry Pi old-style revision codes. |
Click to show internal directories.
Click to hide internal directories.