ardupilot/libraries/AP_HAL_Linux/ToneAlarm.h

20 lines
281 B
C
Raw Normal View History

#pragma once
2014-11-15 06:25:55 -04:00
#include <AP_HAL/AP_HAL.h>
2014-11-15 06:25:55 -04:00
namespace Linux {
class ToneAlarm {
2014-11-15 06:25:55 -04:00
public:
ToneAlarm();
virtual bool init();
virtual void set_buzzer_tone(float frequency, float volume, uint32_t duration_ms);
private:
2014-11-15 06:25:55 -04:00
int32_t period_fd;
int32_t duty_fd;
int32_t run_fd;
};
}