MCPcopy Create free account
hub / github.com/RizeCrime/linuxblaster_control / read_state_from_device

Method read_state_from_device

src/lib.rs:103–107  ·  view source on GitHub ↗

Queries every feature from hardware individually. This will update the internal state of the features with the current hardware values.

(&self)

Source from the content-addressed store, hash-verified

101 /// Queries every feature from hardware individually.
102 /// This will update the internal state of the features with the current hardware values.
103 pub fn read_state_from_device(&self) {
104 for feature in &self.features {
105 feature.read_from_device();
106 }
107 }
108
109 /// Lookup a feature by ID.
110 pub fn feature(&self, id: FeatureId) -> &Feature {

Callers 3

initMethod · 0.80
set_featureMethod · 0.80
resetMethod · 0.80

Calls 1

read_from_deviceMethod · 0.80

Tested by

no test coverage detected