Expand description
Production (Sys) implementations of the device traits.
Each Sys* struct wraps the corresponding free functions in the device
modules. Construct once at startup and pass &dyn Trait to code that needs
testable device access.
Structs§
- SysBattery
- Production battery: reads
/sys/class/power_supply/*/capacity. - SysBluetooth
- Production bluetooth: DBus calls to bluez / mtk.bluedroid.
- SysFramebuffer
- Production framebuffer: wraps
Fb(mmap’d/dev/fb0+ MXCFB refresh). - SysFrontlight
- Production frontlight: reads/writes real sysfs brightness files.
- SysSystem
Control - Production system control: kernel suspend via
/sys/power/state, wall-clock viadatecommand. - SysWifi
- Production wifi: reads
/sys/class/net/wlan0/operstate.
Functions§
- resolve_
frontlight_ paths - Resolve frontlight sysfs paths from a
crate::device::config::FrontlightConfig.