NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
blackbox.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Copyright: collective.
5  * Cleanup: Martin Schröder <mkschreder.uk@gmail.com>
6  * Original source from Cleanflight.
7  *
8  * Ninjaflight is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * Ninjaflight is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 typedef enum BlackboxDevice {
26 
27 #ifdef USE_FLASHFS
28  BLACKBOX_DEVICE_FLASH = 1,
29 #endif
30 #ifdef USE_SDCARD
31  BLACKBOX_DEVICE_SDCARD = 2,
32 #endif
33 
36 
37 
39  uint8_t rate_num;
40  uint8_t rate_denom;
41  uint8_t device;
42 } __attribute__((packed)) ;
43 
uint8_t rate_denom
Definition: blackbox.h:40
struct blackbox_xmit_state __attribute__
uint8_t rate_num
Definition: blackbox.h:39
Definition: blackbox.h:25
uint8_t device
Definition: blackbox.h:41
Definition: blackbox.h:34
BlackboxDevice
Definition: blackbox.h:24
Definition: blackbox.h:38