30 #define PERIODIC_C_LOGGER
39 #define LOGGER_LED_ON LED_ON(LOGGER_LED);
40 #define LOGGER_LED_OFF LED_OFF(LOGGER_LED);
42 #define LOGGER_LED_ON {}
43 #define LOGGER_LED_OFF {}
46 #ifndef TELEMETRY_MODE_Main_empty
47 #warning You need to define a main telemetry mode named "empty" without any \
48 messages in your config file in /conf/telemetry/<your_config.xml>. \
50 Add <mode name="empty"></mode> to your main telemetry process.
53 #ifndef TELEMETRY_PROCESS_Logger
54 #error "You need to use a telemetry xml file with Logger process!"
57 #ifndef DOWNLINK_DEVICE
58 #warning This module can only be used with uart downlink for now.
71 SDLOGGER_SPI_LINK_SLAVE_NUMBER);
129 #if PERIODIC_TELEMETRY
338 telemetry_mode_Main = TELEMETRY_MODE_Main_empty;
enum SDLoggerStatus status
put_byte_t put_byte
put one byte
Initialization sequence succesful.
uint8_t buffer[SDLOGGER_BUFFER_SIZE]
uint8_t(* get_byte_t)(void *)
struct link_device device
uint8_t input_buf[SD_BLOCK_SIZE+10]
The input buffer for the SPI transaction.
uint8_t sdlogger_spi_direct_get_byte(void *p)
check_free_space_t check_free_space
check if transmit buffer is not full
void sdcard_spi_write_block(struct SDCard *sdcard, uint32_t addr)
Write a single block (512 bytes) to the SDCard at a given address.
Periodic telemetry system header (includes downlink utility and generated code).
void sdlogger_spi_direct_init(void)
sdlogger_spi_direct_init Initialize the logger and SD Card.
int sdlogger_spi_direct_char_available(void *p)
enum SDCardStatus status
The status of the SD card.
void sdcard_spi_init(struct SDCard *sdcard, struct spi_periph *spi_p, const uint8_t slave_idx)
Configure initial values for SDCard.
void sdcard_spi_read_block(struct SDCard *sdcard, uint32_t addr, SDCardCallback callback)
Read a single block (512 bytes) from the SDCard at a given address.
uint8_t output_buf[SD_BLOCK_SIZE+10]
The output buffer for the SPI transaction.
uint32_t next_available_address
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
#define SDLOGGER_BUFFER_SIZE
void sdcard_spi_multiwrite_stop(struct SDCard *sdcard)
Stop with multiwrite procedure.
void sdcard_spi_multiwrite_next(struct SDCard *sdcard, SDCardCallback callback)
Write a(nother) data block (512 bytes) to the SDCard.
void sdlogger_spi_direct_stop(void)
void * periph
pointer to parent implementation
void sdcard_spi_periodic(struct SDCard *sdcard)
Periodic function of the SDCard.
void sdlogger_spi_direct_send_message(void *p)
struct sdlogger_spi_periph sdlogger_spi
void pprzlog_transport_init(void)
struct pprzlog_transport pprzlog_tp
#define DefaultPeriodic
Set default periodic telemetry.
bool_t sdlogger_spi_direct_check_free_space(struct sdlogger_spi_periph *p, uint8_t len)
get_byte_t get_byte
get a new char
struct RadioControl radio_control
int(* char_available_t)(void *)
void sdlogger_spi_direct_multiwrite_written(void)
sdlogger_spi_direct_multiwrite_written Called when a multiwrite is complete.
void sdcard_spi_multiwrite_start(struct SDCard *sdcard, uint32_t addr)
Start writing multiple blocks of 512 bytes to the SDCard.
bool_t uart_check_free_space(struct uart_periph *p, uint8_t len)
void sdlogger_spi_direct_periodic(void)
sdlogger_spi_direct_periodic Periodic function called at module frequency
Protocol for on-board data logger with timestamp.
void sdlogger_spi_direct_start(void)
void(* put_byte_t)(void *, uint8_t)
struct SDCard sdcard1
This is the definition of the SD card.
void sdlogger_spi_direct_index_received(void)
sdlogger_spi_direct_index_received Callback from SD Card when block at index location is received...
void sdlogger_spi_direct_put_byte(struct sdlogger_spi_periph *p, uint8_t data)
void sdlogger_spi_direct_command(void)
void(* send_message_t)(void *)
uint32_t download_address
arch independent LED (Light Emitting Diodes) API
int(* check_free_space_t)(void *, uint8_t)
Function pointers definition.
char_available_t char_available
check if a new character is available
CMD25 complete, ready to sent blocks.
struct transport_tx trans_tx
send_message_t send_message
send completed buffer
void uart_put_byte(struct uart_periph *periph, uint8_t data)