MySensors Library & Examples  9ecb785
Public Member Functions | Static Public Member Functions | List of all members
SPIClass Class Reference

#include <SPI.h>

Collaboration diagram for SPIClass:
Collaboration graph

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...
 

Detailed Description

SPIClass class

Member Function Documentation

static void SPIClass::beginTransaction ( SPISettings  settings)
static

Start SPI transaction.

Parameters
settingsfor SPI.
static void SPIClass::beginTransaction ( SPISettings  settings)
static

Start SPI transaction.

Parameters
settingsfor SPI.
static void SPIClass::chipSelect ( int  csn_chip)
static

Sets the chip select pin.

Parameters
csn_chipSpecifies the CS chip.
static void SPIClass::chipSelect ( int  csn_pin)
static

Sets the chip select pin.

Parameters
csn_pinSpecifies the CS pin.
static void SPIClass::notUsingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.
static void SPIClass::notUsingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.
static void SPIClass::setBitOrder ( uint8_t  bit_order)
static

Sets the SPI bit order.

Parameters
bit_orderThe desired bit order.
static void SPIClass::setBitOrder ( uint8_t  bit_order)
static

Sets the SPI bit order.

Parameters
bit_orderThe desired bit order.
static void SPIClass::setClockDivider ( uint16_t  divider)
static

Sets the SPI clock divider and therefore the SPI clock speed.

Parameters
dividerThe desired SPI clock divider.
static void SPIClass::setClockDivider ( uint16_t  divider)
static

Sets the SPI clock divider and therefore the SPI clock speed.

Parameters
dividerThe desired SPI clock divider.
static void SPIClass::setDataMode ( uint8_t  data_mode)
static

Sets the SPI data mode.

Parameters
data_modeThe desired data mode.
static void SPIClass::setDataMode ( uint8_t  data_mode)
static

Sets the SPI data mode.

Parameters
data_modeThe desired data mode.
static uint8_t SPIClass::transfer ( uint8_t  data)
static

Transfer a single byte.

Parameters
dataByte to send
Returns
Data returned via spi
uint8_t SPIClass::transfer ( uint8_t  data)
inlinestatic

Send and receive a byte.

Parameters
datato send.
Returns
byte received.
static void SPIClass::transfern ( char *  buf,
uint32_t  len 
)
static

Transfer a buffer of data without an rx buffer.

Parameters
bufPointer to a buffer of data
lenLength of the data
void SPIClass::transfern ( char *  buf,
uint32_t  len 
)
inlinestatic

Send and receive a number of bytes.

Parameters
bufBuffer to read from and write to.
lenBuffer length.
static void SPIClass::transfernb ( char *  tbuf,
char *  rbuf,
uint32_t  len 
)
static

Transfer a buffer of data.

Parameters
tbufTransmit buffer
rbufReceive buffer
lenLength of the data
void SPIClass::transfernb ( char *  tbuf,
char *  rbuf,
uint32_t  len 
)
inlinestatic

Send and receive a number of bytes.

Parameters
tbufSending buffer.
rbufReceive buffer.
lenBuffer length.
static void SPIClass::usingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.
static void SPIClass::usingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.

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