SPIBCM class
Definition at line 160 of file SPIBCM.h.
#include <SPIBCM.h>
◆ beginTransaction()
static void SPIBCMClass::beginTransaction |
( |
SPISettings |
settings | ) |
|
|
static |
Start SPI transaction.
- Parameters
-
◆ chipSelect()
static void SPIBCMClass::chipSelect |
( |
int |
csn_pin | ) |
|
|
static |
Sets the chip select pin.
- Parameters
-
csn_pin | Specifies the CS pin. |
◆ notUsingInterrupt()
static void SPIBCMClass::notUsingInterrupt |
( |
uint8_t |
interruptNumber | ) |
|
|
static |
Not implemented.
- Parameters
-
interruptNumber | ignored parameter. |
◆ setBitOrder()
static void SPIBCMClass::setBitOrder |
( |
uint8_t |
bit_order | ) |
|
|
static |
Sets the SPI bit order.
- Parameters
-
bit_order | The desired bit order. |
◆ setClockDivider()
static void SPIBCMClass::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 SPIBCMClass::setDataMode |
( |
uint8_t |
data_mode | ) |
|
|
static |
Sets the SPI data mode.
- Parameters
-
data_mode | The desired data mode. |
◆ transfer()
uint8_t SPIBCMClass::transfer |
( |
uint8_t |
data | ) |
|
|
inlinestatic |
Send and receive a byte.
- Parameters
-
- Returns
- byte received.
Definition at line 245 of file SPIBCM.h.
◆ transfern()
void SPIBCMClass::transfern |
( |
char * |
buf, |
|
|
uint32_t |
len |
|
) |
| |
|
inlinestatic |
Send and receive a number of bytes.
- Parameters
-
buf | Buffer to read from and write to. |
len | Buffer length. |
Definition at line 255 of file SPIBCM.h.
◆ transfernb()
void SPIBCMClass::transfernb |
( |
char * |
tbuf, |
|
|
char * |
rbuf, |
|
|
uint32_t |
len |
|
) |
| |
|
inlinestatic |
Send and receive a number of bytes.
- Parameters
-
tbuf | Sending buffer. |
rbuf | Receive buffer. |
len | Buffer length. |
Definition at line 250 of file SPIBCM.h.
◆ usingInterrupt()
static void SPIBCMClass::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/BCM/SPIBCM.h