Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
deluge.h
1/*
2 * Copyright © 2023 Synthstrom Audible Limited
3 *
4 * This file is part of The Synthstrom Audible Deluge Firmware.
5 *
6 * The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software Foundation,
8 * either version 3 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along with this program.
15 * If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19#include <stddef.h>
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25extern int main(void);
26extern int32_t deluge_main(void);
27
28extern void midiAndGateTimerGoneOff(void);
29
30extern void routineWithClusterLoading(void);
31extern void loadAnyEnqueuedClustersRoutine(void);
32
33extern void logAudioAction(char const* string);
34
35extern void consoleTextIfAllBootedUp(char const* text);
36typedef bool (*RunCondition)();
37bool yieldingRoutineWithTimeoutForSD(RunCondition until, double timeoutSeconds);
38void yieldingRoutineForSD(RunCondition until);
39extern void routineForSD(void);
40extern void sdCardInserted(void);
41extern void sdCardEjected(void);
42
43extern void setTimeUSBInitializationEnds(int32_t timeFromNow);
44
45// The following is for use by RZA1, based on gui/l10n/strings.h
46// THIS MUST MATCH THE VALUES OF THESE ENTRIES IN deluge::l10n::String
47extern const size_t l10n_STRING_FOR_USB_DEVICES_MAX;
48extern const size_t l10n_STRING_FOR_USB_DEVICE_DETACHED;
49extern const size_t l10n_STRING_FOR_USB_HUB_ATTACHED;
50extern const size_t l10n_STRING_FOR_USB_DEVICE_NOT_RECOGNIZED;
51
52char const* l10n_get(size_t s);
53
54#ifdef __cplusplus
55}
56#endif