SPIDEV class
Definition at line 113 of file SPIDEV.h.
#include <SPIDEV.h>
◆ beginTransaction()
| static void SPIDEVClass::beginTransaction |
( |
SPISettings |
settings | ) |
|
|
static |
Start SPI transaction.
- Parameters
-
◆ chipSelect()
| static void SPIDEVClass::chipSelect |
( |
int |
csn_chip | ) |
|
|
static |
Sets the chip select pin.
- Parameters
-
| csn_chip | Specifies the CS chip. |
◆ notUsingInterrupt()
| static void SPIDEVClass::notUsingInterrupt |
( |
uint8_t |
interruptNumber | ) |
|
|
static |
Not implemented.
- Parameters
-
| interruptNumber | ignored parameter. |
◆ setBitOrder()
| static void SPIDEVClass::setBitOrder |
( |
uint8_t |
bit_order | ) |
|
|
static |
Sets the SPI bit order.
- Parameters
-
| bit_order | The desired bit order. |
◆ setClockDivider()
| static void SPIDEVClass::setClockDivider |
( |
uint16_t |
divider | ) |
|
|
static |
Sets the SPI clock divider and therefore the SPI clock speed.
- Parameters
-
| divider | The desired SPI clock divider. |
◆ setDataMode()
| static void SPIDEVClass::setDataMode |
( |
uint8_t |
data_mode | ) |
|
|
static |
Sets the SPI data mode.
- Parameters
-
| data_mode | The desired data mode. |
◆ transfer()
| static uint8_t SPIDEVClass::transfer |
( |
uint8_t |
data | ) |
|
|
static |
Transfer a single byte.
- Parameters
-
- Returns
- Data returned via spi
◆ transfern()
| static void SPIDEVClass::transfern |
( |
char * |
buf, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
Transfer a buffer of data without an rx buffer.
- Parameters
-
| buf | Pointer to a buffer of data |
| len | Length of the data |
◆ transfernb()
| static void SPIDEVClass::transfernb |
( |
char * |
tbuf, |
|
|
char * |
rbuf, |
|
|
uint32_t |
len |
|
) |
| |
|
static |
Transfer a buffer of data.
- Parameters
-
| tbuf | Transmit buffer |
| rbuf | Receive buffer |
| len | Length of the data |
◆ usingInterrupt()
| static void SPIDEVClass::usingInterrupt |
( |
uint8_t |
interruptNumber | ) |
|
|
static |
Not implemented.
- Parameters
-
| interruptNumber | ignored parameter. |
The documentation for this class was generated from the following file:
- hal/architecture/Linux/drivers/core/SPIDEV.h