Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
buzzer_tunes.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 Tomaso De Ponti <tomaso@aerogriduav.com>
3 *
4 * This file is part of paparazzi
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
26#ifndef BUZZER_TUNES_H
27#define BUZZER_TUNES_H
28
29#include "std.h"
30
51
53
54extern void buzzer_tunes_init(void);
55extern void buzzer_tunes_periodic(void);
56
58extern void buzzer_tunes_play(uint8_t tune);
59
60#endif /* BUZZER_TUNES_H */
void buzzer_tunes_init(void)
buzzer_tunes_t
Tunes, order must match the values of the tune setting.
@ BUZZER_TUNES_TWINKLE
@ BUZZER_TUNES_CUSTOM_1
custom RTTTL tunes, see BUZZER_TUNES_RTTTL_x
@ BUZZER_TUNES_STARTUP
@ BUZZER_TUNES_CUSTOM_2
@ BUZZER_TUNES_MUSHROOM
@ BUZZER_TUNES_FUR_ELISE
@ BUZZER_TUNES_CUSTOM_3
@ BUZZER_TUNES_ODE_TO_JOY
@ BUZZER_TUNES_WILLIAM_TELL
@ BUZZER_TUNES_ANTHEM_NETHERLANDS
@ BUZZER_TUNES_HAPPY_BIRTHDAY
@ BUZZER_TUNES_ANTHEM_ITALY
@ BUZZER_TUNES_NONE
@ BUZZER_TUNES_NB
@ BUZZER_TUNES_ANTHEM_FRANCE
@ BUZZER_TUNES_GRAN_VALS
@ BUZZER_TUNES_LA_CUCARACHA
void buzzer_tunes_periodic(void)
uint8_t buzzer_tunes_tune
tune being played, BUZZER_TUNES_NONE when silent
void buzzer_tunes_play(uint8_t tune)
Start a tune (BUZZER_TUNES_NONE stops), also the settings handler.
uint16_t foo
Definition main_demo5.c:58
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.