SatNOGS-COMMS  4.1.0
A COMMS subsystem for CubeSats
Loading...
Searching...
No Matches
satnogs::comms::spi_manual_cs_bsp Class Reference

Same as the spi_bsp but with manual control of the CS line. More...

#include <bsp.hpp>

Inheritance diagram for satnogs::comms::spi_manual_cs_bsp:
satnogs::comms::spi_bsp satnogs::comms::lib::bsp::spi

Public Member Functions

 spi_manual_cs_bsp (const struct device *dev, const struct spi_config &spi_cfg, const struct gpio_dt_spec *cs)
lib::bsp::gpiocs () override
 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.
Public Member Functions inherited from satnogs::comms::spi_bsp
 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 ()

Detailed Description

Same as the spi_bsp but with manual control of the CS line.

Definition at line 203 of file bsp.hpp.

Constructor & Destructor Documentation

◆ spi_manual_cs_bsp()

satnogs::comms::spi_manual_cs_bsp::spi_manual_cs_bsp ( const struct device * dev,
const struct spi_config & spi_cfg,
const struct gpio_dt_spec * cs )
inline

Definition at line 206 of file bsp.hpp.

Member Function Documentation

◆ cs()

lib::bsp::gpio & satnogs::comms::spi_manual_cs_bsp::cs ( )
inlineoverridevirtual

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.

Returns
gpio&

Reimplemented from satnogs::comms::lib::bsp::spi.

Definition at line 213 of file bsp.hpp.


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