Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors API #37

Open
thejpster opened this issue Aug 18, 2023 · 0 comments
Open

Sensors API #37

thejpster opened this issue Aug 18, 2023 · 0 comments

Comments

@thejpster
Copy link
Member

We should report sensor info, up to 255 of them. Just like the other APIs.

Neotron Pico BIOS can provide:

  • CPU temp (RP2040 on-die reading)
  • 5.0V and 3.3V rail voltage (from BMC)
  • perhaps some info from the RP2040 bus matrix (bus collisions, etc)
  • ROM and die revision

Each value should be of an enum representing the units, and which holds a u32 or similar. This type can then impl Display for printing.

Kind::Voltage(u32) might print as xx.yyy V and be stored in units of 1/1000 Volt.

Kind::Temperature(u32) prints xx.y °C but is stored in units of 1/100 Kelvin.

Kind::RawHex(u32) prints 0xXXXXXXXX

Kind::Percent(u8) prints as xxx %

etc

Each sensor also has a human readable name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant