ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
microsd.c File Reference
#include "microsd.h"
#include <string.h>
#include "../../proto/transcoder.h"
#include "../../util/time.h"
#include "../communication.h"

Go to the source code of this file.

Functions

uint32_t ControllerMicroSDSave (const uint8_t *data, const uint16_t num_bytes)
 Save data to the microSD card. Appends data to already-created files, otherwise creates a new file.
 
uint32_t ControllerMicroSDUserConfig (UserConfiguration *uc, const char *filename)
 Send the UserConfig to the ESP32 and saves a file on the microSD with the UserConfig contents.
 
uint32_t ControllerMicroSDLog (const char *msg, const char *base)
 Append a line of plain text to the log file on the microSD card.
 

Variables

unsigned int g_controller_i2c_timeout
 

Variable Documentation

◆ g_controller_i2c_timeout

unsigned int g_controller_i2c_timeout
extern

Timeout for i2c communication with esp32, in communication.h