Dreambox C/C++ SDK v1.0.0
C/C++ SDK for creating Dreambox games
Loading...
Searching...
No Matches
db_bios.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define BIOS_VIDEOMODE_DEFAULT   0
 
#define BIOS_VIDEOMODE_VGA   1
 
#define BIOS_VIDEOMODE_COMPOSITE   2
 
#define BIOS_VIDEOMODE_SVIDEO   3
 

Functions

void bios_loadProgram (const void *codeData, uint32_t codeLen)
 Load a program and begin executing. More...
 
void bios_getPrefLang (char *outLangStr)
 Get the currently set console language from BIOS settings. More...
 
void bios_setPrefLang (const char *langStr)
 Set the current console language to the given ISO language code. More...
 
float bios_getPrefAudioVolume ()
 Get the currently set console audio volume from BIOS settings. More...
 
void bios_setPrefAudioVolume (float value)
 Set the console audio volume. More...
 
uint32_t bios_getPrefVideoOutput ()
 Get the current console video output mode from BIOS settings. More...
 
void bios_setPrefVideoOutput (uint32_t videoOutputMode)
 Set the current console video output mode. More...
 
uint8_t bios_getPref24HrClock ()
 Get whether the console is set to display a 24hr clock from BIOS settings. More...
 
void bios_setPref24HrClock (uint8_t enable)
 Set whether the console should display a 24hr clock. More...
 
void bios_savePrefs ()
 Persist preference settings. More...
 

Macro Definition Documentation

◆ BIOS_VIDEOMODE_COMPOSITE

#define BIOS_VIDEOMODE_COMPOSITE   2

Definition at line 12 of file db_bios.h.

◆ BIOS_VIDEOMODE_DEFAULT

#define BIOS_VIDEOMODE_DEFAULT   0

Definition at line 10 of file db_bios.h.

◆ BIOS_VIDEOMODE_SVIDEO

#define BIOS_VIDEOMODE_SVIDEO   3

Definition at line 13 of file db_bios.h.

◆ BIOS_VIDEOMODE_VGA

#define BIOS_VIDEOMODE_VGA   1

Definition at line 11 of file db_bios.h.

Function Documentation

◆ bios_getPref24HrClock()

uint8_t bios_getPref24HrClock ( )

Get whether the console is set to display a 24hr clock from BIOS settings.

Returns
True if the console displays a 24-hour clock, false if it displays a 12-hour clock

◆ bios_getPrefAudioVolume()

float bios_getPrefAudioVolume ( )

Get the currently set console audio volume from BIOS settings.

Returns
The current audio volume (0.0 .. 1.0)

◆ bios_getPrefLang()

void bios_getPrefLang ( char *  outLangStr)

Get the currently set console language from BIOS settings.

Parameters
outLangStrPointer to a string which will be filled with an ISO language code ("en", "fr", "es", "ja", etc)

◆ bios_getPrefVideoOutput()

uint32_t bios_getPrefVideoOutput ( )

Get the current console video output mode from BIOS settings.

Returns
A video output mode (refer to BIOS_VIDEOMODE_* defines)

◆ bios_loadProgram()

void bios_loadProgram ( const void *  codeData,
uint32_t  codeLen 
)

Load a program and begin executing.

Parameters
codeDataPointer to the WASM code blob in memory
codeLenLength of the WASM code blob

◆ bios_savePrefs()

void bios_savePrefs ( )

Persist preference settings.

◆ bios_setPref24HrClock()

void bios_setPref24HrClock ( uint8_t  enable)

Set whether the console should display a 24hr clock.

Parameters
enableTrue if the console should display a 24-hour clock, false if it should display a 12-hour clock

◆ bios_setPrefAudioVolume()

void bios_setPrefAudioVolume ( float  value)

Set the console audio volume.

Parameters
valueA new audio volume to assign (0.0 .. 1.0)

◆ bios_setPrefLang()

void bios_setPrefLang ( const char *  langStr)

Set the current console language to the given ISO language code.

Parameters
langStrAn ISO language code to set ("en", "fr", "es", "ja", etc)

◆ bios_setPrefVideoOutput()

void bios_setPrefVideoOutput ( uint32_t  videoOutputMode)

Set the current console video output mode.

Parameters
videoOutputModeA video output mode (refer to BIOS_VIDEOMODE_* defines)