![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <bsp.hpp>
Public Member Functions | |
| spi_bsp (const struct device *dev, const struct spi_config &spi_cfg) | |
| void | read (uint8_t *rx, const uint8_t *tx, size_t tx_len, size_t rx_len) override |
| Performs an SPI read operation. | |
| void | write (const uint8_t *tx, size_t len) override |
| Performs an SPI write operation. | |
| Public Member Functions inherited from satnogs::comms::lib::bsp::spi | |
| spi () | |
| Construct a new SPI object. | |
| ~spi () | |
| virtual gpio & | cs () |
| Returns a GPIO control handle for the CS of the SPI. If this is performed automatically by the hardware, users does not have to provide an implementation for this method, as it returns an object of dummy_gpio class, which has no effect. | |
| satnogs::comms::spi_bsp::spi_bsp | ( | const struct device * | dev, |
| const struct spi_config & | spi_cfg ) |
|
overridevirtual |
Performs an SPI read operation.
| rx | the receive buffer. Should be at least len bytes in size |
| tx | the transmit buffer. Should be at least len bytes in size |
| tx_len | number of bytes to be transmitted |
| rx_len | number of bytes to be received |
Implements satnogs::comms::lib::bsp::spi.
|
overridevirtual |
Performs an SPI write operation.
| tx | the transmit buffer. Should be at least len bytes in size |
| len | number of bytes to be transmitted |
Implements satnogs::comms::lib::bsp::spi.