summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorSylvain Munaut2011-04-23 22:27:59 +0200
committerSylvain Munaut2011-05-29 19:51:54 +0200
commita78316c8315fc075e8253fd8678e6a7b5c8bf1d8 (patch)
tree59ac9237ae92de8e3b882e2d510c167a2affeeef /src/target/firmware/include
parentMerge commit '3710e462f85824cd9d84b3f95e6b2ea694119ff9' (diff)
downloadosmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.tar.gz
osmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.tar.xz
osmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.zip
fw/rffe: Add function to query RF wiring
Depending on the chipset and the HW, not all ports are connected and we need to know what we can use when we have the choice ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r--src/target/firmware/include/rffe.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/target/firmware/include/rffe.h b/src/target/firmware/include/rffe.h
index a21d183..c28c696 100644
--- a/src/target/firmware/include/rffe.h
+++ b/src/target/firmware/include/rffe.h
@@ -11,6 +11,20 @@ void rffe_init(void);
/* switch RF Frontend Mode */
void rffe_mode(enum gsm_band band, int tx);
+/* query RF wiring */
+enum rffe_port
+{
+ PORT_LO = 0, /* Combined 850/900 port */
+ PORT_HI = 1, /* Combined 1800/1900 port */
+ PORT_GSM850 = 2,
+ PORT_GSM900 = 3,
+ PORT_DCS1800 = 4,
+ PORT_PCS1900 = 5,
+};
+
+uint32_t rffe_get_rx_ports(void);
+uint32_t rffe_get_tx_ports(void);
+
/* get current gain of RF frontend (anything between antenna and baseband in dBm */
uint8_t rffe_get_gain(void);