[−][src]Struct card10_sys::bhi160_sensor_config
Configuration for a BHI160 sensor.
This struct is used when enabling a sensor using
:c:func:epic_bhi160_enable_sensor
.
Fields
sample_buffer_len: usize
Number of samples Epicardium should keep for this sensor. Do not set this number too high as the sample buffer will eat RAM.
sample_rate: u16
Sample rate for the sensor in Hz. Maximum data rate is limited to 200 Hz for all sensors though some might be limited at a lower rate.
dynamic_range: u16
Dynamic range. Interpretation of this value depends on
the sensor type. Please refer to the specific sensor in
:c:type:bhi160_sensor_type
for details.
_padding: [u8; 8]
Always zero. Reserved for future parameters.
Trait Implementations
impl Debug for bhi160_sensor_config
[src]
impl Copy for bhi160_sensor_config
[src]
impl Clone for bhi160_sensor_config
[src]
fn clone(&self) -> bhi160_sensor_config
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Unpin for bhi160_sensor_config
impl Send for bhi160_sensor_config
impl Sync for bhi160_sensor_config
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,