arduino-emulator
|
Implementation of SPI communication for Raspberry Pi using Linux SPI device interface. More...
#include <HardwareSPI_RPI.h>
Public Member Functions | |
HardwareSPI_RPI (const char *device="/dev/spidev0.0") | |
void | attachInterrupt () override |
void | begin () override |
void | beginTransaction (SPISettings settings) override |
void | detachInterrupt () override |
void | end () override |
void | endTransaction (void) override |
void | notUsingInterrupt (int interruptNumber) override |
operator bool () | |
uint8_t | transfer (uint8_t data) override |
void | transfer (void *buf, size_t count) override |
uint16_t | transfer16 (uint16_t data) override |
void | usingInterrupt (int interruptNumber) override |
Protected Attributes | |
const char * | device = "/dev/spidev0.0" |
bool | is_open = false |
uint8_t | spi_bits = 8 |
int | spi_fd = -1 |
uint8_t | spi_mode = 0 |
uint32_t | spi_speed = 500000 |
Implementation of SPI communication for Raspberry Pi using Linux SPI device interface.
This class provides an interface to the SPI bus on Raspberry Pi platforms by accessing the Linux device (e.g., /dev/spidev0.0). It inherits from HardwareSPI and implements all required methods for SPI communication, including data transfer, transaction management, and configuration.
|
overridevirtual |
Implements arduino::HardwareSPI.
|
overridevirtual |
Implements arduino::HardwareSPI.
|
overridevirtual |
Implements arduino::HardwareSPI.
|
overridevirtual |
Implements arduino::HardwareSPI.
|
overridevirtual |
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.
Implements arduino::HardwareSPI.