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