| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 63 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 63 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
63 / 117 page ![]() ! 6. SPI Wi-Fi Passthrough 1-Interrupt Mode if(regvalue&SPI_SLV_WR_BUF_DONE){ //*****complete the write operation, wr_busy set to be 1, communication count increases by 1****// spi_sta.byte_value=READ_PERI_REG(SPI_STATUS(HSPI))&0xff; spi_sta.elm_value.wr_busy=1; spi_sta.elm_value.comm_cnt++; WRITE_PERI_REG(SPI_STATUS(HSPI), (uint32)spi_sta.byte_value); //**********************************************// //*******move the data received by the register into the memory******// idx=0; while(idx<8){ recv_data=READ_PERI_REG(SPI_W0(HSPI)+ (idx<<2)); //os_printf("rcv data : 0x%x \n\r",recv_data); spi_data[idx<<2] = recv_data&0xff; spi_data[(idx<<2)+1] = (recv_data>>8)&0xff; spi_data[(idx<<2)+2] = (recv_data>>16)&0xff; spi_data[(idx<<2)+3] = (recv_data>>24)&0xff; idx++; } //***********************************// //************data transmission completed, wr_busy set to be 0*************// spi_sta.byte_value=READ_PERI_REG(SPI_STATUS(HSPI))&0xff; spi_sta.elm_value.wr_busy=0; WRITE_PERI_REG(SPI_STATUS(HSPI), (uint32)spi_sta.byte_value); // ************************************************// /***testing part, it can be revised. This part of the program is used to copy the data read to the read buffer**/ Espressif ! /! 55 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 |