Get the data of CIS region of an SDIO card. You may provide a buffer not sufficient to store all the CIS data. In this case, this function stores as much data into your buffer as possible. Also, this function will try to get and return the size required for you.
pointer to card information structure previously initialized using sdmmc_card_init
out_buffer
Output buffer of the CIS data
buffer_size
Size of the buffer.
inout_cis_size
Mandatory, pointer to a size, input and output. - input: Limitation of maximum searching range, should be 0 or larger than buffer_size. The function searches for CIS_CODE_END until this range. Set to 0 to search infinitely. - output: The size required to store all the CIS data, if CIS_CODE_END is found.
Return value
- ESP_OK: on success - ESP_ERR_INVALID_RESPONSE: if the card does not (correctly) support CIS. - ESP_ERR_INVALID_SIZE: CIS_CODE_END found, but buffer_size is less than required size, which is stored in the inout_cis_size then. - ESP_ERR_NOT_FOUND: if the CIS_CODE_END not found. Increase input value of inout_cis_size or set it to 0, if you still want to search for the end; output value of inout_cis_size is invalid in this case. - and other error code return from sdmmc_io_read_bytes
Related Functions
Found 90 other functions taking a sdmmc_card_t
argument:
Read multiple bytes from an SDIO card using IO_RW_EXTENDED (CMD53) This function performs read operation using CMD53 in byte mode. For block mode, see sdmmc_io_read_blocks. By default OP Code is set (incrementing address). To send CMD53 without this bit, OR the argument `addr` with `SDMMC_IO_FIXED_ADDR`.
Write multiple bytes to an SDIO card using IO_RW_EXTENDED (CMD53) This function performs write operation using CMD53 in byte mode. For block mode, see sdmmc_io_write_blocks. By default OP Code is set (incrementing address). To send CMD53 without this bit, OR the argument `addr` with `SDMMC_IO_FIXED_ADDR`.
Read blocks of data from an SDIO card using IO_RW_EXTENDED (CMD53) This function performs read operation using CMD53 in block mode. For byte mode, see sdmmc_io_read_bytes. By default OP Code is set (incrementing address). To send CMD53 without this bit, OR the argument `addr` with `SDMMC_IO_FIXED_ADDR`.
Write blocks of data to an SDIO card using IO_RW_EXTENDED (CMD53) This function performs write operation using CMD53 in block mode. For byte mode, see sdmmc_io_write_bytes. By default OP Code is set (incrementing address). To send CMD53 without this bit, OR the argument `addr` with `SDMMC_IO_FIXED_ADDR`.
Block until an SDIO interrupt is received Slave uses D1 line to signal interrupt condition to the host. This function can be used to wait for the interrupt.