SoapySDR
0.5.4-g68d0793c
Vendor and platform neutral SDR interface library
|
#include <SoapySDR/Config.h>
Go to the source code of this file.
Functions | |
SOAPY_SDR_API long long | SoapySDR_ticksToTimeNs (const long long ticks, const double rate) |
SOAPY_SDR_API long long | SoapySDR_timeNsToTicks (const long long timeNs, const double rate) |
Utility functions to convert time and ticks.
SOAPY_SDR_API long long SoapySDR_ticksToTimeNs | ( | const long long | ticks, |
const double | rate | ||
) |
Convert a tick count into a time in nanoseconds using the tick rate.
ticks | a integer tick count |
rate | the ticks per second |
SOAPY_SDR_API long long SoapySDR_timeNsToTicks | ( | const long long | timeNs, |
const double | rate | ||
) |
Convert a time in nanoseconds into a tick count using the tick rate.
timeNs | time in nanoseconds |
rate | the ticks per second |