#include <dps310.h>
◆ Dps310SpiTransport()
daisy::Dps310SpiTransport::Dps310SpiTransport |
( |
| ) |
|
|
inline |
◆ ~Dps310SpiTransport()
daisy::Dps310SpiTransport::~Dps310SpiTransport |
( |
| ) |
|
|
inline |
◆ GetError()
bool daisy::Dps310SpiTransport::GetError |
( |
| ) |
|
|
inline |
◆ Init()
void daisy::Dps310SpiTransport::Init |
( |
Config |
config | ) |
|
|
inline |
◆ Read()
◆ Read16()
Reads a 16 bit value over I2C or SPI
- Parameters
-
reg | the register address to read from |
- Returns
- the 16 bit data value read from the device
◆ Read24()
Reads a 24 bit value
- Parameters
-
reg | the register address to read from |
- Returns
- the 24 bit data value read from the device
◆ Read8()
Reads an 8 bit value
- Parameters
-
reg | the register address to read from |
- Returns
- the data uint8_t read from the device
◆ ReadReg()
Read from a reg address a defined number of bytes
◆ Write()
◆ Write8()
Writes an 8 bit value
- Parameters
-
reg | the register address to write to |
value | the value to write to the register |
The documentation for this class was generated from the following file: