EasyManua.ls Logo

Espressif ESP32-S2 - Page 667

Espressif ESP32-S2
1695 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
add: Address of register to read. For SDIO, Valid address: 0-27, 32-63 (28-31 reserved, return
interrupt bits on read). For SPI, see essl_spi.h
value_o: Output value read from the register.
wait_ms: Millisecond to wait before timeout, will not wait at all if set to 0-9.
esp_err_t essl_wait_int(essl_handle_t handle, uint32_t wait_ms)
wait for an interrupt of the slave
Return
ESP_OK: If interrupt is triggered.
ESP_ERR_NOT_SUPPORTED: Current device does not support this function.
ESP_ERR_TIMEOUT: No interrupts before timeout.
Parameters
handle: Handle of an ESSL device.
wait_ms: Millisecond to wait before timeout, will not wait at all if set to 0-9.
esp_err_t essl_clear_intr(essl_handle_t handle, uint32_t intr_mask, uint32_t wait_ms)
Clear interrupt bits of ESSL slave. All the bits set in the mask will be cleared, while other bits will stay the
same.
Return
ESP_OK: Success
ESP_ERR_NOT_SUPPORTED: Current device does not support this function.
One of the error codes from SDMMC host controller
Parameters
handle: Handle of an ESSL device.
intr_mask: Mask of interrupt bits to clear.
wait_ms: Millisecond to wait before timeout, will not wait at all if set to 0-9.
esp_err_t essl_get_intr(essl_handle_t handle, uint32_t *intr_raw, uint32_t *intr_st, uint32_t wait_ms)
Get interrupt bits of ESSL slave.
Return
ESP_OK: Success
ESP_INVALID_ARG: If both intr_raw and intr_st are NULL.
ESP_ERR_NOT_SUPPORTED: Current device does not support this function.
One of the error codes from SDMMC host controller
Parameters
handle: Handle of an ESSL device.
intr_raw: Output of the raw interrupt bits. Set to NULL if only masked bits are read.
intr_st: Output of the masked interrupt bits. set to NULL if only raw bits are read.
wait_ms: Millisecond to wait before timeout, will not wait at all if set to 0-9.
esp_err_t essl_set_intr_ena(essl_handle_t handle, uint32_t ena_mask, uint32_t wait_ms)
Set interrupt enable bits of ESSL slave. The slave only sends interrupt on the line when there is a bit both the
raw status and the enable are set.
Return
ESP_OK: Success
ESP_ERR_NOT_SUPPORTED: Current device does not support this function.
One of the error codes from SDMMC host controller
Parameters
handle: Handle of an ESSL device.
ena_mask: Mask of the interrupt bits to enable.
wait_ms: Millisecond to wait before timeout, will not wait at all if set to 0-9.
esp_err_t essl_get_intr_ena(essl_handle_t handle, uint32_t *ena_mask_o, uint32_t wait_ms)
Get interrupt enable bits of ESSL slave.
Return
ESP_OK Success
One of the error codes from SDMMC host controller
Parameters
Espressif Systems 656
Submit Document Feedback
Release v4.4

Table of Contents