Home
last modified time | relevance | path

Searched refs:bytes_can_read (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/driver/
Di2s.c2170 int bytes_can_read; in i2s_read() local
2188 bytes_can_read = p_i2s[i2s_num]->rx->buf_size - p_i2s[i2s_num]->rx->rw_pos; in i2s_read()
2189 if (bytes_can_read > (int)size) { in i2s_read()
2190 bytes_can_read = size; in i2s_read()
2192 memcpy(dest_byte, data_ptr, bytes_can_read); in i2s_read()
2193 size -= bytes_can_read; in i2s_read()
2194 dest_byte += bytes_can_read; in i2s_read()
2195 p_i2s[i2s_num]->rx->rw_pos += bytes_can_read; in i2s_read()
2196 (*bytes_read) += bytes_can_read; in i2s_read()