#include <applications/nrf_audio/src/modules/sd_card.h>
Read segment on the open file on the SD card.
- Parameters
-
| [out] | buf | Pointer to the buffer to write the read data into. |
| [in,out] | size | Number of bytes to be read from file. The actual read size will be returned. If the actual read size is 0, there will be a warning message which indicates that the file is empty. |
| [in,out] | f_seg_read_entry | Pointer to a file object. After call to this function, the pointer gets updated and can be used as entry in next function call. |
- Return values
-
| 0 | on success. |
| -EPERM | SD card operation is not ongoing. |
| -ENODEV | SD init failed. SD likely not inserted. |
| Otherwise,error | from underlying drivers. |