| [6] | 1 | /** | 
|---|
|  | 2 | ****************************************************************************** | 
|---|
|  | 3 | * @file    Project/STM32L0_Internal_RC_Oscillators_Calibration/Inc/hsi16.h | 
|---|
|  | 4 | * @author  MCD Application Team | 
|---|
|  | 5 | * @version V0.1.0 | 
|---|
|  | 6 | * @date    17-December-2014 | 
|---|
|  | 7 | * @brief   Header for hsi16.c | 
|---|
|  | 8 | ****************************************************************************** | 
|---|
|  | 9 | * @attention | 
|---|
|  | 10 | * | 
|---|
|  | 11 | * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> | 
|---|
|  | 12 | * | 
|---|
|  | 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); | 
|---|
|  | 14 | * You may not use this file except in compliance with the License. | 
|---|
|  | 15 | * You may obtain a copy of the License at: | 
|---|
|  | 16 | * | 
|---|
|  | 17 | *        http://www.st.com/software_license_agreement_liberty_v2 | 
|---|
|  | 18 | * | 
|---|
|  | 19 | * Unless required by applicable law or agreed to in writing, software | 
|---|
|  | 20 | * distributed under the License is distributed on an "AS IS" BASIS, | 
|---|
|  | 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|---|
|  | 22 | * See the License for the specific language governing permissions and | 
|---|
|  | 23 | * limitations under the License. | 
|---|
|  | 24 | * | 
|---|
|  | 25 | ****************************************************************************** | 
|---|
|  | 26 | */ | 
|---|
|  | 27 |  | 
|---|
|  | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ | 
|---|
|  | 29 | #ifndef __HSI_MEASUREMENT_H | 
|---|
|  | 30 | #define __HSI_MEASUREMENT_H | 
|---|
|  | 31 |  | 
|---|
|  | 32 | /* Includes ------------------------------------------------------------------*/ | 
|---|
|  | 33 | #include "stdint.h" | 
|---|
|  | 34 | #include "stm32g0xx.h" | 
|---|
|  | 35 | /* Exported types ------------------------------------------------------------*/ | 
|---|
|  | 36 | /* Exported constants --------------------------------------------------------*/ | 
|---|
|  | 37 | /* Exported functions ------------------------------------------------------- */ | 
|---|
|  | 38 | void                            HSI16_MeasurementInit(void); | 
|---|
|  | 39 | uint32_t                HSI16_FreqMeasure(void); | 
|---|
|  | 40 | uint32_t                HSI16_CalibrateMinError(void); | 
|---|
|  | 41 | ErrorStatus HSI16_CalibrateFixedError(uint32_t MaxAllowedError, uint32_t* Freq); | 
|---|
|  | 42 | ErrorStatus HSI16_CalibrateCurve(uint32_t* Freq); | 
|---|
|  | 43 | void                            HSI16_GetCurve(void); | 
|---|
|  | 44 | void frequencyErrorTest(void); | 
|---|
|  | 45 |  | 
|---|
|  | 46 | #endif /* __HSI_MEASUREMENT_H */ | 
|---|
|  | 47 |  | 
|---|
|  | 48 | /******************* (C) COPYRIGHT 2014 STMicroelectronics *****END OF FILE****/ | 
|---|