|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
26 #ifndef SDLOGGER_SPI_H
27 #define SDLOGGER_SPI_H
29 #define SDLOGGER_BUFFER_SIZE 128
31 #include "pprzlink/pprzlink_device.h"
void sdlogger_spi_direct_start(void)
struct sdlogger_spi_periph sdlogger_spi
enum SDLoggerStatus status
int sdlogger_spi_direct_char_available(void *p)
int sdlogger_spi_direct_check_free_space(struct sdlogger_spi_periph *p, long *fd, uint16_t len)
void sdlogger_spi_direct_put_buffer(struct sdlogger_spi_periph *p, long fd, uint8_t *data, uint16_t len)
uint32_t download_address
uint32_t next_available_address
void sdlogger_spi_direct_stop(void)
@ SDLogger_StoppedLogging
@ SDLogger_RetreivingIndex
#define SDLOGGER_BUFFER_SIZE
struct link_device device
void sdlogger_spi_direct_send_message(void *p, long fd)
void sdlogger_spi_direct_init(void)
sdlogger_spi_direct_init Initialize the logger and SD Card.
uint8_t buffer[SDLOGGER_BUFFER_SIZE]
void sdlogger_spi_direct_command(void)
Interface for reading and writing blocks of data to and from an SD card directly over SPI.
@ SDLogger_GettingIndexForDownload
void sdlogger_spi_direct_put_byte(struct sdlogger_spi_periph *p, long fd, uint8_t data)
uint8_t sdlogger_spi_direct_get_byte(void *p)
@ SDLogger_GettingIndexForUpdate
void sdlogger_spi_direct_multiwrite_written(void)
sdlogger_spi_direct_multiwrite_written Called when a multiwrite is complete.
void sdlogger_spi_direct_periodic(void)
sdlogger_spi_direct_periodic Periodic function called at module frequency
@ SDLogger_LoggingFinalBlock
void sdlogger_spi_direct_index_received(void)
sdlogger_spi_direct_index_received Callback from SD Card when block at index location is received.