AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
|
An abstract base class for SPI communication. More...
#include <spi_hardware_plugin.hpp>
Public Member Functions | |
virtual void | begin_transaction () |
Begin a transaction on the SPI bus. This should be called before any of the read/write operations. | |
virtual void | transmit (SPITransactionFrame *frame)=0 |
Write a frame to the SPI bus. This should only be called after begin_transaction(). The result should only be read after end_transaction(). | |
virtual bool | end_transaction ()=0 |
End a transaction on the SPI bus. This must be called after all write operations and before any read operation. | |
An abstract base class for SPI communication.
Definition at line 26 of file spi_hardware_plugin.hpp.
|
inlinevirtual |
Begin a transaction on the SPI bus. This should be called before any of the read/write operations.
Here the SPI bus can be acquired and prepared for a new transaction.
Definition at line 32 of file spi_hardware_plugin.hpp.
|
pure virtual |
End a transaction on the SPI bus. This must be called after all write operations and before any read operation.
Here the SPI bus will be released and the transaction will be finalized.
Implemented in isobus::SPIInterfaceESP.
|
pure virtual |
Write a frame to the SPI bus. This should only be called after begin_transaction(). The result should only be read after end_transaction().
frame | A pointer to the frame to transmit |
Implemented in isobus::SPIInterfaceESP.