libdrmconf  0.10.4
A library to program DMR radios.
Public Types | Public Member Functions | Public Attributes | List of all members
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, uint8_t iSize, 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 size
 The 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: