Skip to main content

PowerRailConfig Struct

Configuration for one PMBus rail exposed by a paged PMIC. More...

Declaration

struct simaai::neat::PowerRailConfig { ... }

Included Headers

#include <PowerTelemetry.h>

Public Member Attributes Index

std::stringname

Human-readable rail name. More...

inti2c_bus = 3

Linux I2C bus number (/dev/i2c-<bus>). More...

std::uint8_ti2c_addr = 0

7-bit PMIC I2C address. More...

std::uint8_tpage = 0

PMBus page selected through register 0x00. More...

intvout_exponent = -8

Scaling exponent for VOUT (register 0x8b). More...

intiout_exponent = -6

Scaling exponent for IOUT (register 0x8c). More...

intpout_exponent = -5

Scaling exponent for POUT (register 0x96). More...

Description

Configuration for one PMBus rail exposed by a paged PMIC.

The default Modalix SOM table is available via default_modalix_som_power_rails(). Exponents intentionally mirror the board-team scripts: scaled value = raw byte * 2^exponent.

Definition at line 35 of file PowerTelemetry.h.

Public Member Attributes

i2c_addr

std::uint8_t simaai::neat::PowerRailConfig::i2c_addr = 0

7-bit PMIC I2C address.

Definition at line 38 of file PowerTelemetry.h.

38 std::uint8_t i2c_addr = 0;

i2c_bus

int simaai::neat::PowerRailConfig::i2c_bus = 3

Linux I2C bus number (/dev/i2c-<bus>).

Definition at line 37 of file PowerTelemetry.h.

37 int i2c_bus = 3;

iout_exponent

int simaai::neat::PowerRailConfig::iout_exponent = -6

Scaling exponent for IOUT (register 0x8c).

Definition at line 41 of file PowerTelemetry.h.

41 int iout_exponent = -6;

name

std::string simaai::neat::PowerRailConfig::name

Human-readable rail name.

Definition at line 36 of file PowerTelemetry.h.

36 std::string name;

page

std::uint8_t simaai::neat::PowerRailConfig::page = 0

PMBus page selected through register 0x00.

Definition at line 39 of file PowerTelemetry.h.

39 std::uint8_t page = 0;

pout_exponent

int simaai::neat::PowerRailConfig::pout_exponent = -5

Scaling exponent for POUT (register 0x96).

Definition at line 42 of file PowerTelemetry.h.

42 int pout_exponent = -5;

vout_exponent

int simaai::neat::PowerRailConfig::vout_exponent = -8

Scaling exponent for VOUT (register 0x8b).

Definition at line 40 of file PowerTelemetry.h.

40 int vout_exponent = -8;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.