vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / io / piniobox.h
blob42499fffcf21c9128a6d7c2914befdd1b418f50f
1 /*
2 * This file is part of Cleanflight, Betaflight and INAV
4 * Cleanflight, Betaflight and INAV are free software. You can
5 * redistribute this software and/or modify this software under
6 * the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License,
8 * or (at your option) any later version.
10 * Cleanflight, Betaflight and INAV are distributed in the hope that
11 * they will be useful, but WITHOUT ANY WARRANTY; without even the
12 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #pragma once
23 #include <stdint.h>
24 #include <stdbool.h>
26 #include "common/time.h"
27 #include "drivers/pinio.h"
30 #define BOX_PERMANENT_ID_USER1 47
31 #define BOX_PERMANENT_ID_USER2 48
32 #define BOX_PERMANENT_ID_USER3 57
33 #define BOX_PERMANENT_ID_USER4 58
34 #define BOX_PERMANENT_ID_NONE 255 // A permanent ID for no box mode
37 typedef struct pinioBoxConfig_s {
38 uint8_t permanentId[PINIO_COUNT];
39 } pinioBoxConfig_t;
41 PG_DECLARE(pinioBoxConfig_t, pinioBoxConfig);
43 void pinioBoxInit(void);
44 void pinioBoxUpdate(void);