Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sdlogger_spi_direct.c File Reference
+ Include dependency graph for sdlogger_spi_direct.c:

Go to the source code of this file.

Macros

#define PERIODIC_C_LOGGER
 
#define LOGGER_LED_ON   {}
 
#define LOGGER_LED_OFF   {}
 

Functions

void sdlogger_spi_direct_init (void)
 sdlogger_spi_direct_init Initialize the logger and SD Card. More...
 
void sdlogger_spi_direct_periodic (void)
 sdlogger_spi_direct_periodic Periodic function called at module frequency More...
 
void sdlogger_spi_direct_start (void)
 
void sdlogger_spi_direct_stop (void)
 
void sdlogger_spi_direct_index_received (void)
 sdlogger_spi_direct_index_received Callback from SD Card when block at index location is received. More...
 
void sdlogger_spi_direct_multiwrite_written (void)
 sdlogger_spi_direct_multiwrite_written Called when a multiwrite is complete. More...
 
void sdlogger_spi_direct_command (void)
 
bool_t sdlogger_spi_direct_check_free_space (struct sdlogger_spi_periph *p, uint8_t len)
 
void sdlogger_spi_direct_put_byte (struct sdlogger_spi_periph *p, uint8_t data)
 
void sdlogger_spi_direct_send_message (void *p)
 
int sdlogger_spi_direct_char_available (void *p)
 
uint8_t sdlogger_spi_direct_get_byte (void *p)
 

Variables

struct sdlogger_spi_periph sdlogger_spi
 

Detailed Description

Author
Bart Slinger SPI SD Logger that saves pprzlog messages to SD Card.

Developed using Test Driven Development. Test code available at: https://github.com/bartslinger/paparazzi-unittest

Definition in file sdlogger_spi_direct.c.

Macro Definition Documentation

#define LOGGER_LED_OFF   {}
#define LOGGER_LED_ON   {}
#define PERIODIC_C_LOGGER

Definition at line 30 of file sdlogger_spi_direct.c.

Function Documentation

int sdlogger_spi_direct_char_available ( void *  p)

Definition at line 385 of file sdlogger_spi_direct.c.

Referenced by sdlogger_spi_direct_init().

+ Here is the caller graph for this function:

bool_t sdlogger_spi_direct_check_free_space ( struct sdlogger_spi_periph p,
uint8_t  len 
)
uint8_t sdlogger_spi_direct_get_byte ( void *  p)

Definition at line 390 of file sdlogger_spi_direct.c.

Referenced by sdlogger_spi_direct_init().

+ Here is the caller graph for this function:

void sdlogger_spi_direct_multiwrite_written ( void  )

sdlogger_spi_direct_multiwrite_written Called when a multiwrite is complete.

Data stored in the logger buffer is then moved to the SD Card buffer, which is now available again.

Definition at line 312 of file sdlogger_spi_direct.c.

References sdlogger_spi_periph::buffer, sdlogger_spi_periph::idx, sdlogger_spi_periph::log_len, SDCard::output_buf, sdcard1, sdlogger_spi_periph::sdcard_buf_idx, and sdlogger_spi.

Referenced by sdlogger_spi_direct_periodic(), and sdlogger_spi_direct_put_byte().

+ Here is the caller graph for this function:

void sdlogger_spi_direct_put_byte ( struct sdlogger_spi_periph p,
uint8_t  data 
)
void sdlogger_spi_direct_send_message ( void *  p)

Definition at line 380 of file sdlogger_spi_direct.c.

Referenced by sdlogger_spi_direct_init().

+ Here is the caller graph for this function:

void sdlogger_spi_direct_start ( void  )

Definition at line 212 of file sdlogger_spi_direct.c.

void sdlogger_spi_direct_stop ( void  )

Definition at line 213 of file sdlogger_spi_direct.c.

Variable Documentation