Documentation ¶
Overview ¶
package fxas21001c is a driver for the Freescale 21002c 3-Axis gyroscope.
Index ¶
- type Configuration
- type Fxas21002c
- func (d *Fxas21002c) Activate() error
- func (d *Fxas21002c) Close() error
- func (d *Fxas21002c) Configure(conf *Configuration) error
- func (d *Fxas21002c) IsPresent() bool
- func (d *Fxas21002c) ReadGyro() (*core.GyroReading, error)
- func (d *Fxas21002c) Readings() <-chan *core.GyroReading
- func (d *Fxas21002c) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Fxas21002c ¶
func (*Fxas21002c) Activate ¶
func (d *Fxas21002c) Activate() error
func (*Fxas21002c) Close ¶
func (d *Fxas21002c) Close() error
Close stops any period reads in progress. Call this to stop the readings that Start() begins
func (*Fxas21002c) Configure ¶
func (d *Fxas21002c) Configure(conf *Configuration) error
func (*Fxas21002c) IsPresent ¶
func (d *Fxas21002c) IsPresent() bool
IsPresent returns true if it looks like we were able to see the sensor
func (*Fxas21002c) ReadGyro ¶
func (d *Fxas21002c) ReadGyro() (*core.GyroReading, error)
func (*Fxas21002c) Readings ¶
func (d *Fxas21002c) Readings() <-chan *core.GyroReading
Readings is a channel that will contain sensor readings after calling Start()
func (*Fxas21002c) Start ¶
func (d *Fxas21002c) Start() error
Start produces a stream of gyroscope readings in the Readings() channel
Click to show internal directories.
Click to hide internal directories.