PER Firmware
Loading...
Searching...
No Matches
sd_card.h File Reference

Logging of received bus messages onto an SD card. More...

#include <stdint.h>
#include "common/rtos/rtos.h"
Include dependency graph for sd_card.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  sd_state_t {
  SD_STATE_DISABLED = 0 , SD_STATE_INSERT_CARD = 1 , SD_STATE_MOUNTING = 2 , SD_STATE_OPENING_FILE = 3 ,
  SD_STATE_READY2LOG = 4 , SD_STATE_CLOSING_FILE = 5 , SD_STATE_UNMOUNTING = 6 , SD_STATE_RECOVERING = 7 ,
  SD_STATE_FATAL = 8
}
 

Functions

void sd_card_periodic (void)
 
void sd_power_loss_callback (void)
 

Variables

static constexpr uint32_t SD_FSM_PERIOD_MS = 50
 

Detailed Description

Logging of received bus messages onto an SD card.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Enumeration Type Documentation

◆ sd_state_t

enum sd_state_t
Enumerator
SD_STATE_DISABLED 
SD_STATE_INSERT_CARD 
SD_STATE_MOUNTING 
SD_STATE_OPENING_FILE 
SD_STATE_READY2LOG 
SD_STATE_CLOSING_FILE 
SD_STATE_UNMOUNTING 
SD_STATE_RECOVERING 
SD_STATE_FATAL 

Function Documentation

◆ sd_card_periodic()

void sd_card_periodic ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sd_power_loss_callback()

void sd_power_loss_callback ( void )
Here is the call graph for this function:

Variable Documentation

◆ SD_FSM_PERIOD_MS

uint32_t SD_FSM_PERIOD_MS = 50
staticconstexpr