aoview: Add eeprom data fetching
[fw/altos] / aoview / aoview.h
index 7824491228a4eb10dfb834961ae2311df1404525..4eb4cd80b8a06d8ef267b0050c37e3f1e8209b24 100644 (file)
@@ -58,6 +58,11 @@ struct aostate {
        int     batt;
        int     drogue;
        int     main;
+       int     flight_accel;
+       int     ground_accel;
+       int     flight_vel;
+       int     flight_pres;
+       int     ground_pres;
        int     nsat;
        int     locked;
        struct {
@@ -165,4 +170,44 @@ aoview_table_init(GladeXML *xml);
 void
 aoview_table_clear(void);
 
+struct aoview_file;
+
+void
+aoview_file_finish(struct aoview_file *file);
+
+gboolean
+aoview_file_start(struct aoview_file *file);
+
+const char *
+aoview_file_name(struct aoview_file *file);
+
+void
+aoview_file_set_serial(struct aoview_file *file, int serial);
+
+int
+aoview_file_get_serial(struct aoview_file *file);
+
+void
+aoview_file_printf(struct aoview_file *file, char *format, ...);
+
+void
+aoview_file_vprintf(struct aoview_file *file, char *format, va_list ap);
+
+struct aoview_file *
+aoview_file_new(char *ext);
+
+void
+aoview_file_destroy(struct aoview_file *file);
+
+void
+aoview_file_init(GladeXML *xml);
+
+/* aoview_eeprom.c */
+
+gboolean
+aoview_eeprom_save(const char *device);
+
+void
+aoview_eeprom_init(GladeXML *xml);
+
 #endif /* _AOVIEW_H_ */