Chip identification and hardware information.
More...
Chip identification and hardware information.
Provides model identification, silicon revision, core count, and hardware feature detection.
auto model = info.model();
auto cores = info.cores();
auto rev = info.revision();
uint8_t cores() const noexcept
Returns the number of CPU cores.
static chip_info get() noexcept
Queries the chip and returns its information.
chip_model model() const noexcept
Returns the chip model.
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Definition at line 99 of file chip.hpp.
◆ cores()
| uint8_t idfxx::chip_info::cores |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of CPU cores.
- Returns
- The core count (e.g. 1 or 2).
Definition at line 129 of file chip.hpp.
◆ features()
Returns the chip's hardware feature flags.
- Returns
- A flags set of chip_feature values.
Definition at line 120 of file chip.hpp.
◆ get()
Queries the chip and returns its information.
- Returns
- A chip_info object populated with the current chip's data.
◆ major_revision()
| uint8_t idfxx::chip_info::major_revision |
( |
| ) |
const |
|
inlinenoexcept |
Returns the major part of the chip revision.
- Returns
- The major revision number (revision / 100).
Definition at line 146 of file chip.hpp.
◆ minor_revision()
| uint8_t idfxx::chip_info::minor_revision |
( |
| ) |
const |
|
inlinenoexcept |
Returns the minor part of the chip revision.
- Returns
- The minor revision number (revision % 100).
Definition at line 153 of file chip.hpp.
◆ model()
Returns the chip model.
- Returns
- The chip model identifier.
Definition at line 113 of file chip.hpp.
◆ revision()
| uint16_t idfxx::chip_info::revision |
( |
| ) |
const |
|
inlinenoexcept |
Returns the full chip revision number.
The revision is encoded as major * 100 + minor. For example, revision 100 means v1.0, and revision 301 means v3.1.
- Returns
- The chip revision number.
Definition at line 139 of file chip.hpp.
The documentation for this class was generated from the following file: