Commit ad57b90d authored by knopp's avatar knopp

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5862 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 65674425
......@@ -117,11 +117,15 @@ extern "C"
int openair0_device_init(openair0_device* device, openair0_config_t *openair0_cfg);
openair0_timestamp get_usrp_time(openair0_device *device);
int openair0_set_frequencies(openair0_device* device, openair0_config_t *openair0_cfg);
int openair0_set_gains(openair0_device* device, openair0_config_t *openair0_cfg);
}
#else
int openair0_device_init(openair0_device* device, openair0_config_t *openair0_cfg);
openair0_timestamp get_usrp_time(openair0_device *device);
int openair0_set_frequencies(openair0_device* device, openair0_config_t *openair0_cfg);
int openair0_set_gains(openair0_device* device, openair0_config_t *openair0_cfg);
#endif
#endif // COMMON_LIB_H
......@@ -186,6 +186,14 @@ int openair0_set_frequencies(openair0_device* device, openair0_config_t *openair
}
int openair0_set_gains(openair0_device* device, openair0_config_t *openair0_cfg) {
usrp_state_t *s = (usrp_state_t*)device->priv;
s->usrp->set_tx_gain(openair0_cfg[0].tx_gain[0]);
s->usrp->set_rx_gain(openair0_cfg[0].rx_gain[0]);
return(0);
}
int openair0_device_init(openair0_device* device, openair0_config_t *openair0_cfg)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment