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

Represents all button settings within the codeplug on the radio. More...

#include <uv390_codeplug.hh>

Classes

struct  one_touch_t
 Represents a single one-touch setting within the codeplug on the radio. More...
 

Public Types

enum  ButtonAction {
  Disabled = 0, ToggleAllAlertTones = 1, EmergencyOn = 2, EmergencyOff = 3,
  PowerSelect = 4, MonitorToggle = 5, OneTouch1 = 7, OneTouch2 = 8,
  OneTouch3 = 9, OneTouch4 = 10, OneTouch5 = 11, OneTouch6 = 12,
  RepeaterTalkaroundToggle = 13, ScanToggle = 14, SquelchToggle = 21, PrivacyToggle = 22,
  VoxToggle = 23, ZoneIncrement = 24, BatteryIndicator = 26, LoneWorkerToggle = 31,
  RecordToggle = 34, RecordPlayback = 35, RecordDeleteAll = 36, Tone1750Hz = 38,
  SwitchUpDown = 47, RightKey = 48, LeftKey = 49, ZoneDecrement = 55
}
 Possible actions for the side-buttons. More...
 

Public Member Functions

 buttons_t ()
 Default constructor.
 
void clear ()
 Clears the button settings. More...
 

Public Attributes

uint16_t _reserved_0
 Reserved, set to 0x0000.
 
uint8_t side_button_1
 Side button 1 short press, 0=disabled, see UV390Codeplug::buttons_t::ButtonAction.
 
uint8_t side_button_1_long
 Side button 1 long press, 0=disabled, see UV390Codeplug::buttons_t::ButtonAction.
 
uint8_t side_button_2
 Side button 2 short press, 0=disabled, see UV390Codeplug::buttons_t::ButtonAction.
 
uint8_t side_button_2_long
 Side button 2 long press, 0=disabled, see UV390Codeplug::buttons_t::ButtonAction.
 
uint8_t _unused_6 [10]
 Unknown set to 0x00.
 
uint8_t _unknown_16
 Unkown set to 0x01;.
 
uint8_t long_press_dur
 Long-press duration in 250ms steps, range [0x04,0x0f], default 0x04.
 
uint16_t _unused_18
 Unused set to 0xffff;.
 
one_touch_t one_touch [6]
 One-touch settings 1-6.
 
uint8_t _unused_42 [20]
 Unkown set to 0x00;.
 

Detailed Description

Represents all button settings within the codeplug on the radio.

Member Enumeration Documentation

◆ ButtonAction

Possible actions for the side-buttons.

Enumerator
Disabled 

Disabled side-button action.

ToggleAllAlertTones 

Toggle all alert tones.

EmergencyOn 

Enable emergency.

EmergencyOff 

Disable emergency.

PowerSelect 

Select TX power.

MonitorToggle 

Toggle monitor (promiscuous mode on digital channel, open squelch on analog channel).

OneTouch1 

Perform one-touch action 1.

OneTouch2 

Perform one-touch action 2.

OneTouch3 

Perform one-touch action 3.

OneTouch4 

Perform one-touch action 4.

OneTouch5 

Perform one-touch action 5.

OneTouch6 

Perform one-touch action 6.

RepeaterTalkaroundToggle 

Toggle repater mode / talkaround.

ScanToggle 

Start/stop scan.

SquelchToggle 

Enable/disable squelch.

PrivacyToggle 

Enable/disable privacy system.

VoxToggle 

Enable/disable VOX.

ZoneIncrement 

Switch to next zone.

BatteryIndicator 

Show battery charge.

LoneWorkerToggle 

Toggle lone-worker.

RecordToggle 

Enable/disable recording (dep. on firmware).

RecordPlayback 

Start/stop playback.

RecordDeleteAll 

Delete all recordings.

Tone1750Hz 

Send 1750Hz tone.

SwitchUpDown 

Switch Channel A/B.

RightKey 

Who knows?

LeftKey 

Who knows?

ZoneDecrement 

Switch to previous zone.

Member Function Documentation

◆ clear()

void UV390Codeplug::buttons_t::clear ( )

Clears the button settings.

Sets side button 1 (long press) to 1750Hz tone and side button 2 (short press) to monitor toggle.


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