25 #define HAL_BUZZER_ON 1 26 #define HAL_BUZZER_OFF 0 36 #if defined(HAL_BUZZER_PIN) 41 if(!
_pin)
return false;
uint32_t _arming_buzz_start_ms
virtual void write(uint8_t pin, uint8_t value)=0
bool init(void)
init - initialise the buzzer
void update()
update - updates buzzer according to timed_updated. Should be called at 50Hz
virtual void pinMode(uint8_t pin, uint8_t output)=0
uint32_t failsafe_battery
#define BUZZER_ARMING_BUZZ_MS
uint8_t get_buzz_pin() const
const AP_Notify * pNotify
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
struct Buzzer::buzzer_flag_type _flags
static struct notify_flags_and_values_type flags
void play_pattern(BuzzerPattern pattern_id)
play_pattern - plays the defined buzzer pattern
static struct notify_events_type events
void on(bool on_off)
on - turns the buzzer on or off