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

Detailed Description

SPIBCM class

Definition at line 160 of file SPIBCM.h.

#include <SPIBCM.h>

+ Collaboration diagram for SPIBCMClass:

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

Member Function Documentation

◆ beginTransaction()

static void SPIBCMClass::beginTransaction ( SPISettings  settings)
static

Start SPI transaction.

Parameters
settingsfor SPI.

◆ chipSelect()

static void SPIBCMClass::chipSelect ( int  csn_pin)
static

Sets the chip select pin.

Parameters
csn_pinSpecifies the CS pin.

◆ notUsingInterrupt()

static void SPIBCMClass::notUsingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.

◆ setBitOrder()

static void SPIBCMClass::setBitOrder ( uint8_t  bit_order)
static

Sets the SPI bit order.

Parameters
bit_orderThe desired bit order.

◆ setClockDivider()

static void SPIBCMClass::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 SPIBCMClass::setDataMode ( uint8_t  data_mode)
static

Sets the SPI data mode.

Parameters
data_modeThe desired data mode.

◆ transfer()

uint8_t SPIBCMClass::transfer ( uint8_t  data)
inlinestatic

Send and receive a byte.

Parameters
datato send.
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
bufBuffer to read from and write to.
lenBuffer 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
tbufSending buffer.
rbufReceive buffer.
lenBuffer length.

Definition at line 250 of file SPIBCM.h.

◆ usingInterrupt()

static void SPIBCMClass::usingInterrupt ( uint8_t  interruptNumber)
static

Not implemented.

Parameters
interruptNumberignored parameter.

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