Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
SPIClass Class Reference
Inheritance diagram for SPIClass:
SPIBase

Public Member Functions

virtual void begin ()
 begin(): Initializes the SPI bus by setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low, and SS high. More...
 
virtual void end ()
 end() More...
 
virtual void beginTransaction (SPISettings mySettings)
 beginTransaction() More...
 
virtual void endTransaction ()
 endTransaction() More...
 
virtual unsigned char transfer (unsigned char val)
 transfer() More...
 
uint8 read8 ()
 read8() read a byte from SPI without setting up registers More...
 
virtual unsigned short transfer16 (unsigned short val)
 transfer16() More...
 
virtual void transfer (uint8 *buffer, size_t numberBytes)
 transfer(uint8 *buffer, size_t numberBytes) More...
 

Public Attributes

SPISettings SPIDefaultSettings = SPISettings(4000000, MSBFIRST, SPI_MODE0)
 Default settings used by the SPI bus until reset by beginTransaction(SPISettings) More...