RocketLogger  1.1
file_handling.h
Go to the documentation of this file.
1 
31 #ifndef FILE_HANDLING_H_
32 #define FILE_HANDLING_H_
33 
34 #include <stdio.h>
35 #include <stdlib.h>
36 #include <string.h>
37 #include <time.h>
38 
39 #include "log.h"
40 #include "rl_file.h"
41 #include "sem.h"
42 #include "types.h"
43 #include "util.h"
44 
46 #define CSV_DELIMITER ","
47 
48 // FUNCTIONS
49 void file_setup_lead_in(struct rl_file_lead_in* lead_in, struct rl_conf* conf);
50 void file_setup_header(struct rl_file_header* file_header, struct rl_conf* conf,
51  char* comment);
52 void file_store_header_bin(FILE* data, struct rl_file_header* file_header);
53 void file_store_header_csv(FILE* data, struct rl_file_header* file_header);
54 void file_update_header_bin(FILE* data, struct rl_file_header* file_header);
55 void file_update_header_csv(FILE* data, struct rl_file_header* file_header);
56 void file_handle_data(FILE* data_file, void* buffer_addr,
57  uint32_t sample_data_size, uint32_t samples_count,
58  struct time_stamp* timestamp_realtime,
59  struct time_stamp* timestamp_monotonic,
60  struct rl_conf* conf);
61 
62 #endif /* FILE_HANDLING_H_ */
void file_update_header_bin(FILE *data, struct rl_file_header *file_header)
Definition: types.h:246
void file_setup_lead_in(struct rl_file_lead_in *lead_in, struct rl_conf *conf)
Definition: file_handling.c:59
void file_handle_data(FILE *data_file, void *buffer_addr, uint32_t sample_data_size, uint32_t samples_count, struct time_stamp *timestamp_realtime, struct time_stamp *timestamp_monotonic, struct rl_conf *conf)
void file_store_header_csv(FILE *data, struct rl_file_header *file_header)
void file_update_header_csv(FILE *data, struct rl_file_header *file_header)
void file_store_header_bin(FILE *data, struct rl_file_header *file_header)
void file_setup_header(struct rl_file_header *file_header, struct rl_conf *conf, char *comment)