Reference Manual
SYSTEM INITIALIZATION AND SHUTDOWN
Following is an example of how to measure the time taken by the main method. The time is found at the beginning and end of the function, and
the difference between the start and end time is calculated to be the time taken for the program to run. The code in this snippet is taken from
the autogenerated C99 code from TES.
int main()
{
// Start Timer
struct timeval start_t, end_t;
gettimeofday(&start_t, NULL);
int32_t error_code = 0;
adi_adrv9001_Device_t * adrv9001Device_0 = (adi_adrv9001_Device_t *) calloc(1,
sizeof(adi_adrv9001_Device_t));
adi_fpga9001_Device_t * fpga9001Device_0 = (adi_fpga9001_Device_t *) calloc(1,
sizeof(adi_fpga9001_Device_t));
error_code = linux_uio_initialize(adrv9001Device_0, fpga9001Device_0, NULL);
AUTOGENERATOR_ERROR_HANDLER(error_code);
error_code = initialize(adrv9001Device_0, fpga9001Device_0);
AUTOGENERATOR_ERROR_HANDLER(error_code);
.
.
.
error_code = stopTransmitting(fpga9001Device_0);
AUTOGENERATOR_ERROR_HANDLER(error_code);
//End Timer
gettimeofday(&end_t, NULL);
//Print Out Time Taken
printf("Time taken to run is : %ld micro seconds\n",
((end_t.tv_sec * 1000000 + end_t.tv_usec) -
(start_t.tv_sec * 1000000 + start_t.tv_usec)));
return error_code;
}
Example Results
During experiments, Analog Devices focused on characterizing the time taken for the device to boot-up from RESET to RF ENABLED using
a given digital mobile radio (DMR) configuration (note: this configuration is just an example use case. It does not represent a "best case"
scenario):
TDD mode of operation
►
analog.com
ADRV9001
Rev. A | 53 of 377
Need help?
Do you have a question about the ADRV9005 and is the answer not in the manual?
Questions and answers