[][src]Struct mynewt::hw::sensor::bindings::sensor_gyro_data

#[repr(C, packed)]
pub struct sensor_gyro_data { pub sgd_x: f32, pub sgd_y: f32, pub sgd_z: f32, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>, }

Fields

sgd_x: f32sgd_y: f32sgd_z: f32_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>

Methods

impl sensor_gyro_data[src]

pub fn sgd_x_is_valid(&self) -> u8[src]

pub fn set_sgd_x_is_valid(&mut self, val: u8)[src]

pub fn sgd_y_is_valid(&self) -> u8[src]

pub fn set_sgd_y_is_valid(&mut self, val: u8)[src]

pub fn sgd_z_is_valid(&self) -> u8[src]

pub fn set_sgd_z_is_valid(&mut self, val: u8)[src]

pub fn new_bitfield_1(
    sgd_x_is_valid: u8,
    sgd_y_is_valid: u8,
    sgd_z_is_valid: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Default for sensor_gyro_data[src]

Auto Trait Implementations

impl Send for sensor_gyro_data

impl Sync for sensor_gyro_data

Blanket Implementations

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> From<T> for T[src]

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]