![]() |
nRF Connect SDK API 3.4.99
|
| int sd_card_open_write_close | ( | char const *const | filename, |
| char const *const | data, | ||
| size_t * | size ) |
#include <sd_card.h>
Write data from buffer into the file.
| [in] | filename | Name of the target file for writing, the default location is the root directoy of SD card, accept absolute path under root of SD card. |
| [in] | data | which is going to be written into the file. |
| [in,out] | size | Pointer to the number of bytes which is going to be written. The actual written size will be returned. |
| 0 | on success. |
| -EPERM | SD card operation is ongoing somewhere else. |
| -ENODEV | SD init failed. SD card likely not inserted. |
| Otherwise,error | from underlying drivers. |