libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
system.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Macros

#define SYS_INT_SENDREADY   0
#define SYS_INT_KEY   1
#define SYS_INT_CASETTE   2
#define SYS_INT_RECEIVEREADY   3
#define SYS_INT_DISPLINE   4
#define SYS_INT_TIMER_COUNTUP   5
#define SYS_INT_VBLANK   6
#define SYS_INT_HBLANK_COUNTUP   7

Functions

void sys_interrupt_set_hook (uint8_t id, intvector_t __far *new_vector, intvector_t __far *old_vector)
void sys_interrupt_reset_hook (uint8_t id, intvector_t __far *old_vector)
static void sys_wait (uint16_t ticks)
static uint16_t sys_get_tick_count (void)
static void sys_sleep (void)
static void sys_set_sleep_time (uint16_t value)
static uint16_t sys_get_sleep_time (void)
static void sys_set_awake_key (uint16_t value)
static uint16_t sys_get_awake_key (void)
static void sys_set_keepalive_int (uint16_t value)
uint16_t sys_get_ownerinfo (uint16_t size, void __far *data)
static void sys_set_remote (uint8_t value)
static uint8_t sys_get_remote (void)
static void __wf_iram * sys_alloc_iram (void *ptr, uint16_t size)
static void sys_free_iram (void __wf_iram *ptr)
static void __wf_iram * sys_get_my_iram (void)
static uint16_t sys_get_version (void)
static void sys_set_resume (uint16_t value)
static uint16_t sys_get_resume (void)

Macro Definition Documentation

◆ SYS_INT_CASETTE

#define SYS_INT_CASETTE   2

Definition at line 14 of file system.h.

◆ SYS_INT_DISPLINE

#define SYS_INT_DISPLINE   4

Definition at line 18 of file system.h.

◆ SYS_INT_HBLANK_COUNTUP

#define SYS_INT_HBLANK_COUNTUP   7

Definition at line 24 of file system.h.

◆ SYS_INT_KEY

#define SYS_INT_KEY   1

Definition at line 12 of file system.h.

◆ SYS_INT_RECEIVEREADY

#define SYS_INT_RECEIVEREADY   3

Definition at line 16 of file system.h.

◆ SYS_INT_SENDREADY

#define SYS_INT_SENDREADY   0

Definition at line 10 of file system.h.

◆ SYS_INT_TIMER_COUNTUP

#define SYS_INT_TIMER_COUNTUP   5

Definition at line 20 of file system.h.

◆ SYS_INT_VBLANK

#define SYS_INT_VBLANK   6

Definition at line 22 of file system.h.

Function Documentation

◆ sys_alloc_iram()

void __wf_iram * sys_alloc_iram ( void * ptr,
uint16_t size )
inlinestatic

Definition at line 152 of file system.h.

◆ sys_free_iram()

void sys_free_iram ( void __wf_iram * ptr)
inlinestatic

Definition at line 163 of file system.h.

◆ sys_get_awake_key()

uint16_t sys_get_awake_key ( void )
inlinestatic

Definition at line 101 of file system.h.

◆ sys_get_my_iram()

void __wf_iram * sys_get_my_iram ( void )
inlinestatic

Definition at line 173 of file system.h.

◆ sys_get_ownerinfo()

uint16_t sys_get_ownerinfo ( uint16_t size,
void __far * data )

Read the owner information from the internal EEPROM. To read the complete owner information, one can use the ownerinfo_t structure type.

Parameters
sizeSize of the output buffer, in bytes.
dataOutput buffer.
Returns
ERR_SIO_OK on success, or ERR_SIO_TIMEOUT on internal EEPROM communication timeout.

◆ sys_get_remote()

uint8_t sys_get_remote ( void )
inlinestatic

Definition at line 141 of file system.h.

◆ sys_get_resume()

uint16_t sys_get_resume ( void )
inlinestatic

Definition at line 208 of file system.h.

◆ sys_get_sleep_time()

uint16_t sys_get_sleep_time ( void )
inlinestatic

Definition at line 80 of file system.h.

◆ sys_get_tick_count()

uint16_t sys_get_tick_count ( void )
inlinestatic
Returns
Number of frames elapsed since system start.

Definition at line 49 of file system.h.

◆ sys_get_version()

uint16_t sys_get_version ( void )
inlinestatic
Returns
Version of the installed BIOS.

Definition at line 187 of file system.h.

◆ sys_interrupt_reset_hook()

void sys_interrupt_reset_hook ( uint8_t id,
intvector_t __far * old_vector )

Unhook the given interrupt handler and disable the interrupt.

◆ sys_interrupt_set_hook()

void sys_interrupt_set_hook ( uint8_t id,
intvector_t __far * new_vector,
intvector_t __far * old_vector )

Hook the given interrupt handler and enable the interrupt.

◆ sys_set_awake_key()

void sys_set_awake_key ( uint16_t value)
inlinestatic

Definition at line 91 of file system.h.

◆ sys_set_keepalive_int()

void sys_set_keepalive_int ( uint16_t value)
inlinestatic

Definition at line 112 of file system.h.

◆ sys_set_remote()

void sys_set_remote ( uint8_t value)
inlinestatic

Definition at line 131 of file system.h.

◆ sys_set_resume()

void sys_set_resume ( uint16_t value)
inlinestatic

Definition at line 198 of file system.h.

◆ sys_set_sleep_time()

void sys_set_sleep_time ( uint16_t value)
inlinestatic

Definition at line 70 of file system.h.

◆ sys_sleep()

void sys_sleep ( void )
inlinestatic

Definition at line 60 of file system.h.

◆ sys_wait()

void sys_wait ( uint16_t ticks)
inlinestatic

Definition at line 36 of file system.h.