Struct mma7660fc::Mma7660fc [] [src]

pub struct Mma7660fc<I2C> {
    pub i2c: I2C,
}

MMA7660FC Driver

Fields

Methods

impl<I2C, E> Mma7660fc<I2C> where
    I2C: WriteRead<Error = E> + Write<Error = E>, 
[src]

[src]

Creates a new driver from a I2C peripheral

[src]

write to register

[src]

set mode

[src]

Returns the raw x,y and z axis from the sensor

[src]

Returns the acceleration with range ±1.5g (6-bit, signed)

Trait Implementations

Auto Trait Implementations

impl<I2C> Send for Mma7660fc<I2C> where
    I2C: Send

impl<I2C> Sync for Mma7660fc<I2C> where
    I2C: Sync