nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sd_card_open()

int sd_card_open ( char const *const  filename,
struct fs_file_t *  f_seg_read_entry 
)

Open file on SD card.

Parameters
[in]filenameName 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_entryPointer to a file object. The pointer gets initialized and ready for use.
Return values
0on success.
-EPERMSD card operation is ongoing somewhere else.
-ENODEVSD init failed. SD likely not inserted.
Otherwise,errorfrom underlying drivers.