Add gpu power profile(s) properties.

Add profiles property to give back available
profiles on this device.
Add profile property to get and set current gpu
power profile.
Filter possible properties when on deck.
Get current profile based on position of * character.
Get card0 path based on which cardX has vendor 0x1002
Add some basic tests.
TODO:
Possibly cache available properties instead of fetching repeatedly.
This commit is contained in:
Jeremy Whiting 2024-05-31 14:39:34 -06:00
parent 8c1baa152b
commit 0759ff7077
6 changed files with 261 additions and 4 deletions

View file

@ -31,7 +31,7 @@ pub mod wifi;
#[cfg(test)]
mod testing;
const API_VERSION: u32 = 8;
const API_VERSION: u32 = 9;
pub trait Service
where