Deluge Firmware
1.3.0
Build date: 2026.08.29
Toggle main menu visibility
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
23
extern
"C"
{
24
#endif
25
extern
int
main(
void
);
26
extern
int32_t deluge_main(
void
);
27
28
extern
void
midiAndGateTimerGoneOff(
void
);
29
30
extern
void
routineWithClusterLoading(
void
);
31
extern
void
loadAnyEnqueuedClustersRoutine(
void
);
32
33
extern
void
logAudioAction(
char
const
*
string
);
34
35
extern
void
consoleTextIfAllBootedUp(
char
const
* text);
36
typedef
bool (*RunCondition)();
37
bool
yieldingRoutineWithTimeoutForSD(RunCondition until,
double
timeoutSeconds);
38
void
yieldingRoutineForSD(RunCondition until);
39
extern
void
routineForSD(
void
);
40
extern
void
sdCardInserted(
void
);
41
extern
void
sdCardEjected(
void
);
42
43
extern
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
47
extern
const
size_t
l10n_STRING_FOR_USB_DEVICES_MAX;
48
extern
const
size_t
l10n_STRING_FOR_USB_DEVICE_DETACHED;
49
extern
const
size_t
l10n_STRING_FOR_USB_HUB_ATTACHED;
50
extern
const
size_t
l10n_STRING_FOR_USB_DEVICE_NOT_RECOGNIZED;
51
52
char
const
* l10n_get(
size_t
s);
53
54
#ifdef __cplusplus
55
}
56
57
namespace
Deluge {
58
void
factoryReset();
59
}
60
#endif