HardFOC Core
API reference
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
hf::host::I2cTransaction Struct Reference

#include <MockI2c.h>

Public Types

enum class  Kind : uint8_t { Write , Read , WriteRead }
 

Public Attributes

Kind kind
 
uint16_t address
 Device address at the time of the call.
 
std::vector< uint8_t > tx
 Bytes written (empty for Read).
 
uint16_t rx_length
 Bytes requested (0 for Write).
 
std::vector< uint8_t > rx
 Bytes returned to the caller.
 
hf_i2c_err_t result
 Value returned to the caller.
 

Member Enumeration Documentation

◆ Kind

enum class hf::host::I2cTransaction::Kind : uint8_t
strong
Enumerator
Write 
Read 
WriteRead 

Member Data Documentation

◆ address

uint16_t hf::host::I2cTransaction::address

Device address at the time of the call.

◆ kind

Kind hf::host::I2cTransaction::kind

◆ result

hf_i2c_err_t hf::host::I2cTransaction::result

Value returned to the caller.

◆ rx

std::vector<uint8_t> hf::host::I2cTransaction::rx

Bytes returned to the caller.

◆ rx_length

uint16_t hf::host::I2cTransaction::rx_length

Bytes requested (0 for Write).

◆ tx

std::vector<uint8_t> hf::host::I2cTransaction::tx

Bytes written (empty for Read).


The documentation for this struct was generated from the following file: