You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
281 B

#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;
};
}