Pigweed
 
Loading...
Searching...
No Matches
pw::i2c::MockMessageTransaction Class Reference

#include <initiator_message_mock.h>

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: