13 #include <avr/pgmspace.h> 15 #define MAP_TEXT_BUF_SIZE 32 16 #define MAP_MAX_TEXT_SIZE (MAP_TEXT_BUF_SIZE - 1) 18 typedef uint8_t MapIdType;
19 typedef const char *MapTextPtrType;
21 const typedef struct {
23 const char Text[MAP_TEXT_BUF_SIZE];
26 bool MapIdToText(
const MapEntryType *MapPtr, uint8_t MapSize, MapIdType Id,
char *Text, uint16_t MaxBufferSize);
27 bool MapTextToId(
const MapEntryType *MapPtr, uint8_t MapSize, MapTextPtrType Text, MapIdType *IdPtr);
28 void MapToString(
const MapEntryType *MapPtr, uint8_t MapSize,
char *String, uint16_t MaxBufferSize);