Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pw::i2c::MockMessageTransaction Class Reference

Public Member Functions

 MockMessageTransaction (Status expected_return_value, span< const MockMessage > test_messages, std::optional< chrono::SystemClock::duration > timeout=std::nullopt)
 
std::optional< chrono::SystemClock::durationtimeout () const
 Gets the minimum duration to wait for a blocking I2C transaction.
 
const std::vector< MockMessage > & test_messages () const
 
Status return_value () const
 

Detailed Description

Represents a list of MockMessages that make up one i2c transaction. An i2c transaction can consist of any arbitrary combination of i2c read and write messages that are transmitted sequentially and without releasing the bus with an i2c Stop condition.


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