MySensors Library & Examples  2.3.2
Public Member Functions | Static Public Member Functions | List of all members
SPIDEVClass Class Reference

Detailed Description

SPIDEV class

Definition at line 113 of file SPIDEV.h.

#include <SPIDEV.h>

+ Collaboration diagram for SPIDEVClass:

Public Member Functions

 SPIDEVClass ()
 SPIDEVClass constructor.
 

Static Public Member Functions

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

Member Function Documentation

◆ beginTransaction()

static void SPIDEVClass::beginTransaction ( SPISettings  settings)
static

Start SPI transaction.

Parameters
settingsfor SPI.

◆ chipSelect()

static void SPIDEVClass::chipSelect ( int  csn_chip)
static

Sets the chip select pin.

Parameters
csn_chipSpecifies the CS chip.

◆ notUsingInterrupt()

static void SPIDEVClass::notUsingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.

◆ setBitOrder()

static void SPIDEVClass::setBitOrder ( uint8_t  bit_order)
static

Sets the SPI bit order.

Parameters
bit_orderThe desired bit order.

◆ setClockDivider()

static void SPIDEVClass::setClockDivider ( uint16_t  divider)
static

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

Parameters
dividerThe desired SPI clock divider.

◆ setDataMode()

static void SPIDEVClass::setDataMode ( uint8_t  data_mode)
static

Sets the SPI data mode.

Parameters
data_modeThe desired data mode.

◆ transfer()

static uint8_t SPIDEVClass::transfer ( uint8_t  data)
static

Transfer a single byte.

Parameters
dataByte to send
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
bufPointer to a buffer of data
lenLength of the data

◆ transfernb()

static void SPIDEVClass::transfernb ( char *  tbuf,
char *  rbuf,
uint32_t  len 
)
static

Transfer a buffer of data.

Parameters
tbufTransmit buffer
rbufReceive buffer
lenLength of the data

◆ usingInterrupt()

static void SPIDEVClass::usingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.

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