drivers/storage/spi_sdcard.c
/*
 * sd_read_byte_ignore_char - helper function to read data from SPI buffer
 *
 * @ignore - the byte that we want to ignores
 *
 *  This function doesn't perform read transactions but it operates on the
 *  data that has already been buffered in a local buffer. It updates the
 *  index from the local buffer and it returns the first byte that is
 *  different from the one that we specify in 'ignore'.
 */
helper function to read data from SPI buffer
@ignore - the byte that we want to ignores

This function doesn't perform read transactions but it operates on the
data that has already been buffered in a local buffer. It updates the
index from the local buffer and it returns the first byte that is
different from the one that we specify in 'ignore'.
helper function to read data from SPI buffer @ignore - the byte that we want to ignores This function doesn ' t perform read transactions but it operates on the data that has already been buffered in a local buffer . It updates the index from the local buffer and it returns the first byte that is different from the one that we specify in ' ignore ' .
static uint8_t sd_read_byte_ignore_char(uint8_t ignore)
{
  for (g_rsp_index; g_rsp_index < sizeof(g_sd_resp); g_rsp_index++)
    if (g_sd_resp[g_rsp_index] != ignore) {
      g_rsp_index++;
      return g_sd_resp[g_rsp_index - 1];
    }
  return 0xFF;
}
static uint8_t sd_read_byte_ignore_char ( uint8_t ignore ) { for ( g_rsp_index ; g_rsp_index < sizeof ( g_sd_resp ) ; g_rsp_index ++ ) if ( g_sd_resp [ g_rsp_index ] != ignore ) { g_rsp_index ++ ; return g_sd_resp [ g_rsp_index - 1 ] ; } return 0xFF ; }
sd_read_byte_ignore_char - helper function to read data from SPI buffer
 @ignore - the byte that we want to ignores
sd_read_byte_ignore_char - helper function to read data from SPI buffer @ignore - the byte that we want to ignores