diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-09-15 09:34:43 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2010-09-17 20:52:41 +0200 |
commit | 4f53e169a22bac0c02a485c7116b5d7402be4a7c (patch) | |
tree | a1e9cf977d5ff80dea9b31936d6d37e535649014 /src | |
parent | 54b77bc07ea86ecc4b86e604d3798b441c13b463 (diff) |
fw: Move channel type/mode definitions in common header
We'll need them later elsewhere than the tx prim
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/firmware/include/calypso/l1_environment.h | 20 | ||||
-rw-r--r-- | src/target/firmware/layer1/prim_tx_nb.c | 18 |
2 files changed, 20 insertions, 18 deletions
diff --git a/src/target/firmware/include/calypso/l1_environment.h b/src/target/firmware/include/calypso/l1_environment.h index 2d1f8d97..d4d442cc 100644 --- a/src/target/firmware/include/calypso/l1_environment.h +++ b/src/target/firmware/include/calypso/l1_environment.h @@ -363,3 +363,23 @@ typedef signed short API_SIGNED; #define B_TSQ 0 #define B_BCCH_FREQ_IND 3 #define B_TASK_ABORT 15 // Abort RF tasks for DSP. + +/* Channel type definitions for DEDICATED mode */ +#define INVALID_CHANNEL 0 +#define TCH_F 1 +#define TCH_H 2 +#define SDCCH_4 3 +#define SDCCH_8 4 + +/* Channel mode definitions for DEDICATED mode */ +#define SIG_ONLY_MODE 0 // signalling only +#define TCH_FS_MODE 1 // speech full rate +#define TCH_HS_MODE 2 // speech half rate +#define TCH_96_MODE 3 // data 9,6 kb/s +#define TCH_48F_MODE 4 // data 4,8 kb/s full rate +#define TCH_48H_MODE 5 // data 4,8 kb/s half rate +#define TCH_24F_MODE 6 // data 2,4 kb/s full rate +#define TCH_24H_MODE 7 // data 2,4 kb/s half rate +#define TCH_EFR_MODE 8 // enhanced full rate +#define TCH_144_MODE 9 // data 14,4 kb/s half rate + diff --git a/src/target/firmware/layer1/prim_tx_nb.c b/src/target/firmware/layer1/prim_tx_nb.c index 0e52ef9d..6fd06546 100644 --- a/src/target/firmware/layer1/prim_tx_nb.c +++ b/src/target/firmware/layer1/prim_tx_nb.c @@ -50,24 +50,6 @@ #include <l1ctl_proto.h> -/* Channel type definitions for DEDICATED mode */ -#define INVALID_CHANNEL 0 -#define TCH_F 1 -#define TCH_H 2 -#define SDCCH_4 3 -#define SDCCH_8 4 - -/* Channel mode definitions for DEDICATED mode */ -#define SIG_ONLY_MODE 0 // signalling only -#define TCH_FS_MODE 1 // speech full rate -#define TCH_HS_MODE 2 // speech half rate -#define TCH_96_MODE 3 // data 9,6 kb/s -#define TCH_48F_MODE 4 // data 4,8 kb/s full rate -#define TCH_48H_MODE 5 // data 4,8 kb/s half rate -#define TCH_24F_MODE 6 // data 2,4 kb/s full rate -#define TCH_24H_MODE 7 // data 2,4 kb/s half rate -#define TCH_EFR_MODE 8 // enhanced full rate -#define TCH_144_MODE 9 // data 14,4 kb/s half rate static uint32_t last_txnb_fn; |