diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2017-05-30 12:49:40 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2017-07-15 07:38:09 +0200 |
commit | 3788b3e8a5051ab9ad7073d951ad3bb4969d2b87 (patch) | |
tree | 2c564d2140241ee80bdd855cb9400ee097debd53 /src/amps/frame.h | |
parent | d52f4cd29d0713d171a40321cfe739bc70cdbf67 (diff) |
TACS support (variations added to AMPS code)
These are:
- Bandwidth only 25 KHz, so lower deviations
- Data rate only 8000 KHz
- SID is called AID (Area ID)
- MIN1 coding is different
Diffstat (limited to 'src/amps/frame.h')
-rw-r--r-- | src/amps/frame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amps/frame.h b/src/amps/frame.h index 9531dfe..42380ad 100644 --- a/src/amps/frame.h +++ b/src/amps/frame.h @@ -5,6 +5,7 @@ enum amps_ie { AMPS_IE_11, AMPS_IE_1111, AMPS_IE_ACT, + AMPS_IE_AID1, AMPS_IE_AUTH, AMPS_IE_AUTHBS, AMPS_IE_AUTHR, @@ -211,6 +212,7 @@ typedef struct amps_frame { void init_frame(void); uint64_t amps_encode_word1_system(uint8_t dcc, uint16_t sid1, uint8_t ep, uint8_t auth, uint8_t pci, uint8_t nawc); +uint64_t tacs_encode_word1_system(uint8_t dcc, uint16_t aid1, uint8_t ep, uint8_t auth, uint8_t pci, uint8_t nawc); uint64_t amps_encode_word2_system(uint8_t dcc, uint8_t s, uint8_t e, uint8_t regh, uint8_t regr, uint8_t dtx, uint8_t n_1, uint8_t rcf, uint8_t cpa, uint8_t cmax_1, uint8_t end); uint64_t amps_encode_registration_id(uint8_t dcc, uint32_t regid, uint8_t end); uint64_t amps_encode_registration_increment(uint8_t dcc, uint16_t regincr, uint8_t end); |