MCPcopy Create free account
hub / github.com/diondokter/device-driver / value

Method value

tests/cases/basic_command/basic_command.rs:120–128  ·  view source on GitHub ↗

Read the `value` field of the register.

(&self)

Source from the content-addressed store, hash-verified

118 ///Read the `value` field of the register.
119 ///
120 pub fn value(&self) -> u32 {
121 let raw = unsafe {
122 ::device_driver::ops::load_lsb0::<
123 u32,
124 ::device_driver::ops::LE,
125 >(&self.bits, 0, 24)
126 };
127 raw
128 }
129 ///Write the `value` field of the register.
130 ///
131 pub fn set_value(&mut self, value: u32) {

Callers 4

create_deviceFunction · 0.45
try_fromMethod · 0.45
parseMethod · 0.45
fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected