telemetry_storage.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Kubos Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
24 #ifndef TELEMETRY_STORAGE_H
25 #define TELEMETRY_STORAGE_H
26 
27 #include <stdbool.h>
28 #include <telemetry/telemetry.h>
29 #include <kubos-core/modules/klog.h>
31 
32 #define FILE_EXTENSION_CSV ".csv"
33 #define FILE_EXTENSION_HEX ".hex"
34 #define FILE_EXTENSION_NONE ""
35 
39 typedef enum
40 {
46 
47 
51 CSP_DEFINE_TASK(telemetry_store_rx);
52 
59 void telemetry_storage_init(void);
60 
61 
68 bool telemetry_store(telemetry_packet packet);
69 
70 #endif
71 
72 /* @} */
void telemetry_storage_init(void)
Subscribes to all telemetry sources and stores them as specified in the configuration.
CSP_DEFINE_TASK(telemetry_store_rx)
Task used to subscribe to, receive, and store all telemetry packets.
Definition: telemetry_storage.h:44
bool telemetry_store(telemetry_packet packet)
store a telemetry packet in a particular format specified by the configuration.
output_data_format
Defines the output file format.
Definition: telemetry_storage.h:39
Definition: telemetry_storage.h:42