Class daisy::Dps310SpiTransport¶
ClassList > daisy > Dps310SpiTransport
#include <dps310.h>
Classes¶
Type | Name |
---|---|
struct | Config |
Public Functions¶
Type | Name |
---|---|
Dps310SpiTransport () |
|
bool | GetError () |
void | Init (Config config) |
void | Read (uint8_t * data, uint16_t size) |
uint16_t | Read16 (uint8_t reg) |
uint32_t | Read24 (uint8_t reg) |
uint8_t | Read8 (uint8_t reg) |
void | ReadReg (uint8_t reg, uint8_t * buff, uint8_t size) |
void | Write (uint8_t * data, uint16_t size) |
void | Write8 (uint8_t reg, uint8_t value) |
~Dps310SpiTransport () |
Detailed Description¶
SPI Transport for Dps310
Public Functions Documentation¶
function Dps310SpiTransport¶
function GetError¶
function Init¶
function Read¶
function 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
function Read24¶
Reads a 24 bit value
Parameters:
reg
the register address to read from
Returns:
the 24 bit data value read from the device
function Read8¶
Reads an 8 bit value
Parameters:
reg
the register address to read from
Returns:
the data uint8_t read from the device
function ReadReg¶
Read from a reg address a defined number of bytes
function Write¶
function Write8¶
Writes an 8 bit value
Parameters:
reg
the register address to write tovalue
the value to write to the register
function ~Dps310SpiTransport¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/dps310.h