mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #5921 from codecae/crsf_displayport_linearbuffer
Linear Buffer for CRSF CMS display port
This commit is contained in:
commit
f9f0257bc1
8 changed files with 71 additions and 78 deletions
|
@ -52,15 +52,20 @@ typedef enum {
|
|||
CRSF_FRAMETYPE_MSP_REQ = 0x7A, // response request using msp sequence as command
|
||||
CRSF_FRAMETYPE_MSP_RESP = 0x7B, // reply with 58 byte chunked binary
|
||||
CRSF_FRAMETYPE_MSP_WRITE = 0x7C, // write with 8 byte chunked binary (OpenTX outbound telemetry buffer limit)
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_UPDATE = 0x7D, // transmit displayport buffer to remote
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_CLEAR = 0x7E, // clear remote
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_CMD = 0x7F, // client request
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_CMD = 0x7D, // displayport control command
|
||||
} crsfFrameType_e;
|
||||
|
||||
enum {
|
||||
CRSF_DISPLAYPORT_SUBCMD_OPEN = 0x01, // client request to open cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_CLOSE = 0x02, // client request to close cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_POLL = 0x03, // client request to poll/refresh cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_UPDATE = 0x01, // transmit displayport buffer to remote
|
||||
CRSF_DISPLAYPORT_SUBCMD_CLEAR = 0X02, // clear client screen
|
||||
CRSF_DISPLAYPORT_SUBCMD_OPEN = 0x03, // client request to open cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_CLOSE = 0x04, // client request to close cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_POLL = 0x05, // client request to poll/refresh cms menu
|
||||
};
|
||||
|
||||
enum {
|
||||
CRSF_DISPLAYPORT_OPEN_ROWS_OFFSET = 1,
|
||||
CRSF_DISPLAYPORT_OPEN_COLS_OFFSET = 2,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
@ -949,12 +949,6 @@ const clivalue_t valueTable[] = {
|
|||
{ "displayport_msp_row_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -3, 0 }, PG_DISPLAY_PORT_MSP_CONFIG, offsetof(displayPortProfile_t, rowAdjust) },
|
||||
#endif
|
||||
|
||||
// PG_DISPLAY_PORT_CRSF_CONFIG
|
||||
#if defined(USE_CRSF_CMS_TELEMETRY)
|
||||
{ "displayport_crsf_col_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -8, 0 }, PG_DISPLAY_PORT_CRSF_CONFIG, offsetof(displayPortProfile_t, colAdjust) },
|
||||
{ "displayport_crsf_row_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -3, 0 }, PG_DISPLAY_PORT_CRSF_CONFIG, offsetof(displayPortProfile_t, rowAdjust) },
|
||||
#endif
|
||||
|
||||
// PG_DISPLAY_PORT_MSP_CONFIG
|
||||
#ifdef USE_MAX7456
|
||||
{ "displayport_max7456_col_adjust", VAR_INT8| MASTER_VALUE, .config.minmax = { -6, 0 }, PG_DISPLAY_PORT_MAX7456_CONFIG, offsetof(displayPortProfile_t, colAdjust) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue