nRF Connect SDK API 0.1.0
|
int sd_card_open | ( | char const *const | filename, |
struct fs_file_t * | f_seg_read_entry | ||
) |
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. |