1 /* USER CODE BEGIN Header */ 2 /** 3 ****************************************************************************** 4 * @file rf_timing_synchro.h 5 * @author MCD Application Team 6 * @brief Header for rf_timing_synchro.c module 7 ****************************************************************************** 8 * @attention 9 * 10 * Copyright (c) 2022 STMicroelectronics. 11 * All rights reserved. 12 * 13 * This software is licensed under terms that can be found in the LICENSE file 14 * in the root directory of this software component. 15 * If no LICENSE file comes with this software, it is provided AS-IS. 16 * 17 ****************************************************************************** 18 */ 19 /* USER CODE END Header */ 20 21 /* Define to prevent recursive inclusion -------------------------------------*/ 22 #ifndef RF_TIMING_SYNCHRO_H 23 #define RF_TIMING_SYNCHRO_H 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 /* Includes ------------------------------------------------------------------*/ 30 #include "utilities_common.h" 31 32 /* Exported types ------------------------------------------------------------*/ 33 34 /* RFTS command status */ 35 typedef enum 36 { 37 RFTS_CMD_OK, /* The RF Timing synchronization command was successfully executed */ 38 RFTS_WINDOW_REQ_FAILED, /* The RF Timing synchronization module failed to register the window request */ 39 RFTS_WINDOW_REL_ERROR /* An error occurred during the window release procedure */ 40 } RFTS_Cmd_Status_t; 41 42 /* Exported constants --------------------------------------------------------*/ 43 /* Exported variables --------------------------------------------------------*/ 44 /* Exported macros -----------------------------------------------------------*/ 45 /* Exported functions prototypes ---------------------------------------------*/ 46 RFTS_Cmd_Status_t RFTS_ReqWindow(uint32_t Duration, void (*Callback)(void)); 47 RFTS_Cmd_Status_t RFTS_RelWindow(void); 48 49 #ifdef __cplusplus 50 } 51 #endif 52 53 #endif /*RF_TIMING_SYNCHRO_H */ 54