using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
namespace PACNET
{
/// Buzzer API
public partial class Sys
{
/// Buzzer API
public class Buzzer
{
//PAC_API void pac_BuzzerBeep(WORD count, DWORD milliseconds);
///
[DllImport("PACSDK.dll", EntryPoint = "pac_BuzzerBeep")]
public extern static void BuzzerBeep(int BeepCount, long ms);
///
public static void BuzzerBeep()
{
BuzzerBeep(0, 1000);
}
//PAC_API void pac_StopBuzzer();
///
[DllImport("PACSDK.dll", EntryPoint = "pac_StopBuzzer")]
public extern static void StopBuzzer();
//PAC_API void pac_SetBuzzerFreqDuty(int freq, int duty);
///
[DllImport("PACSDK.dll", EntryPoint = "pac_SetBuzzerFreqDuty")]
public extern static void SetBuzzerFreqDuty(int freq, int duty);
//PAC_API void pac_GetBuzzerFreqDuty(int *freq, int *duty);
///
[DllImport("PACSDK.dll", EntryPoint = "pac_GetBuzzerFreqDuty")]
public extern static void GetBuzzerFreqDuty(ref int freq, ref int duty);
}
}
}