You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Header:
- changed the magic field from 64 to 32 bit
- extented the version number from 16 to 32 bit
Channel:
- changed transmit power from dBm to mW, extending the field from 8 to 32 bit
- dropped the scan list index field
- dropped the group list index field
- changed the longitude field from 8 to 16 bit to fix#30
| magic |uint64_t| Number used to identify the start of a codeplug; this is always "RTXC", i.e. `0x43585452`|
46
-
| version_number |uint16_t| Major and minor version of the OBCF standard, constructed as the `(CPS_VERSION_MAJOR << 8) \| CPS_VERSION_MINOR`. Refer to [Version control](#version-control). |
47
+
| magic |uint32_t| Number used to identify the start of a codeplug; this is always "RTXC", i.e. `0x43585452`|
48
+
| version_number |uint32_t| Major and minor version of the OBCF standard, constructed as the `(CPS_VERSION_MAJOR << 8) \| CPS_VERSION_MINOR`. Refer to [Version control](#version-control). |
47
49
| author | char[32]| User-provided author of the codeplug |
48
50
| desc | char[32]| User-provided description of the codeplug, max 32 characters |
49
51
| timestamp | uint64_t | Unix timestamp of when the codeplug was last edited |
@@ -57,12 +59,12 @@ This structure is the beginning of the file. The fields are laid out in the foll
| traits | uint8_t | First two bits are channel bandwidth (refer to [Bandwidth lookup table](#bandwidth-lookup-table)), then one bit indicating true if the channel is RX only |
140
-
| power | uint8_t | transmit power, stored as number of fifths dBm added to 10bBm (e.g. a value of 5 would represent 10+5\*0.2=11dBm) |
| ch_lat_int | int8_t | Floor of latitude (⌊x⌋; e.g. given latitude of 44.493889, this value is 44) |
164
164
| ch_lat_dec | uint16_t | Fractional part of latitude, first rounded to the ten-thousandths, represented as a positive whole number (e.g. given latitude of 44.493889, this value is 4939) |
165
-
| ch_lon_int |int8_t | Floor of longitude (⌊x⌋; e.g. given longitude of 11.342778, this value is 11) |
165
+
| ch_lon_int |int16_t| Floor of longitude (⌊x⌋; e.g. given longitude of 11.342778, this value is 11) |
166
166
| ch_lon_dec | uint16_t | Fractional part of longitude, first rounded to the ten-thousandths, represented as a positive whole number (e.g. given longitude of 11.342778, this value is 3428) |
167
167
| ch_altitude | uint16_t | Altitude of the center of the radiator of the transmitter, stored in meters MSL offset +500 (e.g. 0m would be stored as 500) |
168
168
@@ -276,36 +276,36 @@ For DMR channels, this section is laid out in the following manner:
0 commit comments