[][src]Struct card10_sys::bhi160_sensor_config

#[repr(C)]
pub struct bhi160_sensor_config {
    pub sample_buffer_len: usize,
    pub sample_rate: u16,
    pub dynamic_range: u16,
    pub _padding: [u8; 8],
}

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]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]