Acc g scaling with DSP
[inav.git] / src / main / drivers / display_font_metadata.h
blobebef4b635aa9e4b635936b59e49e20dbbdd3913d
1 #pragma once
3 #include <stdbool.h>
4 #include <stdint.h>
6 typedef struct osdCharacter_s osdCharacter_t;
8 typedef struct displayFontMetadata_s {
9 uint8_t version;
10 uint16_t charCount;
11 } displayFontMetadata_t;
13 // 'I', 'N', 'A', 'V'
14 #define FONT_CHR_IS_METADATA(chr) ((chr)->data[0] == 'I' && \
15 (chr)->data[1] == 'N' && \
16 (chr)->data[2] == 'A' && \
17 (chr)->data[3] == 'V')
19 #define FONT_METADATA_CHR_INDEX 255
20 // Used for runtime detection of display drivers that might
21 // support 256 or 512 characters.
22 #define FONT_METADATA_CHR_INDEX_2ND_PAGE 256
24 bool displayFontMetadataUpdateFromCharacter(displayFontMetadata_t *metadata, const osdCharacter_t *chr);