libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
OpenGD77Interface::CommandRequest Struct Reference

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
}
 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.

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.
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?
char message [16]
 Some text message.

Detailed Description

Represents a command message.


The documentation for this struct was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/opengd77_interface.hh
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/opengd77_interface.cc