ESP-IDF
SPI_USER_REG
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
SPI_USER_REG
SPI_USER_REG macro
Syntax
Show:
Summary
Declaration
from
spi_reg.h:342
#define
SPI_USER_REG
(
i
)
(
REG_SPI_BASE
(
i
)
+
0x1C
)
Arguments
Argument
i
Examples
References
from
examples
Code
Location
#define
SPI_USER_REG
(
i
)
(
REG_SPI_BASE
(
i
)
+
0x1C
)
spi_reg.h:342
SET_PERI_REG_MASK
(
SPI_USER_REG
(
0
)
,
SPI_CS_HOLD_M
|
SPI_CS_SETUP_M
)
;
bootloader_flash_config_esp32.c:50
SET_PERI_REG_MASK
(
SPI_USER_REG
(
1
)
,
SPI_CS_HOLD_M
|
SPI_CS_SETUP_M
)
;
bootloader_flash_config_esp32.c:53
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_QIO
)
;
esp_psram_impl_quad.c:264
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_DIO
)
;
esp_psram_impl_quad.c:265
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_QUAD
)
;
esp_psram_impl_quad.c:266
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_DUAL
)
;
esp_psram_impl_quad.c:267
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_QIO
)
;
esp_psram_impl_quad.c:272
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_DIO
)
;
esp_psram_impl_quad.c:273
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_QUAD
)
;
esp_psram_impl_quad.c:274
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_FWRITE_DUAL
)
;
esp_psram_impl_quad.c:275
uint32_t
mode_backup
=
(
READ_PERI_REG
(
SPI_USER_REG
(
spi_num
)
)
>
>
SPI_FWRITE_DUAL_S
)
&
0xf
;
esp_psram_impl_quad.c:302
SET_PERI_REG_BITS
(
SPI_USER_REG
(
spi_num
)
,
(
pRxData
?
SPI_FWRITE_DUAL_M
:
0xf
)
,
mode_backup
,
SPI_FWRITE_DUAL_S
)
;
esp_psram_impl_quad.c:322
backup_usr
[
spi_num
]
=
READ_PERI_REG
(
SPI_USER_REG
(
spi_num
)
)
;
esp_psram_impl_quad.c:347
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_COMMAND
)
;
esp_psram_impl_quad.c:356
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_COMMAND
)
;
esp_psram_impl_quad.c:360
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_ADDR
)
;
esp_psram_impl_quad.c:367
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_ADDR
)
;
esp_psram_impl_quad.c:371
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_MOSI
)
;
esp_psram_impl_quad.c:378
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_MOSI
)
;
esp_psram_impl_quad.c:388
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_MISO
)
;
esp_psram_impl_quad.c:394
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_USR_MISO
)
;
esp_psram_impl_quad.c:399
SET_PERI_REG_MASK
(
SPI_USER_REG
(
PSRAM_SPI_1
)
,
SPI_USR_DUMMY
)
;
// dummy en
esp_psram_impl_quad.c:403
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
PSRAM_SPI_1
)
,
SPI_USR_DUMMY
)
;
// dummy en
esp_psram_impl_quad.c:407
WRITE_PERI_REG
(
SPI_USER_REG
(
spi_num
)
,
backup_usr
[
spi_num
]
)
;
esp_psram_impl_quad.c:416
SET_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_CS_HOLD_M
|
SPI_CS_SETUP_M
)
;
esp_psram_impl_quad.c:706
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_CS_HOLD_M
|
SPI_CS_SETUP_M
)
;
esp_psram_impl_quad.c:711
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_CK_OUT_EDGE
)
;
esp_psram_impl_quad.c:721
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
spi_num
)
,
SPI_DOUTDIN
)
;
esp_psram_impl_quad.c:726
SET_PERI_REG_MASK
(
SPI_USER_REG
(
0
)
,
SPI_USR_DUMMY
)
;
// dummy enable
esp_psram_impl_quad.c:788
CLEAR_PERI_REG_MASK
(
SPI_USER_REG
(
PSRAM_SPI_1
)
,
SPI_USR_PREP_HOLD_M
)
;
esp_psram_impl_quad.c:945
REG_CLR_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MOSI
)
;
esp_rom_spiflash.c:342
REG_SET_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MISO
|
SPI_USR_DUMMY
|
SPI_USR_ADDR
)
;
esp_rom_spiflash.c:343
REG_CLR_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MOSI
)
;
esp_rom_spiflash.c:348
REG_SET_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MISO
|
SPI_USR_DUMMY
|
SPI_USR_ADDR
)
;
esp_rom_spiflash.c:349
REG_CLR_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MOSI
)
;
esp_rom_spiflash.c:366
REG_CLR_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_DUMMY
)
;
esp_rom_spiflash.c:368
REG_SET_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_DUMMY
)
;
esp_rom_spiflash.c:370
REG_SET_BIT
(
SPI_USER_REG
(
0
)
,
SPI_USR_MISO
|
SPI_USR_ADDR
)
;
esp_rom_spiflash.c:373
#define
PERIPHS_SPI_FLASH_USRREG
SPI_USER_REG
(
1
)
spi_flash.h:55
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out