ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
microsd.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <stddef.h>
11#include <stdint.h>
12
13#include "../../user_config.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
42uint32_t ControllerMicroSDSave(const uint8_t* data, const uint16_t num_bytes);
43
54uint32_t ControllerMicroSDUserConfig(UserConfiguration* uc,
55 const char* filename);
56
72uint32_t ControllerMicroSDLog(const char* msg, const char* base);
73
78#ifdef __cplusplus
79}
80#endif
const char data[]
const String filename
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.
Definition microsd.c:12
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.
Definition microsd.c:80
uint32_t ControllerMicroSDLog(const char *msg, const char *base)
Append a line of plain text to the log file on the microSD card.
Definition microsd.c:155