aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-06-17 12:11:07 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-07-15 07:38:10 +0200
commit3ce50f8ab3d24f1c98de919b0c00d8c58639c40b (patch)
tree3ec01ab772e36210415df80f87d74727b7b58291
parent3788b3e8a5051ab9ad7073d951ad3bb4969d2b87 (diff)
AMPS: Fixes in message display and function names
-rw-r--r--src/amps/frame.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/amps/frame.c b/src/amps/frame.c
index 757fbc3..f7baf61 100644
--- a/src/amps/frame.c
+++ b/src/amps/frame.c
@@ -1832,8 +1832,8 @@ static const char *ie_ohd(uint64_t value)
static const char *amps_t1t2[4] = {
"Only Word 1",
- "First Word",
- "Next Word",
+ "First Word (FOCC) Next Word (FVC)",
+ "Next Word (FOCC) First Word (FVC)",
"Overhead Message",
};
@@ -1913,7 +1913,7 @@ static const char *amps_scc[4] = {
"5970 Hz",
"6000 Hz",
"6030 Hz",
- "Word 2 includes message",
+ "This word includes message",
};
static const char *ie_scc(uint64_t value)
@@ -2248,7 +2248,7 @@ struct amps_ie_desc amps_ie_desc[] = {
{ AMPS_IE_END, "END", "End indication field", ie_yes },
{ AMPS_IE_EP, "EP", "Extended Protocol Capability Indicator", ie_yes },
{ AMPS_IE_ER, "ER", "Extended Protocol Reverse Channel", ie_yes },
- { AMPS_IE_ESN, "ESN", "Electronic Serial Number field", NULL },
+ { AMPS_IE_ESN, "ESN", "Electronic Serial Number field", ie_hex },
{ AMPS_IE_F, "F", "First word indication Field", ie_yes },
{ AMPS_IE_G3_Fax, "G3 Fax", "This field indicates whether or not G3 Fax is supported", ie_yes },
{ AMPS_IE_HDVCC, "HDVCC", "Half Digital Verification Color Code", NULL },
@@ -2977,7 +2977,7 @@ static uint64_t amps_encode_word1_abbreviated_address_word(uint8_t dcc, uint32_t
return amps_encode_word(&frame, &word1_abbreviated_address_word, DEBUG_INFO);
}
-static uint64_t amps_encode_word1_extended_address_word_a(uint16_t min2, uint8_t msg_type, uint8_t ordq, uint8_t order)
+static uint64_t amps_encode_word2_extended_address_word_a(uint16_t min2, uint8_t msg_type, uint8_t ordq, uint8_t order)
{
frame_t frame;
@@ -2992,7 +2992,7 @@ static uint64_t amps_encode_word1_extended_address_word_a(uint16_t min2, uint8_t
return amps_encode_word(&frame, &word2_extended_address_word_a, DEBUG_INFO);
}
-static uint64_t amps_encode_word1_extended_address_word_b(uint8_t scc, uint16_t min2, uint8_t vmac, uint16_t chan)
+static uint64_t amps_encode_word2_extended_address_word_b(uint8_t scc, uint16_t min2, uint8_t vmac, uint16_t chan)
{
frame_t frame;
@@ -3472,9 +3472,9 @@ int amps_encode_frame_focc(amps_t *amps, char *bits)
word = amps_encode_word1_abbreviated_address_word(amps->si.dcc, amps->tx_focc_min1, 1);
else {
if (amps->tx_focc_chan)
- word = amps_encode_word1_extended_address_word_b(amps->sat, amps->tx_focc_min2, amps->si.vmac, amps->tx_focc_chan);
+ word = amps_encode_word2_extended_address_word_b(amps->sat, amps->tx_focc_min2, amps->si.vmac, amps->tx_focc_chan);
else
- word = amps_encode_word1_extended_address_word_a(amps->tx_focc_min2, amps->tx_focc_msg_type, amps->tx_focc_ordq, amps->tx_focc_order);
+ word = amps_encode_word2_extended_address_word_a(amps->tx_focc_min2, amps->tx_focc_msg_type, amps->tx_focc_ordq, amps->tx_focc_order);
}
/* dont wrap frame count until we are done */
++amps->tx_focc_frame_count;