mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 20:55:40 -05:00
Appease Volo - God of Compiler Warnings;
This commit is contained in:
@@ -68,9 +68,8 @@ uint16_t crc16m17(const uint8_t *in, const uint16_t len)
|
|||||||
void M17decodeCSD(dsd_state * state, unsigned long long int dst, unsigned long long int src)
|
void M17decodeCSD(dsd_state * state, unsigned long long int dst, unsigned long long int src)
|
||||||
{
|
{
|
||||||
//evaluate dst and src, and determine if they need to be converted to calsign
|
//evaluate dst and src, and determine if they need to be converted to calsign
|
||||||
int i, j;
|
int i;
|
||||||
char c;
|
char c;
|
||||||
unsigned long long int value;
|
|
||||||
|
|
||||||
if (dst == 0xFFFFFFFFFFFF)
|
if (dst == 0xFFFFFFFFFFFF)
|
||||||
fprintf (stderr, " DST: BROADCAST");
|
fprintf (stderr, " DST: BROADCAST");
|
||||||
@@ -448,7 +447,7 @@ void M17processCodec2_3200(dsd_opts * opts, dsd_state * state, uint8_t payload[1
|
|||||||
void M17prepareStream(dsd_opts * opts, dsd_state * state, uint8_t m17_bits[368])
|
void M17prepareStream(dsd_opts * opts, dsd_state * state, uint8_t m17_bits[368])
|
||||||
{
|
{
|
||||||
|
|
||||||
int i, j, k, x;
|
int i, k, x;
|
||||||
uint8_t m17_punc[310]; //25 * 11 = 275
|
uint8_t m17_punc[310]; //25 * 11 = 275
|
||||||
memset (m17_punc, 0, sizeof(m17_punc));
|
memset (m17_punc, 0, sizeof(m17_punc));
|
||||||
for (i = 0; i < 272; i++)
|
for (i = 0; i < 272; i++)
|
||||||
|
|||||||
14
src/ysf.c
14
src/ysf.c
@@ -132,7 +132,7 @@ const int vd2Interleave[104] = {
|
|||||||
25, 51, 77, 103
|
25, 51, 77, 103
|
||||||
};
|
};
|
||||||
|
|
||||||
void ysf_dch_decode (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt, uint8_t fn, uint8_t ft, uint8_t cm, uint8_t input[])
|
void ysf_dch_decode (dsd_state * state, uint8_t bn, uint8_t bt, uint8_t fn, uint8_t ft, uint8_t cm, uint8_t input[])
|
||||||
{
|
{
|
||||||
//TODO: Per Call WAV files using these strings
|
//TODO: Per Call WAV files using these strings
|
||||||
int i;
|
int i;
|
||||||
@@ -143,6 +143,8 @@ void ysf_dch_decode (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt,
|
|||||||
char rem1[6];
|
char rem1[6];
|
||||||
char rem2[6];
|
char rem2[6];
|
||||||
|
|
||||||
|
UNUSED3(bt, fn, ft);
|
||||||
|
|
||||||
for (i = 0; i < 20; i++)
|
for (i = 0; i < 20; i++)
|
||||||
dch_bytes[i] = (char)ConvertBitIntoBytes(&input[i*8], 8);
|
dch_bytes[i] = (char)ConvertBitIntoBytes(&input[i*8], 8);
|
||||||
|
|
||||||
@@ -238,7 +240,7 @@ void ysf_dch_decode (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ysf_dch_decode2 (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt, uint8_t fn, uint8_t ft, uint8_t cm, uint8_t input[])
|
void ysf_dch_decode2 (dsd_state * state, uint8_t bn, uint8_t bt, uint8_t fn, uint8_t ft, uint8_t cm, uint8_t input[])
|
||||||
{
|
{
|
||||||
//TODO: Per Call WAV files using these strings
|
//TODO: Per Call WAV files using these strings
|
||||||
int i;
|
int i;
|
||||||
@@ -248,6 +250,8 @@ void ysf_dch_decode2 (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt
|
|||||||
char rem1[6];
|
char rem1[6];
|
||||||
char rem2[6];
|
char rem2[6];
|
||||||
|
|
||||||
|
UNUSED4(bn, bt, fn, ft);
|
||||||
|
|
||||||
for (i = 0; i < 10; i++)
|
for (i = 0; i < 10; i++)
|
||||||
dch_bytes[i] = (char)ConvertBitIntoBytes(&input[i*8], 8);
|
dch_bytes[i] = (char)ConvertBitIntoBytes(&input[i*8], 8);
|
||||||
|
|
||||||
@@ -444,7 +448,7 @@ int ysf_conv_dch2 (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt, u
|
|||||||
|
|
||||||
//decode the callsign, etc, found in the DCH when no errors
|
//decode the callsign, etc, found in the DCH when no errors
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
ysf_dch_decode2 (opts, state, bn, bt, fn, ft, cm, trellis_buf);
|
ysf_dch_decode2 (state, bn, bt, fn, ft, cm, trellis_buf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s", KRED);
|
fprintf (stderr, "%s", KRED);
|
||||||
@@ -537,7 +541,7 @@ int ysf_conv_dch (dsd_opts * opts, dsd_state * state, uint8_t bn, uint8_t bt, ui
|
|||||||
|
|
||||||
//decode the callsign, etc, found in the DCH when no errors
|
//decode the callsign, etc, found in the DCH when no errors
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
ysf_dch_decode (opts, state, bn, bt, fn, ft, cm, trellis_buf);
|
ysf_dch_decode (state, bn, bt, fn, ft, cm, trellis_buf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s", KRED);
|
fprintf (stderr, "%s", KRED);
|
||||||
@@ -618,7 +622,7 @@ int ysf_conv_fich (uint8_t input[], uint8_t dest[32])
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t fich_bits[12*4];
|
uint8_t fich_bits[12*4];
|
||||||
char temp_b[24];
|
uint8_t temp_b[24];
|
||||||
bool g[4];
|
bool g[4];
|
||||||
|
|
||||||
// run golay 24_12 error correction
|
// run golay 24_12 error correction
|
||||||
|
|||||||
Reference in New Issue
Block a user