IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
sd_c.c File Reference
#include "sd/sd_c.h"
#include "sd.h"
#include <unistd.h>
Include dependency graph for sd_c.c:

Functions

esp_err_t sd_c_init (FILE **file)
 Initialize the SD card and open the file to write data.
void write_to_file_c (FILE *file, char *text)
 Write text to file.

Function Documentation

◆ sd_c_init()

esp_err_t sd_c_init ( FILE ** logFile)

Initialize the SD card and open the file to write data.

Parameters
logFilepointer to the file that needs to be open.
Returns
esp_err_t ESP_OK if success.

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_to_file_c()

void write_to_file_c ( FILE * file,
char * text )

Write text to file.

Parameters
filepointer to the file descriptor to write the text.
textarray of characters to write to the file.
Here is the call graph for this function:
Here is the caller graph for this function: