Logging of received bus messages onto an SD card.
More...
#include "sd_card.h"
#include <stdio.h>
#include "common/rtos/rtos.h"
#include "common/phal_F4/gpio/gpio.h"
#include "common/phal_F4/rtc/rtc.h"
#include "common/sdio/sdio.h"
#include "external/fatfs/ff.h"
#include "main.h"
#include "spmc.h"
Logging of received bus messages onto an SD card.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ get_next_filename()
| static void get_next_filename |
( |
char * | buffer, |
|
|
size_t | buffer_size ) |
|
static |
◆ release_resources()
| static void release_resources |
( |
| ) |
|
|
static |
◆ sd_card_periodic()
| void sd_card_periodic |
( |
void | | ) |
|
◆ sd_power_loss_callback()
| void sd_power_loss_callback |
( |
void | | ) |
|
◆ fat_fs
◆ file_object
◆ is_file_open
| bool is_file_open = false |
|
static |
◆ is_fs_mounted
| bool is_fs_mounted = false |
|
static |
◆ last_open_time_ms
| uint32_t last_open_time_ms = 0 |
|
static |
◆ next_sd_state
◆ recovery_attempts
| int recovery_attempts = 0 |
|
static |
◆ SD_NEW_FILE_PERIOD_MS
| uint32_t SD_NEW_FILE_PERIOD_MS = 1 * 60 * 1000 |
|
staticconstexpr |
◆ sd_state