git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5949 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -186,13 +186,17 @@ int trx_eth_start(openair0_device *openair0) {
|
||||
|
||||
}
|
||||
|
||||
void trx_eth_write(openair0_device *device, openair0_timestamp timestamp, const void *buff, int nsamps, int flags)
|
||||
void trx_eth_write(openair0_device *device, openair0_timestamp timestamp, const void *buff, int nsamps, int cc, int flags)
|
||||
{
|
||||
ethernet_write_data(device->Mod_id,timestamp,buff,0,nsamps);
|
||||
int i;
|
||||
for (i=0;i<cc;i++)
|
||||
ethernet_write_data(device->Mod_id,timestamp,buff,i,nsamps);
|
||||
}
|
||||
int trx_eth_read(openair0_device *device, openair0_timestamp *ptimestamp, void *buff, int nsamps) {
|
||||
int trx_eth_read(openair0_device *device, openair0_timestamp *ptimestamp, void *buff, int nsamps,int cc) {
|
||||
|
||||
return(ethernet_read_data(device->Mod_id,ptimestamp,buff,0,nsamps));
|
||||
int i;
|
||||
for (i=0;i<cc;i++)
|
||||
return(ethernet_read_data(device->Mod_id,ptimestamp,buff,0,nsamps));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
int ethernet_socket_init(int Mod_id, char *dest_ip,int dest_port);
|
||||
|
||||
int ethernet_write_data(int Mod_id, const void *buff, int nsamps);
|
||||
int ethernet_write_data(int Mod_id, const void *buff, int nsamps,int cc);
|
||||
|
||||
int ethernet_read_data(int Mod_id,void *buff, int nsamps);
|
||||
int ethernet_read_data(int Mod_id,void *buff, int nsamps,int cc);
|
||||
|
||||
Reference in New Issue
Block a user