pub struct SensorData {
pub data: [u16; 4],
/* private fields */
}Fields§
§data: [u16; 4]Implementations§
Source§impl SensorData
impl SensorData
pub fn new(port: SensorPort) -> Self
pub fn port(&self) -> SensorPort
pub fn val(&self) -> i32
pub fn v1(&self) -> i32
pub fn v2(&self) -> i32
pub fn v3(&self) -> i32
pub fn v4(&self) -> i32
pub fn configuration_applied(&self) -> bool
pub fn configure(&mut self, cfg: SensorConfiguration)
pub fn attempt_cfg_apply(&mut self) -> bool
pub fn skip_read(&mut self, from_last_read: Duration)
pub fn read(&mut self, from_last_read: Duration)
pub fn hard_calibration(&mut self)
pub fn soft_calibration(&mut self)
Auto Trait Implementations§
impl Freeze for SensorData
impl RefUnwindSafe for SensorData
impl Send for SensorData
impl Sync for SensorData
impl Unpin for SensorData
impl UnwindSafe for SensorData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more