updates
[inav.git] / src / main / io / displayport_msp.h
blob759e2e09dd5b172d40432dccad04c37a0fc6954f
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #include "config/parameter_group.h"
21 #include "drivers/display.h"
23 // MSP Display Port commands
24 typedef enum {
25 MSP_DP_HEARTBEAT = 0, // Ensure display is not released, and prevent 'disconnected' status
26 MSP_DP_RELEASE = 1, // Release the display after clearing and updating
27 MSP_DP_CLEAR_SCREEN = 2, // Clear the display
28 MSP_DP_WRITE_STRING = 3, // Write a string at given coordinates
29 MSP_DP_DRAW_SCREEN = 4, // Trigger a screen draw
30 MSP_DP_OPTIONS = 5, // Not used by Betaflight. Reserved by Ardupilot and INAV
31 MSP_DP_SYS = 6, // Display system element displayportSystemElement_e at given coordinates
32 MSP_DP_COUNT,
33 } displayportMspCommand_e;
35 struct displayPort_s;
36 struct displayPort_s *displayPortMspInit(void);