source: trunk/firmware/HSI16/Inc/hsi16.h @ 6

Last change on this file since 6 was 6, checked in by f.jahn, 3 months ago
File size: 2.1 KB
RevLine 
[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>&copy; 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 ------------------------------------------------------- */
38void                            HSI16_MeasurementInit(void);
39uint32_t                HSI16_FreqMeasure(void);
40uint32_t                HSI16_CalibrateMinError(void);
41ErrorStatus HSI16_CalibrateFixedError(uint32_t MaxAllowedError, uint32_t* Freq);
42ErrorStatus HSI16_CalibrateCurve(uint32_t* Freq);
43void                            HSI16_GetCurve(void);
44void frequencyErrorTest(void);
45
46#endif /* __HSI_MEASUREMENT_H */
47
48/******************* (C) COPYRIGHT 2014 STMicroelectronics *****END OF FILE****/
Note: See TracBrowser for help on using the repository browser.