#include <stdint.h>
Go to the source code of this file.
◆ BIOS_VIDEOMODE_COMPOSITE
#define BIOS_VIDEOMODE_COMPOSITE 2 |
◆ BIOS_VIDEOMODE_DEFAULT
#define BIOS_VIDEOMODE_DEFAULT 0 |
◆ BIOS_VIDEOMODE_SVIDEO
#define BIOS_VIDEOMODE_SVIDEO 3 |
◆ BIOS_VIDEOMODE_VGA
#define BIOS_VIDEOMODE_VGA 1 |
◆ 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
-
outLangStr | Pointer 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
-
codeData | Pointer to the WASM code blob in memory |
codeLen | Length of the WASM code blob |
◆ bios_savePrefs()
Persist preference settings.
◆ bios_setPref24HrClock()
void bios_setPref24HrClock |
( |
uint8_t |
enable | ) |
|
Set whether the console should display a 24hr clock.
- Parameters
-
enable | True 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
-
value | A 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
-
langStr | An 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
-
videoOutputMode | A video output mode (refer to BIOS_VIDEOMODE_* defines) |