Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
direct_memory_logger.h File Reference

Write logs directly to flash memory chips. More...

+ Include dependency graph for direct_memory_logger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DirectMemoryLogger
 

Macros

#define DML_BUF_SIZE   128
 The read buffer size. More...
 

Enumerations

enum  DMLStatus {
  DML_INIT, DML_IDLE, DML_ERASE, DML_START,
  DML_LOGGING, DML_STOP, DML_READ, DML_READING
}
 

Functions

void direct_memory_logger_init (void)
 
void direct_memory_logger_periodic (void)
 
void direct_memory_logger_set (uint8_t val)
 

Variables

struct DirectMemoryLogger dml
 

Detailed Description

Write logs directly to flash memory chips.

Definition in file direct_memory_logger.h.


Data Structure Documentation

◆ DirectMemoryLogger

struct DirectMemoryLogger

Definition at line 48 of file direct_memory_logger.h.

+ Collaboration diagram for DirectMemoryLogger:
Data Fields
uint8_t buffer[DML_BUF_SIZE] The buffer for writing and reading.
struct SST25VFxxxx sst The memory chip.
enum DMLStatus status The status of the Direct Memory Logger.
uint32_t write_addr

Macro Definition Documentation

◆ DML_BUF_SIZE

#define DML_BUF_SIZE   128

The read buffer size.

Definition at line 33 of file direct_memory_logger.h.

Enumeration Type Documentation

◆ DMLStatus

enum DMLStatus
Enumerator
DML_INIT 

The DML is initializing.

DML_IDLE 

The DML is idle.

DML_ERASE 

The DML is busy erasing itself.

DML_START 

The DML is starting the logger.

DML_LOGGING 

The DML is busy logging.

DML_STOP 

The DML is busy stopping.

DML_READ 

The DML is busy starting read.

DML_READING 

The DML is busy reading.

Definition at line 36 of file direct_memory_logger.h.

Function Documentation

◆ direct_memory_logger_init()

void direct_memory_logger_init ( void  )

Definition at line 91 of file direct_memory_logger.c.

References direct_memory_spi_cb(), dml, DML_INIT, DirectMemoryLogger::sst, sst25vfxxxx_init(), and DirectMemoryLogger::status.

+ Here is the call graph for this function:

◆ direct_memory_logger_periodic()

◆ direct_memory_logger_set()

Variable Documentation

◆ dml