GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
Fpga_spidev Class Reference

Public Member Functions

 Fpga_spidev ()=default
 Default constructor.
 ~Fpga_spidev ()=default
 Default destructor.
int write_reg32 (char addr, uint32_t data)
 write a register through the SPI.
int read_reg32 (uint8_t addr, uint32_t *copy_to)
 read a register through the SPI.
int SPI_open (std::string spi_device_name)
 Open the SPI device driver.
int SPI_close (void) const
 Close the SPI device driver.

Detailed Description

Definition at line 22 of file fpga_spidev.h.

Constructor & Destructor Documentation

◆ Fpga_spidev()

Fpga_spidev::Fpga_spidev ( )
default

Default constructor.

◆ ~Fpga_spidev()

Fpga_spidev::~Fpga_spidev ( )
default

Default destructor.

Member Function Documentation

◆ read_reg32()

int Fpga_spidev::read_reg32 ( uint8_t addr,
uint32_t * copy_to )

read a register through the SPI.

◆ SPI_close()

int Fpga_spidev::SPI_close ( void ) const

Close the SPI device driver.

◆ SPI_open()

int Fpga_spidev::SPI_open ( std::string spi_device_name)

Open the SPI device driver.

◆ write_reg32()

int Fpga_spidev::write_reg32 ( char addr,
uint32_t data )

write a register through the SPI.


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