ardupilot/libraries/AP_HAL_Linux/ToneAlarm.h

20 lines
281 B
C++

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