Struct l3gd20::L3gd20 [] [src]

pub struct L3gd20<SPI, CS> { /* fields omitted */ }

L3GD20 driver

Methods

impl<SPI, CS, E> L3gd20<SPI, CS> where
    SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
    CS: OutputPin
[src]

[src]

Creates a new driver from a SPI peripheral and a NCS pin

[src]

Temperature measurement + gyroscope measurements

[src]

Gyroscope measurements

[src]

Temperature sensor measurement

[src]

Reads the WHO_AM_I register; should return 0xD4

[src]

Read STATUS_REG of sensor

[src]

Get the current Output Data Rate

[src]

Set the Output Data Rate

[src]

Get current Bandwidth

[src]

Set low-pass cut-off frequency (i.e. bandwidth)

See Bandwidth for further explanation

[src]

Get the current Full Scale Selection

This is the sensitivity of the sensor, see Scale for more information

[src]

Set the Full Scale Selection

This sets the sensitivity of the sensor, see Scale for more information

Trait Implementations

Auto Trait Implementations

impl<SPI, CS> Send for L3gd20<SPI, CS> where
    CS: Send,
    SPI: Send

impl<SPI, CS> Sync for L3gd20<SPI, CS> where
    CS: Sync,
    SPI: Sync