libdrmconf  0.8.0
A library to program DMR radios.
Public Types | Public Attributes | List of all members
D878UVCodeplug::radio_info_t Struct Reference

Encodes some information about the radio and firmware. More...

#include <d878uv_codeplug.hh>

Public Types

enum  FrequencyRange : uint8_t {
  FR_RX_400_480_136_174_TX_400_480_136_174 = 0, FR_RX_400_480_136_174_TX_400_480_136_174_STEP_12_5kHz = 1, FR_RX_430_440_136_174_TX_430_440_136_174 = 2, FR_RX_400_480_136_174_TX_430_440_144_146 = 3,
  FR_RX_440_480_136_174_TX_440_480_136_174 = 4, FR_RX_440_480_144_146_TX_440_480_144_146 = 5, FR_RX_446_447_136_174_TX_446_447_136_174 = 6, FR_RX_400_480_136_174_TX_420_450_136_174 = 7,
  FR_RX_400_470_136_174_TX_400_470_136_174 = 8, FR_RX_430_432_144_146_TX_430_432_144_146 = 9, FR_RX_400_480_136_174_TX_430_450_144_148 = 10, FR_RX_400_520_136_174_TX_400_520_136_174 = 11,
  FR_RX_400_490_136_174_TX_400_490_136_174 = 12, FR_RX_400_480_136_174_TX_403_470_136_174 = 13, FR_RX_400_520_220_225_136_174_TX_400_520_220_225_136_174 = 14, FR_RX_420_520_144_148_TX_420_520_144_148 = 15,
  FR_RX_430_440_144_147_TX_430_440_144_147 = 16, FR_RX_430_440_136_174_TX_136_174 = 17
}
 Possible frequency ranges for the AT-D878UV.
 

Public Attributes

uint16_t _unknown00
 Uknown informaion, usually 0x0000.
 
uint8_t enable_full_test
 Enables full test mode. DO NOT SET, MAY BRICK DEVICE.
 
FrequencyRange freq_range
 Specifies the frequency range of the radio.
 
uint8_t enable_internat
 None Chinese?!?
 
uint8_t _unknown05
 Unknown information, usually set to 0x01.
 
uint8_t enable_band_select
 Enable band select.
 
uint8_t _unknown07 [4]
 Unknown information usually 0x00000101.
 
char band_select_passwd [4]
 Band select password. Set to 4 x 0x20 (space) by default.
 
uint8_t _unknown0f
 Unknown information usually 0xff.
 
char radio_type [7]
 Radiotype as 0-terminated ASCII string.
 
uint16_t _unknown17
 Unknown information usually 0x0001 LE.
 
uint8_t _unknown19 [7]
 Unknown, usually filled with 0xff.
 
uint8_t _unkown20 [8]
 Unknown, usually filled with 0xff.
 
char prog_passwd [4]
 Program password, 0-terminated ASCII string.
 
char area_code [4]
 Area code, 0-terminated ASCII string.
 
char serial_number [16]
 Serial number, 0-terminated ASCII string.
 
char production_date [10]
 Production date, 0-terminated ASCII string.
 
uint8_t _unused4a [6]
 Unused, filled with 0x00.
 
char maunfacture [8]
 Manufacture code, 0-terminated ASCII string.
 
uint8_t _unused58 [8]
 Unused, filled with 0x00.
 
char maintained_date [16]
 Maintained date, 0-terminated ASCII string.
 
char dealer_code [16]
 Dealer code, 0-terminated ASCII string.
 
char stock_date [16]
 Stock date, 0-terminated ASCII string.
 
char sell_date [16]
 Sell date, 0-terminated ASCII string.
 
char seller [16]
 Seller, 0-terminated ASCII string.
 
char maintained_desc [0x80]
 Maintained date, 0-terminated ASCII string.
 

Detailed Description

Encodes some information about the radio and firmware.

At 0x02fa0000, size 0x100.

     0                               8                               16                              24
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Unused, set to 0x0000                                         | Enable full test              | Frequency range               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
04 | Enable international          | Unknown, set to 0x00          | Enable band select            | Unknown, set to 0x00          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
08 | Unknown, set to 0x00          | Unknown, set to 0x01          | Unknown, set to 0x01          | Band select password       ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c  ... 4 x ASCII, 0-terminated                                                                    | Unknown, set to 0xff          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | Radio type, 7 x ASCII, 0-terminated                                                                                        ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14  ...                                                                                            | Unknown, set 0x01             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
18 | Unknown, set to 0x00          | Unknown, filled with 0xff                                                                  ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
24  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
28 | Program password, 4 x ASCII, 0-terminated                                                                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | Area code, 4 x ASCII, 0-terminated                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
30 | Serial number, 16 x ASCII, 0-terminated                                                                                    ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
3c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
40 | Production date, 10 x ASCII, 0-terminated                                                                                  ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
48  ...                                                            | Unused, set to 0x00                                        ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
50 | Manufacture code, 8 x ASCII, 0-terminated                                                                                  ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
54  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
58 | Unused, filled with 0x00                                                                                                   ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
5c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
60 | Maintained date, 16 x ASCII, 0-terminated.                                                                                 ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
6c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
70 | Dealer code, 16 x ASCII, 0-terminated.                                                                                     ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
7c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
80 | Stock date, 16 x ASCII, 0-terminated.                                                                                      ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
8c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
90 | Sell date, 16 x ASCII, 0-terminated.                                                                                       ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
9c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a0 | Seller, 16 x ASCII, 0-terminated.                                                                                          ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ac  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b0 | Maintained note, 128 x ASCII, 0-terminated.                                                                                ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
    ...                                                                                                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
fc  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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