Espressif ESP32-S2 Programming Manual page 667

Table of Contents

Advertisement

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
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
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
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
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
Get interrupt enable bits of ESSL slave.
Return
• ESP_OK Success
• One of the error codes from SDMMC host controller
Parameters
Espressif Systems
handle, uint32_t wait_ms)
handle, uint32_t intr_mask, uint32_t wait_ms)
handle, uint32_t *intr_raw, uint32_t *intr_st, uint32_t wait_ms)
handle, uint32_t ena_mask, uint32_t wait_ms)
handle, uint32_t *ena_mask_o, uint32_t wait_ms)
656
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF