Skip to content

Class daisy::Dps310I2CTransport

ClassList > daisy > Dps310I2CTransport

More...

  • #include <dps310.h>

Classes

Type Name
struct Config

Public Functions

Type Name
Dps310I2CTransport ()
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)
~Dps310I2CTransport ()

Detailed Description

I2C Transport for Dps310

Public Functions Documentation

function Dps310I2CTransport

inline daisy::Dps310I2CTransport::Dps310I2CTransport () 

function GetError

inline bool daisy::Dps310I2CTransport::GetError () 

function Init

inline void daisy::Dps310I2CTransport::Init (
    Config config
) 

function Read

inline void daisy::Dps310I2CTransport::Read (
    uint8_t * data,
    uint16_t size
) 

function Read16

inline uint16_t daisy::Dps310I2CTransport::Read16 (
    uint8_t reg
) 

Reads a 16 bit value

Parameters:

  • reg the register address to read from

Returns:

the 16 bit data value read from the device


function Read24

inline uint32_t daisy::Dps310I2CTransport::Read24 (
    uint8_t reg
) 

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

inline uint8_t daisy::Dps310I2CTransport::Read8 (
    uint8_t reg
) 

Reads an 8 bit value

Parameters:

  • reg the register address to read from

Returns:

the 16 bit data value read from the device


function ReadReg

inline void daisy::Dps310I2CTransport::ReadReg (
    uint8_t reg,
    uint8_t * buff,
    uint8_t size
) 

Read from a reg address a defined number of bytes


function Write

inline void daisy::Dps310I2CTransport::Write (
    uint8_t * data,
    uint16_t size
) 

function Write8

inline void daisy::Dps310I2CTransport::Write8 (
    uint8_t reg,
    uint8_t value
) 

Writes an 8 bit value

Parameters:

  • reg the register address to write to
  • value the value to write to the register

function ~Dps310I2CTransport

inline daisy::Dps310I2CTransport::~Dps310I2CTransport () 


The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/dps310.h