diff --git a/matlab/tests/pdsch_decode_signal.m b/matlab/tests/pdsch_decode_signal.m index 29812f8f6..1b9b27af6 100644 --- a/matlab/tests/pdsch_decode_signal.m +++ b/matlab/tests/pdsch_decode_signal.m @@ -1,4 +1,4 @@ -enb=struct('NCellID',0,'NDLRB',25,'NSubframe',4,'CFI',3,'CyclicPrefix','Normal','CellRefP',1,'Ng','One','PHICHDuration','Normal','DuplexMode','FDD'); +enb=struct('NCellID',1,'NDLRB',6,'NSubframe',4,'CFI',3,'CyclicPrefix','Normal','CellRefP',1,'Ng','One','PHICHDuration','Normal','DuplexMode','FDD'); RNTI=62; diff --git a/srslte/lib/rf/rf_dev.h b/srslte/lib/rf/rf_dev.h index 01d858fa7..739c39650 100644 --- a/srslte/lib/rf/rf_dev.h +++ b/srslte/lib/rf/rf_dev.h @@ -130,12 +130,52 @@ static rf_dev_t dev_blade = { }; #endif +//#define ENABLE_DUMMY_DEV + +#ifdef ENABLE_DUMMY_DEV +void dummy_fnc() { + +} + +static rf_dev_t dev_dummy = { + "dummy", + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc, + dummy_fnc +}; +#endif + static rf_dev_t *available_devices[] = { #ifdef ENABLE_UHD &dev_uhd, #endif #ifdef ENABLE_BLADERF - &dev_blade, + &dev_blade, +#endif +#ifdef ENABLE_DUMMY_DEV + &dev_dummy, #endif NULL };