|
地板
楼主 |
发表于 2020-1-20 18:46:31
|
只看该作者
@file Project/STM32F10x_StdPeriph_Template/main.c
* @author MCD Application Team
* @version V3.5.0
* @date 08-April-2011
* @brief Main program body
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
******************************************************************************
*/
/*! ----------------------------------------------------------------------------
* @file main.c
* @brief Double-sided two-way ranging (DS TWR) responder example code
*
* This is a simple code example which acts as the responder in a DS TWR distance measurement exchange. This application waits for a "poll"
* message (recording the RX time-stamp of the poll) expected from the "DS TWR initiator" example code (companion to this application), and
* then sends a "response" message recording its TX time-stamp, after which it waits for a "final" message from the initiator to complete
* the exchange. The final message contains the remote initiator's time-stamps of poll TX, response RX and final TX. With this data and the
* local time-stamps, (of poll RX, response TX and final RX), this example application works out a value for the time-of-flight over-the-air
* and, thus, the estimated distance between the two devices, which it writes to the LCD.
*
|
|