IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
sd_c.h File Reference
#include <esp_err.h>
#include <stdio.h>
Include dependency graph for sd_c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAG_SD   "SD"

Functions

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

Macro Definition Documentation

◆ TAG_SD

#define TAG_SD   "SD"

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: