kopia lustrzana https://github.com/OpenRTX/OpenRTX
Add M17 codeplug data structures
rodzic
f43f54117c
commit
eea9be3349
|
@ -72,6 +72,18 @@ typedef struct
|
||||||
}
|
}
|
||||||
__attribute__((packed)) dmrInfo_t;
|
__attribute__((packed)) dmrInfo_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data structure containing all and only the information for M17 channels.
|
||||||
|
*/
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
uint8_t rxCan : 4, /**< Channel Access Number for RX squelch */
|
||||||
|
txCan : 4; /**< Channel Access Number for TX squelch */
|
||||||
|
|
||||||
|
uint16_t contactName_index; /**< Index to retrieve data from contact list */
|
||||||
|
}
|
||||||
|
__attribute__((packed)) m17Info_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data structure containing all the information of a channel, either FM or DMR.
|
* Data structure containing all the information of a channel, either FM or DMR.
|
||||||
*/
|
*/
|
||||||
|
@ -104,6 +116,7 @@ typedef struct
|
||||||
{
|
{
|
||||||
fmInfo_t fm; /**< Information block for FM channels */
|
fmInfo_t fm; /**< Information block for FM channels */
|
||||||
dmrInfo_t dmr; /**< Information block for DMR channels */
|
dmrInfo_t dmr; /**< Information block for DMR channels */
|
||||||
|
m17Info_t m17; /**< Information block for M17 channels */
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
__attribute__((packed)) channel_t;
|
__attribute__((packed)) channel_t;
|
||||||
|
|
|
@ -60,6 +60,15 @@ typedef struct
|
||||||
}
|
}
|
||||||
gps_t;
|
gps_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data structure representing the settings of the M17 mode.
|
||||||
|
*/
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char callsign[10];
|
||||||
|
}
|
||||||
|
m17_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Part of this structure has been commented because the corresponding
|
* Part of this structure has been commented because the corresponding
|
||||||
* functionality is not yet implemented.
|
* functionality is not yet implemented.
|
||||||
|
@ -95,6 +104,7 @@ typedef struct
|
||||||
bool emergency;
|
bool emergency;
|
||||||
settings_t settings;
|
settings_t settings;
|
||||||
gps_t gps_data;
|
gps_t gps_data;
|
||||||
|
m17_t m17_data;
|
||||||
}
|
}
|
||||||
state_t;
|
state_t;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue