BuzzerScan.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**************************** (C) COPYRIGHT 2015 Fortiortech shenzhen *****************************
  2. * File Name : BuzzerScan.h
  3. * Author : Billy Long Fortiortech Market Dept
  4. * Version : V1.0
  5. * Date : 01/07/2015
  6. * Description : This file contains all the common data types used for Motor Control.
  7. ***************************************************************************************************
  8. * All Rights Reserved
  9. **************************************************************************************************/
  10. /* Define to prevent recursive inclusion --------------------------------------------------------*/
  11. #ifndef __BUZZERSCAN_H_
  12. #define __BUZZERSCAN_H_
  13. #include "FU68xx_4_MCU.h"
  14. /*BUZZER */
  15. #define BuzzerRingFrq (4000)
  16. /* Exported types -------------------------------------------------------------------------------*/
  17. typedef struct
  18. {
  19. uint8 FlagBZ;
  20. uint8 BZRunTime;
  21. uint16 BZCnt;
  22. uint8 BZMultitimes;
  23. uint16 BZMultitimesCount;
  24. } BZScan_TypeDef;
  25. /* Exported variables ---------------------------------------------------------------------------*/
  26. //extern BZScan_TypeDef xdata BZScan;
  27. /* Exported functions ---------------------------------------------------------------------------*/
  28. extern void BuzzerInit(void);
  29. extern void SetBuzzer(uint8 BZRunTime,uint8 BZMultitimes);
  30. extern void BuzzerScan(void);
  31. #endif