| Nano100BN Series BSP V3.03.002 The Board Support Package for Nano100BN Series

NuEdu-Basic01_Buzzer.h
Go to the documentation of this file.
1 /**************************************************************************/
12 #ifndef __NuEdu_Basic01_Buzzer_H__
13 #define __NuEdu_Basic01_Buzzer_H__
14
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19
20
33 extern void Open_Buzzer(void);
34 extern void Close_Buzzer(void);
35 extern void Write_Buzzer(unsigned int frequence, unsigned int duty);
36
37 /* end of group Nano130_Basic01_FUNCTIONS Buzzer Exported Functions */
39 /* end of group NuEdu-SDK-Nano130_Basic01 Nano130_Basic01 Library */
41 /* end of group NANO100_Library NANO100 Library */
43
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif //__NuEdu_Basic01_Buzzer_H__
50
51 /*** (C) COPYRIGHT 2013-2014 Nuvoton Technology Corp. ***/
Write_Buzzer
void Write_Buzzer(unsigned int frequence, unsigned int duty)
This function set PWM output frequence and duty to drive Buzzer module.
Definition: NuEdu-Basic01_Buzzer.c:78
Close_Buzzer
void Close_Buzzer(void)
This function power down the Buzzer module.
Definition: NuEdu-Basic01_Buzzer.c:91
Open_Buzzer
void Open_Buzzer(void)
This function enable PWM1 module clock and set clock source to start Buzzer module.
Definition: NuEdu-Basic01_Buzzer.c:58