/hal_espressif-3.4.0/examples/peripherals/spi_slave_hd/segment_mode/seg_master/main/ |
D | app_main.c | 106 static esp_err_t wait_for_slave_ready(spi_device_handle_t spi) in wait_for_slave_ready() argument 114 ret = essl_spi_rdbuf(spi, (uint8_t *)&slave_ready_flag, SLAVE_READY_FLAG_REG, 4, 0); in wait_for_slave_ready() 129 static esp_err_t get_slave_max_buf_size(spi_device_handle_t spi, uint32_t *out_send_size, uint32_t … in get_slave_max_buf_size() argument 133 ret = essl_spi_rdbuf(spi, (uint8_t *)out_send_size, SLAVE_MAX_TX_BUF_LEN_REG, 4, 0); in get_slave_max_buf_size() 137 ret = essl_spi_rdbuf(spi, (uint8_t *)out_recv_size, SLAVE_MAX_RX_BUF_LEN_REG, 4, 0); in get_slave_max_buf_size() 149 static uint32_t get_slave_tx_buf_size(spi_device_handle_t spi) in get_slave_tx_buf_size() argument 154 … ESP_ERROR_CHECK(essl_spi_rdbuf_polling(spi, (uint8_t *)&temp, SLAVE_TX_READY_BUF_SIZE_REG, 4, 0)); in get_slave_tx_buf_size() 161 …ESP_ERROR_CHECK(essl_spi_rdbuf_polling(spi, (uint8_t *)&updated_size, SLAVE_TX_READY_BUF_SIZE_REG,… in get_slave_tx_buf_size() 173 static uint32_t get_slave_rx_buf_num(spi_device_handle_t spi) in get_slave_rx_buf_num() argument 178 … ESP_ERROR_CHECK(essl_spi_rdbuf_polling(spi, (uint8_t *)&temp, SLAVE_RX_READY_BUF_NUM_REG, 4, 0)); in get_slave_rx_buf_num() [all …]
|
/hal_espressif-3.4.0/examples/peripherals/spi_master/lcd/main/ |
D | spi_master_example_main.c | 187 void lcd_cmd(spi_device_handle_t spi, const uint8_t cmd) in lcd_cmd() argument 195 ret=spi_device_polling_transmit(spi, &t); //Transmit! in lcd_cmd() 206 void lcd_data(spi_device_handle_t spi, const uint8_t *data, int len) in lcd_data() argument 215 ret=spi_device_polling_transmit(spi, &t); //Transmit! in lcd_data() 227 uint32_t lcd_get_id(spi_device_handle_t spi) in lcd_get_id() argument 230 lcd_cmd(spi, 0x04); in lcd_get_id() 238 esp_err_t ret = spi_device_polling_transmit(spi, &t); in lcd_get_id() 245 void lcd_init(spi_device_handle_t spi) in lcd_init() argument 262 uint32_t lcd_id = lcd_get_id(spi); in lcd_init() 296 lcd_cmd(spi, lcd_init_cmds[cmd].cmd); in lcd_init() [all …]
|
/hal_espressif-3.4.0/components/esp_serial_slave_link/ |
D | essl_spi.c | 43 spi_device_handle_t spi; // Pointer to SPI device handle. member 101 esp_err_t essl_spi_rdbuf(spi_device_handle_t spi, uint8_t *out_data, int addr, int len, uint32_t fl… in essl_spi_rdbuf() argument 114 return spi_device_transmit(spi, (spi_transaction_t*)&t); in essl_spi_rdbuf() 117 esp_err_t essl_spi_rdbuf_polling(spi_device_handle_t spi, uint8_t *out_data, int addr, int len, uin… in essl_spi_rdbuf_polling() argument 130 return spi_device_polling_transmit(spi, (spi_transaction_t*)&t); in essl_spi_rdbuf_polling() 133 esp_err_t essl_spi_wrbuf(spi_device_handle_t spi, const uint8_t *data, int addr, int len, uint32_t … in essl_spi_wrbuf() argument 145 return spi_device_transmit(spi, (spi_transaction_t*)&t); in essl_spi_wrbuf() 148 esp_err_t essl_spi_wrbuf_polling(spi_device_handle_t spi, const uint8_t *data, int addr, int len, u… in essl_spi_wrbuf_polling() argument 160 return spi_device_polling_transmit(spi, (spi_transaction_t*)&t); in essl_spi_wrbuf_polling() 163 esp_err_t essl_spi_rddma_seg(spi_device_handle_t spi, uint8_t *out_data, int seg_len, uint32_t flag… in essl_spi_rddma_seg() argument [all …]
|
/hal_espressif-3.4.0/components/esp_serial_slave_link/include/esp_serial_slave_link/ |
D | essl_spi.h | 28 spi_device_handle_t *spi; ///< Pointer to SPI device handle. member 165 esp_err_t essl_spi_rdbuf(spi_device_handle_t spi, uint8_t *out_data, int addr, int len, uint32_t fl… 183 esp_err_t essl_spi_rdbuf_polling(spi_device_handle_t spi, uint8_t *out_data, int addr, int len, uin… 201 esp_err_t essl_spi_wrbuf(spi_device_handle_t spi, const uint8_t *data, int addr, int len, uint32_t … 219 esp_err_t essl_spi_wrbuf_polling(spi_device_handle_t spi, const uint8_t *data, int addr, int len, u… 238 esp_err_t essl_spi_rddma(spi_device_handle_t spi, uint8_t *out_data, int len, int seg_len, uint32_t… 253 esp_err_t essl_spi_rddma_seg(spi_device_handle_t spi, uint8_t *out_data, int seg_len, uint32_t flag… 268 esp_err_t essl_spi_rddma_done(spi_device_handle_t spi, uint32_t flags); 287 esp_err_t essl_spi_wrdma(spi_device_handle_t spi, const uint8_t *data, int len, int seg_len, uint32… 302 esp_err_t essl_spi_wrdma_seg(spi_device_handle_t spi, const uint8_t *data, int seg_len, uint32_t fl… [all …]
|
/hal_espressif-3.4.0/components/spi_flash/esp32/ |
D | spi_flash_rom_patch.c | 31 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi) in esp_rom_spiflash_wait_idle() argument 47 if ( ESP_ROM_SPIFLASH_RESULT_OK != esp_rom_spiflash_read_status(spi, &status)) { in esp_rom_spiflash_wait_idle() 119 static esp_rom_spiflash_result_t esp_rom_spiflash_enable_write(esp_rom_spiflash_chip_t *spi); 122 static esp_rom_spiflash_result_t esp_rom_spiflash_erase_chip_internal(esp_rom_spiflash_chip_t *spi) in esp_rom_spiflash_erase_chip_internal() argument 124 esp_rom_spiflash_wait_idle(spi); in esp_rom_spiflash_erase_chip_internal() 131 esp_rom_spiflash_wait_idle(spi); in esp_rom_spiflash_erase_chip_internal() 137 …iflash_result_t esp_rom_spiflash_erase_sector_internal(esp_rom_spiflash_chip_t *spi, uint32_t addr) in esp_rom_spiflash_erase_sector_internal() argument 144 esp_rom_spiflash_wait_idle(spi); in esp_rom_spiflash_erase_sector_internal() 151 esp_rom_spiflash_wait_idle(spi); in esp_rom_spiflash_erase_sector_internal() 157 static esp_rom_spiflash_result_t esp_rom_spiflash_erase_block_internal(esp_rom_spiflash_chip_t *spi… in esp_rom_spiflash_erase_block_internal() argument [all …]
|
/hal_espressif-3.4.0/examples/peripherals/spi_master/hd_eeprom/components/eeprom/ |
D | spi_eeprom.c | 47 spi_device_handle_t spi; ///< SPI device handle member 73 return spi_device_polling_transmit(ctx->spi, &t); in eeprom_simple_cmd() 130 spi_bus_remove_device(ctx->spi); in spi_eeprom_deinit() 169 err = spi_bus_add_device(ctx->cfg.host, &devcfg, &ctx->spi); in spi_eeprom_init() 199 if (ctx->spi) { in spi_eeprom_init() 200 spi_bus_remove_device(ctx->spi); in spi_eeprom_init() 201 ctx->spi = NULL; in spi_eeprom_init() 219 esp_err_t err = spi_device_polling_transmit(ctx->spi, &t); in spi_eeprom_read() 229 err = spi_device_acquire_bus(ctx->spi, portMAX_DELAY); in spi_eeprom_erase() 238 spi_device_release_bus(ctx->spi); in spi_eeprom_erase() [all …]
|
/hal_espressif-3.4.0/components/driver/test/ |
D | test_spi_slave_hd.c | 97 static void init_master_hd(spi_device_handle_t* spi, const spitest_param_set_t* config, int freq) in init_master_hd() argument 116 TEST_ESP_OK(spi_bus_add_device(TEST_SPI_HOST, &dev_cfg, spi)); in init_master_hd() 213 static void test_hd_start(spi_device_handle_t *spi, int freq, const spitest_param_set_t* cfg, testh… in test_hd_start() argument 215 init_master_hd(spi, cfg, freq); in test_hd_start() 269 void test_wrdma(testhd_context_t* ctx, const spitest_param_set_t *cfg, spi_device_handle_t spi) in test_wrdma() argument 277 … TEST_ESP_OK(essl_spi_wrdma(spi, &ctx->master_wrdma_buf[pos], len, test_seg_size, get_hd_flags())); in test_wrdma() 295 void test_rddma(testhd_context_t* ctx, const spitest_param_set_t* cfg, spi_device_handle_t spi) in test_rddma() argument 307 TEST_ESP_OK(essl_spi_rddma(spi, ctx->master_rddma_buf, len, test_seg_size, get_hd_flags())); in test_rddma() 336 spi_device_handle_t spi; in test_hd_loop() local 343 test_hd_start(&spi, freq, test_cfg, context); in test_hd_loop() [all …]
|
D | test_spi_master.c | 302 spi_device_handle_t spi; in test_master_pins() local 303 ret = spi_bus_add_device(TEST_SPI_HOST, &master_cfg, &spi); in test_master_pins() 309 master_free_device_bus(spi); in test_master_pins() 543 spi_device_handle_t spi; variable 572 TEST_ESP_OK(spi_bus_add_device(host, &device_config, &spi)); 575 TEST_ESP_OK(spi_device_transmit(spi, &transaction)); 578 TEST_ESP_OK(spi_bus_remove_device(spi)); 584 TEST_ESP_OK(spi_bus_add_device(host, &device_config, &spi)); 588 TEST_ESP_OK(spi_device_transmit(spi, &transaction)); 592 TEST_ESP_OK(spi_bus_remove_device(spi)); [all …]
|
D | test_spi_slave.c | 26 static spi_device_handle_t spi; variable 41 static void master_init( spi_device_handle_t* spi) in master_init() argument 64 ret=spi_bus_add_device(TEST_SPI_HOST, &devcfg, spi); in master_init() 99 master_init( &spi ); in custom_setup() 112 TEST_ASSERT(spi_bus_remove_device(spi) == ESP_OK); in custom_teardown() 143 spi_device_transmit( spi, (spi_transaction_t*)&t ); 189 spi_device_transmit( spi, (spi_transaction_t*)&t ); 237 spi_device_transmit( spi, (spi_transaction_t*)&t ); 285 spi_device_handle_t spi; in unaligned_test_master() local 289 TEST_ESP_OK(spi_bus_add_device(TEST_SPI_HOST, &devcfg, &spi)); in unaligned_test_master() [all …]
|
D | test_spi_sio.c | 40 spi_device_handle_t spi; variable 65 TEST_ESP_OK(spi_bus_add_device(TEST_SPI_HOST, &dev_cfg, &spi)); 93 TEST_ESP_OK(spi_device_transmit(spi, &master_t)); 108 master_free_device_bus(spi); 121 spi_device_handle_t spi; in test_sio_master_round() local 138 TEST_ESP_OK(spi_bus_add_device(TEST_SPI_HOST, &dev_cfg, &spi)); in test_sio_master_round() 154 TEST_ESP_OK(spi_device_transmit(spi, &t)); in test_sio_master_round() 164 master_free_device_bus(spi); in test_sio_master_round()
|
D | test_spi_param.c | 61 static void local_test_start(spi_device_handle_t *spi, int freq, const spitest_param_set_t* pset, s… in local_test_start() argument 109 TEST_ESP_OK(spi_bus_add_device(TEST_SPI_HOST, &devcfg, spi)); in local_test_start() 140 static void local_test_end(spi_device_handle_t spi) in local_test_end() argument 142 master_free_device_bus(spi); in local_test_end() 150 spi_device_handle_t spi; in local_test_loop() local 169 local_test_start(&spi, freq, pset, context); in local_test_loop() 188 err = spi_device_transmit(spi, t); in local_test_loop() 226 local_test_end(spi); in local_test_loop() 547 spi_device_handle_t spi; in TEST_SPI_LOCAL() local 558 local_test_start(&spi, 1000*1000, &test_param, NULL); in TEST_SPI_LOCAL() [all …]
|
D | test_common_spi.c | 54 context->spi=TEST_SLAVE_HOST; in init_slave_context() 92 TEST_ESP_OK( spi_slave_transmit( context->spi, &t, portMAX_DELAY ) ); in spitest_slave_task() 203 void master_free_device_bus(spi_device_handle_t spi) in master_free_device_bus() argument 205 TEST_ESP_OK( spi_bus_remove_device(spi) ); in master_free_device_bus()
|
/hal_espressif-3.4.0/examples/peripherals/spi_slave_hd/append_mode/master/main/ |
D | app_main.c | 33 spi_device_handle_t spi; in init_driver() local 54 ESP_ERROR_CHECK(spi_bus_add_device(HOST_ID, &dev_cfg, &spi)); in init_driver() 55 *out_spi = spi; in init_driver() 58 .spi = &spi, in init_driver() 142 spi_device_handle_t spi; in app_main() local 144 init_driver(&spi, &essl); in app_main() 157 ESP_ERROR_CHECK(spi_bus_remove_device(spi)); in app_main()
|
/hal_espressif-3.4.0/components/esp_rom/include/esp32/rom/ |
D | spi_flash.h | 177 void esp_rom_spiflash_fix_dummylen(uint8_t spi, uint8_t freqdiv); 246 esp_rom_spiflash_result_t esp_rom_spiflash_read_status(esp_rom_spiflash_chip_t *spi, uint32_t *stat… 260 esp_rom_spiflash_result_t esp_rom_spiflash_read_statushigh(esp_rom_spiflash_chip_t *spi, uint32_t *… 274 esp_rom_spiflash_result_t esp_rom_spiflash_write_status(esp_rom_spiflash_chip_t *spi, uint32_t stat… 316 esp_rom_spiflash_result_t esp_rom_spiflash_config_clk(uint8_t freqdiv, uint8_t spi); 526 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi);
|
/hal_espressif-3.4.0/components/esp_rom/include/esp32s2/rom/ |
D | spi_flash.h | 173 void esp_rom_spiflash_fix_dummylen(uint8_t spi, uint8_t freqdiv); 242 esp_rom_spiflash_result_t esp_rom_spiflash_read_status(esp_rom_spiflash_chip_t *spi, uint32_t *stat… 256 esp_rom_spiflash_result_t esp_rom_spiflash_read_statushigh(esp_rom_spiflash_chip_t *spi, uint32_t *… 270 esp_rom_spiflash_result_t esp_rom_spiflash_write_status(esp_rom_spiflash_chip_t *spi, uint32_t stat… 312 esp_rom_spiflash_result_t esp_rom_spiflash_config_clk(uint8_t freqdiv, uint8_t spi); 535 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi);
|
/hal_espressif-3.4.0/components/esptool_py/esptool/docs/en/esptool/ |
D | advanced-options.rst | 53 …The optional ``--spi-connection`` argument overrides the SPI flash connection configuration on ESP… 55 …Supply the ``--spi-connection`` argument after the ``esptool.py`` command, ie ``esptool.py flash_i… 60 …If the ``--spi-connection`` argument is not provided, the SPI flash is configured to use :ref:`pin… 62 …rovided. In this case, efuse values are ignored and ``--spi-connection`` will default to ``--spi-c… 67 ``--spi-connection SPI`` uses the default SPI pins: 82 …``--spi-connection HSPI`` uses the HSPI peripheral instead of the SPI peripheral for SPI flash com… 95 …``--spi-connection <CLK>,<Q>,<D>,<HD>,<CS>`` allows a custom list of pins to be configured for the… 97 …For example, ``--spi-connection 6,17,8,11,16`` sets an identical configuration to the factory efus…
|
/hal_espressif-3.4.0/components/esp_rom/include/esp32c3/rom/ |
D | spi_flash.h | 132 void esp_rom_spiflash_fix_dummylen(uint8_t spi, uint8_t freqdiv); 201 esp_rom_spiflash_result_t esp_rom_spiflash_read_status(esp_rom_spiflash_chip_t *spi, uint32_t *stat… 215 esp_rom_spiflash_result_t esp_rom_spiflash_read_statushigh(esp_rom_spiflash_chip_t *spi, uint32_t *… 229 esp_rom_spiflash_result_t esp_rom_spiflash_write_status(esp_rom_spiflash_chip_t *spi, uint32_t stat… 271 esp_rom_spiflash_result_t esp_rom_spiflash_config_clk(uint8_t freqdiv, uint8_t spi); 493 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi);
|
/hal_espressif-3.4.0/components/esp_rom/include/esp32h2/rom/ |
D | spi_flash.h | 132 void esp_rom_spiflash_fix_dummylen(uint8_t spi, uint8_t freqdiv); 201 esp_rom_spiflash_result_t esp_rom_spiflash_read_status(esp_rom_spiflash_chip_t *spi, uint32_t *stat… 215 esp_rom_spiflash_result_t esp_rom_spiflash_read_statushigh(esp_rom_spiflash_chip_t *spi, uint32_t *… 229 esp_rom_spiflash_result_t esp_rom_spiflash_write_status(esp_rom_spiflash_chip_t *spi, uint32_t stat… 271 esp_rom_spiflash_result_t esp_rom_spiflash_config_clk(uint8_t freqdiv, uint8_t spi); 493 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi);
|
/hal_espressif-3.4.0/components/esp_rom/include/esp32s3/rom/ |
D | spi_flash.h | 194 void esp_rom_spiflash_fix_dummylen(uint8_t spi, uint8_t freqdiv); 263 esp_rom_spiflash_result_t esp_rom_spiflash_read_status(esp_rom_spiflash_chip_t *spi, uint32_t *stat… 277 esp_rom_spiflash_result_t esp_rom_spiflash_read_statushigh(esp_rom_spiflash_chip_t *spi, uint32_t *… 291 esp_rom_spiflash_result_t esp_rom_spiflash_write_status(esp_rom_spiflash_chip_t *spi, uint32_t stat… 333 esp_rom_spiflash_result_t esp_rom_spiflash_config_clk(uint8_t freqdiv, uint8_t spi); 556 esp_rom_spiflash_result_t esp_rom_spiflash_wait_idle(esp_rom_spiflash_chip_t *spi);
|
/hal_espressif-3.4.0/docs/zh_CN/api-guides/ |
D | unit-tests-legacy.rst | 204 (14) "SPI Master clockdiv calculation routines" [spi] 205 (15) "SPI Master test" [spi][ignore] 206 (16) "SPI Master test, interaction of multiple devs" [spi][ignore] 207 (17) "SPI Master no response when switch from host1 (SPI2) to host2 (SPI3)" [spi] 208 (18) "SPI Master DMA test, TX and RX in different regions" [spi] 209 (19) "SPI Master DMA test: length, start, not aligned" [spi]
|
D | unit-tests.rst | 206 (14) "SPI Master clockdiv calculation routines" [spi] 207 (15) "SPI Master test" [spi][ignore] 208 (16) "SPI Master test, interaction of multiple devs" [spi][ignore] 209 (17) "SPI Master no response when switch from host1 (SPI2) to host2 (SPI3)" [spi] 210 (18) "SPI Master DMA test, TX and RX in different regions" [spi] 211 (19) "SPI Master DMA test: length, start, not aligned" [spi]
|
D | memory-types.rst | 112 spi_device_transmit( spi, &temp ); 128 spi_device_transmit( spi, &temp ); 151 spi_device_transmit( spi, &temp );
|
/hal_espressif-3.4.0/components/hal/ |
D | spi_flash_hal.c | 108 .spi = spi_flash_ll_get_hw(cfg->host_id), in spi_flash_hal_init() 147 bool direct_write = ( ((spi_flash_hal_context_t *)host)->spi != spi_flash_ll_get_hw(SPI1_HOST) in spi_flash_hal_supports_direct_write() 156 bool direct_read = ( ((spi_flash_hal_context_t *)host)->spi != spi_flash_ll_get_hw(SPI1_HOST) in spi_flash_hal_supports_direct_read()
|
D | spi_flash_hal_iram.c | 101 return ((spi_flash_hal_context_t*)host)->spi; in get_spi_dev() 190 spimem_flash_ll_resume((spi_mem_dev_t*)(((spi_flash_hal_context_t *)host)->spi)); in spi_flash_hal_resume() 199 spimem_flash_ll_suspend((spi_mem_dev_t *)(((spi_flash_hal_context_t *)host)->spi)); in spi_flash_hal_suspend()
|
/hal_espressif-3.4.0/examples/peripherals/spi_slave/ |
D | README.md | 3 …fined in app_main.c. Once connected and flashed, they will use the spi master and spi slave driver…
|