STM8S/A Standard Peripherals Drivers: stm8s_beep.h File Reference

STM8S/A

stm8s_beep.h File Reference

This file contains all functions prototype and macros for the BEEP peripheral. More...

#include "stm8s.h"

Go to the source code of this file.

Defines

#define BEEP_CALIBRATION_DEFAULT   ((uint8_t)0x0B)
#define IS_BEEP_FREQUENCY_OK(FREQ)
 Macro used by the assert function to check the different functions parameters.
#define IS_LSI_FREQUENCY_OK(FREQ)
 Macro used by the assert function to check the LSI frequency (in Hz).
#define LSI_FREQUENCY_MAX   ((uint32_t)150000)
#define LSI_FREQUENCY_MIN   ((uint32_t)110000)

Enumerations

enum  BEEP_Frequency_TypeDef { BEEP_FREQUENCY_1KHZ = (uint8_t)0x00, BEEP_FREQUENCY_2KHZ = (uint8_t)0x40, BEEP_FREQUENCY_4KHZ = (uint8_t)0x80 }
 BEEP Frequency selection. More...

Functions

void BEEP_Cmd (FunctionalState NewState)
 Enable or disable the BEEP function.
void BEEP_DeInit (void)
 Deinitializes the BEEP peripheral registers to their default reset values.
void BEEP_Init (BEEP_Frequency_TypeDef BEEP_Frequency)
 Initializes the BEEP function according to the specified parameters.
void BEEP_LSICalibrationConfig (uint32_t LSIFreqHz)
 Update CSR register with the measured LSI frequency.

Detailed Description

This file contains all functions prototype and macros for the BEEP peripheral.

Author:
MCD Application Team
Version:
V2.3.0
Date:
16-June-2017
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm8s_beep.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com