rf: added dummy device

master
Ismael Gomez 9 years ago
parent c36dd98b47
commit 51399c7f67

@ -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; RNTI=62;

@ -130,12 +130,52 @@ static rf_dev_t dev_blade = {
}; };
#endif #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[] = { static rf_dev_t *available_devices[] = {
#ifdef ENABLE_UHD #ifdef ENABLE_UHD
&dev_uhd, &dev_uhd,
#endif #endif
#ifdef ENABLE_BLADERF #ifdef ENABLE_BLADERF
&dev_blade, &dev_blade,
#endif
#ifdef ENABLE_DUMMY_DEV
&dev_dummy,
#endif #endif
NULL NULL
}; };

Loading…
Cancel
Save