Api Description - Espressif ESP8266 Technical Reference

Hide thumbs Also See for ESP8266:
Table of Contents

Advertisement

!
SPI OVERLAP and CS1
SPI OVERLAP and CS2
! Note:
The pins used when HSPI operates with the Flash in OVERLAP mode is completely the same with that of SPI
communication.

8.3. API Description

Names of the connection modes supported by the system are defined by macro definitions
in \app\include \driver\spi_overlap.h.
HSPI_CS_DEV (HSPI default IO)
SPI_CS1_DEV (SPI OVERLAP and CS1)
SPI_CS2_DEV (SPI OVERLAP and CS2)
Operation with the Flash is defined as SPI_CS0_FLASH. If HSPI operates with two user
devices, the API function is shown as below:
void hspi_master_dev_init(uint8 dev_no,uint8 clk_polar,uint8 clk_div)
Function
Location
Espressif
Mode
Pin Name of Host ESP8266
MTMS
U0TXD
SD_CLK
SD_DATA0
SD_DATA1
GPIO0
SD_CLK
SD_DATA0
SD_DATA1
This function is used to initialize connection of HSPI host. Altogether four user devices can be
operated. If multi devices communicate with the host using SPI communication mode, the
function should be called each time when that certain device is operated.
Defined in directory \app\include\driver\spi_overlap.h, implemented in directory \app\driver
\spi_overlap.c.
47 86
!
/!
8. HSPI Host Multi-device API
SPI bus Signal Line
CLK
CS1
SCLK
MISO
MOSI
CS2
SCLK
MISO
MOSI
2016.05

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF