| 
    modm API documentation
    
   | 
 
#include </tmp/tmpdtzkzmgn/stm32f437zit7/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 () | 
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.
| 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.