Forked version of the FXOS8700CQ library which maintains its own memory
Dependents: fxos8700cq_example
Fork of FXOS8700CQ by
FXOS8700CQ Class Reference
A driver on top of mbed-I2C to operate the FXOS8700CQ accelerometer/magnetometer on the FRDM-K64F. More...
#include <FXOS8700CQ.h>
Public Member Functions | |
| FXOS8700CQ (PinName sda, PinName scl, int addr) | |
| FXOS8700CQ constructor. | |
| ~FXOS8700CQ (void) | |
| FXOS8700CQ destructor. | |
| uint8_t | get_data () |
| Data retrieval from the FXOS8700CQ. | |
| uint8_t | get_accel_scale (void) |
| Retrieve the full-range scale value of the accelerometer. | |
Detailed Description
A driver on top of mbed-I2C to operate the FXOS8700CQ accelerometer/magnetometer on the FRDM-K64F.
Warning: incomplete code!
Definition at line 121 of file FXOS8700CQ.h.
Constructor & Destructor Documentation
| FXOS8700CQ | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr | ||
| ) |
FXOS8700CQ constructor.
- Parameters:
-
sda SDA pin sdl SCL pin addr address of the I2C peripheral in (7-bit << 1) form
Definition at line 7 of file FXOS8700CQ.cpp.
| ~FXOS8700CQ | ( | void | ) |
FXOS8700CQ destructor.
Definition at line 82 of file FXOS8700CQ.cpp.
Member Function Documentation
| uint8_t get_accel_scale | ( | void | ) |
Retrieve the full-range scale value of the accelerometer.
- Returns:
- 2, 4, or 8, depending on part configuration; 0 on error
Definition at line 164 of file FXOS8700CQ.cpp.
| uint8_t get_data | ( | ) |
Data retrieval from the FXOS8700CQ.
- Returns:
- 0 on success, non-zero on failure
Definition at line 124 of file FXOS8700CQ.cpp.
Generated on Wed Jul 27 2022 01:26:59 by
1.7.2
