Skip to main content

Module impls

Module impls 

Source
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.
SysSystemControl
Production system control: kernel suspend via /sys/power/state, wall-clock via date command.
SysWifi
Production wifi: reads /sys/class/net/wlan0/operstate.

Functions§

resolve_frontlight_paths
Resolve frontlight sysfs paths from a crate::device::config::FrontlightConfig.