|
Smart Camera ESP32
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
|
Manages the SD card filesystem for logging and image storage. More...
#include <sd_manager.h>
Public Member Functions | |
| bool | begin () |
| Mounts the SD card and initializes the MMC peripheral. | |
| bool | save_frame (uint8_t *buf, size_t len, const char *path) |
| Writes a camera frame buffer to a JPEG file on the SD card. | |
| bool | append_log (const char *message) |
| Appends a string of text to a log file. | |
| uint64_t | get_used_space () |
| Calculates the total used space on the SD card in bytes. | |
| bool | is_present () |
| Checks if the SD card is currently mounted and accessible. | |
Manages the SD card filesystem for logging and image storage.
| bool SDManager::append_log | ( | const char * | message | ) |
Appends a string of text to a log file.
| message | The text to be appended. |
| bool SDManager::begin | ( | ) |
Mounts the SD card and initializes the MMC peripheral.
| uint64_t SDManager::get_used_space | ( | ) |
Calculates the total used space on the SD card in bytes.
| bool SDManager::is_present | ( | ) |
Checks if the SD card is currently mounted and accessible.
| bool SDManager::save_frame | ( | uint8_t * | buf, |
| size_t | len, | ||
| const char * | path ) |
Writes a camera frame buffer to a JPEG file on the SD card.
| buf | Pointer to the image data buffer. |
| len | Size of the buffer in bytes. |
| path | The full destination path (e.g., "/img/photo.jpg"). |