| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 70 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 70 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
70 / 117 page ![]() ! 7. SPI Wi-Fi Passthrough 2-Interrupt Mode CLEAR_PERI_REG_MASK(SPI_SLAVE(HSPI), SPI_TRANS_DONE_EN| SPI_SLV_WR_STA_DONE_EN| SPI_SLV_RD_STA_DONE_EN| SPI_SLV_WR_BUF_DONE_EN| SPI_SLV_RD_BUF_DONE_EN); // resume the SPI slave to communicable status, in order to prepare for the next communication SET_PERI_REG_MASK(SPI_SLAVE(HSPI), SPI_SYNC_RESET); // clear the interrupt flag CLEAR_PERI_REG_MASK(SPI_SLAVE(HSPI), SPI_TRANS_DONE| SPI_SLV_WR_STA_DONE| SPI_SLV_RD_STA_DONE| SPI_SLV_WR_BUF_DONE| SPI_SLV_RD_BUF_DONE); // turn on the SPI interrupt enable SET_PERI_REG_MASK(SPI_SLAVE(HSPI), SPI_TRANS_DONE_EN| SPI_SLV_WR_STA_DONE_EN| SPI_SLV_RD_STA_DONE_EN| SPI_SLV_WR_BUF_DONE_EN| SPI_SLV_RD_BUF_DONE_EN); //MISO processing program if(regvalue&SPI_SLV_WR_BUF_DONE){ GPIO_OUTPUT_SET(0, 0); //GPIO0 set to be 0 idx=0; //read the data received while(idx<8){ recv_data=READ_PERI_REG(SPI_W0(HSPI)+4*idx); //os_printf("rcv data : 0x%x \n\r",recv_data); spi_data[4*idx+0] = recv_data&0xff; spi_data[4*idx+1] = (recv_data>>8)&0xff; spi_data[4*idx+2] = (recv_data>>16)&0xff; spi_data[4*idx+3] = (recv_data>>24)&0xff; Espressif ! /! 62 104 2017.05 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |