pub struct LightningBoardLightningSensorInformation(/* private fields */);Implementations§
Source§impl LightningBoardLightningSensorInformation
impl LightningBoardLightningSensorInformation
Sourcepub const fn interrupt(&self) -> u8
pub const fn interrupt(&self) -> u8
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 0..8
Sourcepub const fn with_interrupt_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_interrupt_checked(self, value: u8) -> Result<Self, ()>
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 0..8
Sourcepub const fn with_interrupt(self, value: u8) -> Self
pub const fn with_interrupt(self, value: u8) -> Self
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 0..8
Sourcepub const fn set_interrupt(&mut self, value: u8)
pub const fn set_interrupt(&mut self, value: u8)
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 0..8
Sourcepub const fn set_interrupt_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_interrupt_checked(&mut self, value: u8) -> Result<(), ()>
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 0..8
Sourcepub const fn distance(&self) -> u8
pub const fn distance(&self) -> u8
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 8..16
Sourcepub const fn with_distance_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_distance_checked(self, value: u8) -> Result<Self, ()>
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 8..16
Sourcepub const fn with_distance(self, value: u8) -> Self
pub const fn with_distance(self, value: u8) -> Self
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 8..16
Sourcepub const fn set_distance(&mut self, value: u8)
pub const fn set_distance(&mut self, value: u8)
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 8..16
Sourcepub const fn set_distance_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_distance_checked(&mut self, value: u8) -> Result<(), ()>
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 8..16
Sourcepub const fn energy(&self) -> u32
pub const fn energy(&self) -> u32
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 16..48
Sourcepub const fn with_energy_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_energy_checked(self, value: u32) -> Result<Self, ()>
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 16..48
Sourcepub const fn with_energy(self, value: u32) -> Self
pub const fn with_energy(self, value: u32) -> Self
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 16..48
Sourcepub const fn set_energy(&mut self, value: u32)
pub const fn set_energy(&mut self, value: u32)
Lightning Board Lightning Sensor Information.
The Lightning Board Lightning Sensor Data.
Bits: 16..48
Trait Implementations§
Source§impl Clone for LightningBoardLightningSensorInformation
impl Clone for LightningBoardLightningSensorInformation
Source§fn clone(&self) -> LightningBoardLightningSensorInformation
fn clone(&self) -> LightningBoardLightningSensorInformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more