![]() |
MySensors Library & Examples
9ecb785
|
#include <SPI.h>
Public Member Functions | |
SPIClass () | |
SPIClass constructor. | |
Static Public Member Functions | |
static uint8_t | transfer (uint8_t data) |
Send and receive a byte. More... | |
static void | transfernb (char *tbuf, char *rbuf, uint32_t len) |
Send and receive a number of bytes. More... | |
static void | transfern (char *buf, uint32_t len) |
Send and receive a number of bytes. More... | |
static void | begin () |
Start SPI operations. | |
static void | end () |
End SPI operations. | |
static void | setBitOrder (uint8_t bit_order) |
Sets the SPI bit order. More... | |
static void | setDataMode (uint8_t data_mode) |
Sets the SPI data mode. More... | |
static void | setClockDivider (uint16_t divider) |
Sets the SPI clock divider and therefore the SPI clock speed. More... | |
static void | chipSelect (int csn_pin) |
Sets the chip select pin. More... | |
static void | beginTransaction (SPISettings settings) |
Start SPI transaction. More... | |
static void | endTransaction () |
End SPI transaction. | |
static void | usingInterrupt (uint8_t interruptNumber) |
Not implemented. More... | |
static void | notUsingInterrupt (uint8_t interruptNumber) |
Not implemented. More... | |
static void | begin (int busNo=0) |
Start SPI operations. | |
static void | end () |
End SPI operations. | |
static void | setBitOrder (uint8_t bit_order) |
Sets the SPI bit order. More... | |
static void | setDataMode (uint8_t data_mode) |
Sets the SPI data mode. More... | |
static void | setClockDivider (uint16_t divider) |
Sets the SPI clock divider and therefore the SPI clock speed. More... | |
static void | chipSelect (int csn_chip) |
Sets the chip select pin. More... | |
static uint8_t | transfer (uint8_t data) |
Transfer a single byte. More... | |
static void | transfernb (char *tbuf, char *rbuf, uint32_t len) |
Transfer a buffer of data. More... | |
static void | transfern (char *buf, uint32_t len) |
Transfer a buffer of data without an rx buffer. More... | |
static void | beginTransaction (SPISettings settings) |
Start SPI transaction. More... | |
static void | endTransaction () |
End SPI transaction. | |
static void | usingInterrupt (uint8_t interruptNumber) |
Not implemented. More... | |
static void | notUsingInterrupt (uint8_t interruptNumber) |
Not implemented. More... | |
SPIClass class
|
static |
Start SPI transaction.
settings | for SPI. |
|
static |
Start SPI transaction.
settings | for SPI. |
|
static |
Sets the chip select pin.
csn_chip | Specifies the CS chip. |
|
static |
Sets the chip select pin.
csn_pin | Specifies the CS pin. |
|
static |
Not implemented.
interruptNumber | ignored parameter. |
|
static |
Not implemented.
interruptNumber | ignored parameter. |
|
static |
Sets the SPI bit order.
bit_order | The desired bit order. |
|
static |
Sets the SPI bit order.
bit_order | The desired bit order. |
|
static |
Sets the SPI clock divider and therefore the SPI clock speed.
divider | The desired SPI clock divider. |
|
static |
Sets the SPI clock divider and therefore the SPI clock speed.
divider | The desired SPI clock divider. |
|
static |
Sets the SPI data mode.
data_mode | The desired data mode. |
|
static |
Sets the SPI data mode.
data_mode | The desired data mode. |
|
static |
Transfer a single byte.
data | Byte to send |
|
inlinestatic |
Send and receive a byte.
data | to send. |
|
static |
Transfer a buffer of data without an rx buffer.
buf | Pointer to a buffer of data |
len | Length of the data |
|
inlinestatic |
Send and receive a number of bytes.
buf | Buffer to read from and write to. |
len | Buffer length. |
|
static |
Transfer a buffer of data.
tbuf | Transmit buffer |
rbuf | Receive buffer |
len | Length of the data |
|
inlinestatic |
Send and receive a number of bytes.
tbuf | Sending buffer. |
rbuf | Receive buffer. |
len | Buffer length. |
|
static |
Not implemented.
interruptNumber | ignored parameter. |
|
static |
Not implemented.
interruptNumber | ignored parameter. |