LibDMRConf  0.5.0
A library to program DMR radios.
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
RD5RCodeplug::button_settings_t Struct Reference

Represents the button settings. More...

#include <rd5r_codeplug.hh>

Classes

struct  one_touch_t
 Binary representation of one-touch actions (calls & messages). More...
 

Public Types

enum  ButtonEvent {
  None = 0x00, ToggleAllAlertTones = 0x01, EmergencyOn = 0x02, EmergencyOff = 0x03,
  ToggleMonitor = 0x05, NuiaceDelete = 0x06, OneTouch1 = 0x07, OneTouch2 = 0x08,
  OneTouch3 = 0x09, OneTouch4 = 0x0a, OneTouch5 = 0x0b, OneTouch6 = 0x0c,
  ToggleRepeatTalkaround = 0x0d, ToggleScan = 0x0e, TogglePrivacy = 0x10, ToggleVox = 0x11,
  ZoneSelect = 0x12, BatteryIndicator = 0x13, ToggleLoneWorker = 0x14, PhoneExit = 0x16,
  ToggleFlashLight = 0x1a, ToggleFMRadio = 0x1b
}
 Possible actions for each button on short and long press. More...
 

Public Member Functions

 button_settings_t ()
 Constructor.
 
void clear ()
 Resets the button settings.
 
void initDefault ()
 Resets the button settings to their default values.
 

Public Attributes

uint8_t _unknown0
 Unknown set to 0x01.
 
uint8_t long_press_dur
 Specifies the duration for a long-press in 250ms [4,16], default=6 (1500ms).
 
uint8_t sk1_short
 Event on short-press on SK1.
 
uint8_t sk1_long
 Event on long-press on SK1.
 
uint8_t sk2_short
 Event on short-press on SK2.
 
uint8_t sk2_long
 Event on long-press on SK2.
 
uint8_t _unknown6
 Unknown set to 0x13.
 
uint8_t _unknown7
 Unknown set to 0x11.
 
one_touch_t one_touch [6]
 6 x one-touch actions.
 

Detailed Description

Represents the button settings.

Member Enumeration Documentation

◆ ButtonEvent

Possible actions for each button on short and long press.

Enumerator
None 

Disables button.

ToggleMonitor 

Toggle monitor on channel.

OneTouch1 

Performs the first of 6 user-programmable actions (call, message).

OneTouch2 

Performs the second of 6 user-programmable actions (call, message).

OneTouch3 

Performs the third of 6 user-programmable actions (call, message).

OneTouch4 

Performs the fourth of 6 user-programmable actions (call, message).

OneTouch5 

Performs the fifth of 6 user-programmable actions (call, message).

OneTouch6 

Performs the sixt of 6 user-programmable actions (call, message).


The documentation for this struct was generated from the following files: