|
libdrmconf 0.14.1
A library to program DMR radios.
|
Represents a command message. More...
#include <opengd77_interface.hh>
Public Types | |
| enum | Command { SHOW_CPS_SCREEN = 0 , CLEAR_SCREEN = 1 , DISPLAY = 2 , RENDER_CPS = 3 , CLOSE_CPS_SCREEN = 5 , COMMAND = 6 } |
| Possible commands. | |
| enum | Option { SAVE_SETTINGS_NOT_VFOS = 0 , REBOOT = 1 , SAVE_SETTINGS_AND_VFOS = 2 , FLASH_GREEN_LED = 3 , FLASH_RED_LED = 4 , INIT_CODEC = 5 , INIT_SOUND = 6 , SET_DATETIME = 7 , DELAY_10ms = 10 } |
| Possible options. | |
Public Member Functions | |
| void | initShowCPSScreen () |
| Construct "show CPS screen" command message. | |
| void | initClearScreen () |
| Construct a clear-screen command message. | |
| void | initDisplay (uint8_t 1, uint8_t y, const char *message, unsigned int iSize, uint8_t font, uint8_t alignment, uint8_t inverted) |
| Construct a "show text on screen" message. | |
| void | initRenderCPS () |
| Construct a "render CPS" message. | |
| void | initCloseScreen () |
| Construct a "close screen" command message. | |
| void | initCommand (Option option) |
| Construct a command message with the given option. | |
| void | initSetDateTime (const QDateTime &dt) |
| Construct a SET_DATETIME message with the given date time. | |
Public Attributes | |
| char | type |
| Message type, here 'C' for command. | |
| uint8_t | command |
| The command. | |
| union { | |
| uint8_t | |
| The x-position on the screen. | |
| uint8_t option | |
| The command option. | |
| }; | |
| Either a command option or the x position on screen. | |
| union { | |
| struct packed { | |
| uint8_t y | |
| The y-position on the screen. | |
| uint8_t font | |
| The font size. | |
| uint8_t alignment | |
| The text alignment. | |
| uint8_t inverted | |
| Is text inverted? | |
| } | |
| uint32_t timestamp | |
| }; | |
| char | message [16] |
| Some text message. | |
Represents a command message.