Dreambox C/C++ SDK v1.0.0
C/C++ SDK for creating Dreambox games
Loading...
Searching...
No Matches
db_bios.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#ifdef __cplusplus
6extern "C"
7{
8#endif
9
10#define BIOS_VIDEOMODE_DEFAULT 0
11#define BIOS_VIDEOMODE_VGA 1
12#define BIOS_VIDEOMODE_COMPOSITE 2
13#define BIOS_VIDEOMODE_SVIDEO 3
14
18extern void bios_loadProgram(const void *codeData, uint32_t codeLen);
19
22extern void bios_getPrefLang(char *outLangStr);
23
26extern void bios_setPrefLang(const char *langStr);
27
31
34extern void bios_setPrefAudioVolume(float value);
35
38extern uint32_t bios_getPrefVideoOutput();
39
42extern void bios_setPrefVideoOutput(uint32_t videoOutputMode);
43
46extern uint8_t bios_getPref24HrClock();
47
50extern void bios_setPref24HrClock(uint8_t enable);
51
53extern void bios_savePrefs();
54
55#ifdef __cplusplus
56}
57#endif
float bios_getPrefAudioVolume()
Get the currently set console audio volume from BIOS settings.
void bios_setPrefVideoOutput(uint32_t videoOutputMode)
Set the current console video output mode.
void bios_setPrefAudioVolume(float value)
Set the console audio volume.
void bios_setPrefLang(const char *langStr)
Set the current console language to the given ISO language code.
uint8_t bios_getPref24HrClock()
Get whether the console is set to display a 24hr clock from BIOS settings.
void bios_loadProgram(const void *codeData, uint32_t codeLen)
Load a program and begin executing.
void bios_getPrefLang(char *outLangStr)
Get the currently set console language from BIOS settings.
uint32_t bios_getPrefVideoOutput()
Get the current console video output mode from BIOS settings.
void bios_savePrefs()
Persist preference settings.
void bios_setPref24HrClock(uint8_t enable)
Set whether the console should display a 24hr clock.