10#ifndef SPI_TRANSACTION_FRAME_HPP
11#define SPI_TRANSACTION_FRAME_HPP
35 bool read_byte(std::size_t index, std::uint8_t &
byte)
const;
42 bool read_bytes(std::size_t index, std::uint8_t *buffer, std::size_t length)
const;
A class containing the data for a single SPI transaction.
const bool read
If true, the plugin will read the response to the write operation.
const std::vector< std::uint8_t > * get_tx_buffer() const
Get the buffer to transmit.
std::vector< std::uint8_t > rxBuffer
The buffer to store the response in.
bool get_is_read() const
Get whether the interface should read the response to the write operation.
bool read_byte(std::size_t index, std::uint8_t &byte) const
Read a byte from the response buffer.
std::vector< std::uint8_t > & get_rx_buffer()
Get the buffer to store the response in.
const std::vector< std::uint8_t > * txBuffer
The buffer to transmit.
SPITransactionFrame(const std::vector< std::uint8_t > *txBuffer, bool read=false)
Construct a new SPITransactionFrame object.
bool read_bytes(std::size_t index, std::uint8_t *buffer, std::size_t length) const
Read multiple bytes from the response buffer.
This namespace encompasses all of the ISO11783 stack's functionality to reduce global namespace pollu...