diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-09-02 23:09:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-28 13:15:18 +0100 |
commit | f04f53d3b7909cc77d1b451bc8596c4d69ce8172 (patch) | |
tree | 14f4bff1fa009e317375dd9dec47543fd3770865 /src/target/firmware/include/rf/trf6151.h | |
parent | 6ab18bedb1dca6c3a91b23293583ccf33bc5e70f (diff) |
target/rf: Make the trf6151_set_arfcn use ARFCN_UPLINK flag to select UL/DL
This way we can independentely control what frequency we want and
wheter we want to TX or RX. This allow TX on DL band and RX on UL band.
This also means all call to tx_window setup now need to properly set the
ARFCN_UPLINK flag !
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/include/rf/trf6151.h')
-rw-r--r-- | src/target/firmware/include/rf/trf6151.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/firmware/include/rf/trf6151.h b/src/target/firmware/include/rf/trf6151.h index f0891b6b..c1eaf3b2 100644 --- a/src/target/firmware/include/rf/trf6151.h +++ b/src/target/firmware/include/rf/trf6151.h @@ -22,7 +22,9 @@ int trf6151_set_gain(uint8_t dbm); uint8_t trf6151_get_gain(void); /* Request the PLL to be tuned to the given frequency */ -void trf6151_set_arfcn(uint16_t arfcn, int uplink); +/* arfcn must have ARFCN_UPLINK flag set if you want uplink ! */ +/* tx selects the TX path only and doesn't set UL band ! */ +void trf6151_set_arfcn(uint16_t arfcn, int tx); enum trf6151_mode { TRF6151_IDLE, |