最近正在做一个蓝牙定位项目,需要进广播包接受时的RSSI和时间进行处理,由于使用率时域算法及需要准确的知道获取广播包的时间,查找资料只找到了TImeAPP例程 C:\Texas Instruments\BLE-CC2540-1.1a\Projects\ble\TimeApp
但这个是用osal_start_timerEx来更新时间的,不符合我们的要求,我们想获取广播包接受时间毫秒级别的,
在例程中也找到一个函数 osal_getClock( void )但是返回值是秒级别的
/********************************************************************* * @fn osal_getClock * * @brief Gets the current time. This will only return the seconds * portion of time and doesn't include the factional second * counter. * * @param none * * @return number of seconds since 0 hrs, 0 minutes, 0 seconds, * on the 1st of January 2000 UTC */ UTCTime osal_getClock( void ) { return ( OSAL_timeSeconds ); }
osal有其他方法获取毫秒级时间的函数吗,或者还是用定时器来计时?
USB GONGLE 抓包会有每帧数据的时间us级别,它是如何实现的?