STM8L15x Standard Peripherals Drivers: stm8l15x_beep.h File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_beep.h File Reference

This file contains all the functions prototypes for the BEEP firmware library. More...

#include "stm8l15x.h"

Go to the source code of this file.

Defines

#define BEEP_CALIBRATION_DEFAULT   ((uint8_t)0x01)
#define IS_BEEP_FREQUENCY(FREQ)
#define IS_LSI_FREQUENCY(FREQ)   (((FREQ) >= LSI_FREQUENCY_MIN) && ((FREQ) <= LSI_FREQUENCY_MAX))
#define LSI_FREQUENCY_MAX   ((uint32_t)75000)
#define LSI_FREQUENCY_MIN   ((uint32_t)25000)

Enumerations

enum  BEEP_Frequency_TypeDef { BEEP_Frequency_1KHz = (uint8_t)0x00, BEEP_Frequency_2KHz = (uint8_t)0x40, BEEP_Frequency_4KHz = (uint8_t)0x80 }

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_LSClockToTIMConnectCmd (FunctionalState NewState)
 Enable or disable the LS clock source connection to TIM for measurement.
void BEEP_LSICalibrationConfig (uint32_t LSIFreqHz)
 Update CSR register with the measured LSI frequency.

Detailed Description

This file contains all the functions prototypes for the BEEP firmware library.

Author:
MCD Application Team
Version:
V1.5.0
Date:
13-May-2011
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.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm8l15x_beep.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com