![]() |
nRF Connect SDK API 3.3.99
|
| int sd_card_open | ( | char const *const | filename, |
| struct fs_file_t * | f_seg_read_entry ) |
#include <applications/nrf_audio/src/modules/sd_card.h>
Open file on SD card.
| [in] | filename | Name of file to open. Default location is the root directoy of SD card. Absolute path under root of SD card is accepted. |
| [in,out] | f_seg_read_entry | Pointer to a file object. The pointer gets initialized and ready for use. |
| 0 | on success. |
| -EPERM | SD card operation is ongoing somewhere else. |
| -ENODEV | SD init failed. SD likely not inserted. |
| Otherwise,error | from underlying drivers. |