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

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

#include <uv390_codeplug.hh>

Public Types

enum  Action {
  CALL = 0b0000, MESSAGE = 0b0001, DTMF1 = 0b1000, DTMF2 = 0b1001,
  DTMF3 = 0b1010, DTMF4 = 0b1011
}
 Possible one-touch actions. More...
 
enum  Type { Disabled = 0b00, Digital = 0b01, Analog = 0b10 }
 Possible one-touch action types. More...
 

Public Member Functions

void clear ()
 Resets this one-touch action settings.
 

Public Attributes

uint8_t action: 4
 Action 0b0000=call, 0b0001=message, 0b1000=DTMF1, 0b1001=DTMF2, 0b1010=DTMF3, 0b1011=DTMF4.
 
uint8_t type: 2
 Type, 0b00=Disabled, 0b01=Digital, 0b10=Analog.
 
uint8_t _reserved_0_6: 2
 Reserved, set to 0b11;.
 
uint8_t message
 Message idx+1, 0=none.
 
uint16_t contact
 Contact idx+1, 0=none.
 

Detailed Description

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

Member Enumeration Documentation

◆ Action

Possible one-touch actions.

Enumerator
CALL 

Call someone, see contact.

MESSAGE 

Send a message, see message.

DTMF1 

Analog call DTMF system 1.

DTMF2 

Analog call DTMF system 2.

DTMF3 

Analog call DTMF system 3.

DTMF4 

Analog call DTMF system 4.

◆ Type

Possible one-touch action types.

Enumerator
Disabled 

Disabled one-touch.

Digital 

Digital call/message.

Analog 

Analog call.


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