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

Public Member Functions

virtual void begin ()=0
 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 ()=0
 end(): Disables the SPI bus (leaving pin modes unchanged). More...
 
virtual void beginTransaction (SPISettings mySettings)=0
 beginTransaction(): Initializes the SPI bus using the defined SPISettings. More...
 
virtual void endTransaction ()=0
 endTransaction(): Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus. More...
 
virtual unsigned char transfer (unsigned char val)=0
 transfer(), transfer16() More...
 
virtual unsigned short transfer16 (unsigned short val)=0
 
virtual void transfer (uint8 *buffer, size_t size)=0
 

Public Attributes

SPISettings SPIDefaultSettings
 Default settings used by the SPI bus until reset by beginTransaction(SPISettings) More...