Device driver
Adis16488 Class Reference
Using the Analog Devices ADIS16488/PCBZ. More...
#include <Adis16488.h>
Public Member Functions | |
Adis16488 (SPI &spi, DigitalOut &cs, DigitalOut &rst, InterruptIn &dr) | |
Create the Adis16488 object. | |
void | init (void) |
Clear state vars and initilize the dependant objects. | |
void | readRegister (uint16_t const reg, uint16_t &data) |
Read from a register (exposed for debugging reasons) | |
void | writeRegister (uint16_t const reg) |
Write to a register (exposed for debugging reasons) | |
void | enable (void) |
Allow the IC to run and collect user input. | |
void | disable (void) |
Stop the IC and put into low power mode. |
Detailed Description
Using the Analog Devices ADIS16488/PCBZ.
Example:
#include "mbed.h" int main() { }
API abstraction for the ADIS16488 IMU
Definition at line 45 of file Adis16488.h.
Constructor & Destructor Documentation
Adis16488 | ( | SPI & | spi, |
DigitalOut & | cs, | ||
DigitalOut & | rst, | ||
InterruptIn & | dr | ||
) |
Create the Adis16488 object.
- Parameters:
-
spi - A defined SPI object cs - A defined DigitalOut object rst - A defined DigitalOut object dr - A defined InterruptIn object
Definition at line 33 of file Adis16488.cpp.
Member Function Documentation
void disable | ( | void | ) |
Stop the IC and put into low power mode.
Definition at line 110 of file Adis16488.cpp.
void enable | ( | void | ) |
Allow the IC to run and collect user input.
Definition at line 55 of file Adis16488.cpp.
void init | ( | void | ) |
Clear state vars and initilize the dependant objects.
Definition at line 43 of file Adis16488.cpp.
void readRegister | ( | uint16_t const | reg, |
uint16_t & | data | ||
) |
Read from a register (exposed for debugging reasons)
- Parameters:
-
reg - The register to be written data - Data read from the device is stored here
Definition at line 116 of file Adis16488.cpp.
void writeRegister | ( | uint16_t const | reg ) |
Write to a register (exposed for debugging reasons)
- Parameters:
-
reg - The register to be written
Definition at line 126 of file Adis16488.cpp.
Generated on Fri Jul 15 2022 18:47:53 by 1.7.2