|
请参考官方函数实现
- /*! ------------------------------------------------------------------------------------------------------------------
- * @fn dwt_readrxtimestamp()
- *
- * @brief This is used to read the RX timestamp (adjusted time of arrival)
- *
- * input parameters
- * @param timestamp - a pointer to a 5-byte buffer which will store the read RX timestamp time
- *
- * output parameters - the timestamp buffer will contain the value after the function call
- *
- * no return value
- */
- void dwt_readrxtimestamp(uint8 * timestamp)
- {
- dwt_readfromdevice(RX_TIME_ID, 0, RX_TIME_RX_STAMP_LEN, timestamp) ; // Get the adjusted time of arrival
- // dwt_readfromdevice(RX_TIME_ID, 9, RX_TIME_RX_STAMP_LEN, timestamp) ; // Get the adjusted time of arrival
- }
复制代码 |
|