modm API documentation
modm_test::SpiDevice Class Reference

#include </tmp/tmpo0lsdol0/stm32f407zgt7/modm-test/src/modm-test/mock/spi_device.hpp>

Public Member Functions

void select ()
 
void deselect ()
 
uint8_t write (uint8_t data)
 
void start (const Transmission *transmissions, std::size_t transmissionCount, std::size_t line, bool reportErrors=true)
 
void finish ()
 
bool isSuccessful ()
 

Detailed Description

Mock-Up class to simulate SPI devices.

It has a separate start() function instead of using the Constructor to allow the usage with static classes.

Author
Fabian Greif

Member Function Documentation

void modm_test::SpiDevice::finish ( )

Check if all transmission were finished successful (content & size correct).

void modm_test::SpiDevice::start ( const Transmission transmissions,
std::size_t  transmissionCount,
std::size_t  lineNumber,
bool  reportErrors = true 
)

Start a new set of transmissions.

Sets the expected transmissions and resets the internal state.


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