essl_read_reg() function
Read general purpose R/W registers (8-bit) of ESSL slave.
Arguments
handle
Handle of a ``essl`` device.
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.
Return value
- ESP_OK Success - One of the error codes from SDMMC/SPI host controller