Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

Proc - System Information


Detailed Description

This API allows to modify and access low-level kernel settings.

Defines

Functions


Define Documentation

#define BRUM_NBX_24
 

BRUM

#define BRUM_NBX_24_USB
 

BRUM USB

#define PROC_16_FREE_EEPROM
 

Total free EEPROM (can be fragmented - for max. fragment use PROC_16_MAX_EEPROM).

#define PROC_16_FREE_MALLOC
 

Total free MALLOC heap (can be fragmented - for max. fragment use PROC_16_MAX_MALLOC).

#define PROC_16_FREE_PROGMEM
 

Total free PROGMEM (can be fragmented - for max. fragment use PROC_16_MAX_PROGMEM).

#define PROC_16_FREE_RAM
 

Total free RAM (can be fragmented - for max. fragment use PROC_16_MAX_RAM).

#define PROC_16_MAX_EEPROM
 

Max. EEPROM emalloc() chunk.

#define PROC_16_MAX_MALLOC
 

Max. malloc() chunk.

#define PROC_16_MAX_PROGMEM
 

Max. PROGMEM fragment.

#define PROC_16_MAX_RAM
 

Max. RAM fragment.

#define PROC_16_NR_FLASHINGS
 

Number of PROGMEM application flashings. Set to zero by firmware reflash.

#define PROC_16_STATUS_COUNT
 

Number of STATUS commands since power on - u16 so will overflow in about 22 days (with 1 STATUS every 30 sec).

#define PROC_8_CARD_PHASE
 

Returns:
SIM EF_PHASE

#define PROC_8_CLOCK_SETTING
 

SIM DF clock stopping. Or'ed 0xF0 means that ME does not request this value via STATUS command (bad for resetting for idle task).

Returns:
0/1

#define PROC_8_CONFIG_ALPHA
 

TAG_ALPHA used by STK functions.

Returns:
0/1.

#define PROC_8_CONFIG_BINARY_CHOICE
 

get_inkey() binary choice used by yesno().

Returns:
0/1.

#define PROC_8_CONFIG_CABLE
 

Cable interface compiled in kernel.

Returns:
0/1.

#define PROC_8_CONFIG_FAKE_PHONEBOOK
 

Usage of fake phonebook compiled in kernel.

Returns:
0/1.

#define PROC_8_CONFIG_IMG
 

Image support compliled in kernel.

Returns:
0/1.

#define PROC_8_CONFIG_LAUNCH_BROWSER
 

launch_browser() compiled in kernel.

Returns:
0/1.

#define PROC_8_CONFIG_NETWORKING
 

Networking support compiled in kernel.

Returns:
0/1.

#define PROC_8_CONFIG_NR_CHANNELS
 

Number of networking channels supported by kernel.

Returns:
number of channels

#define PROC_8_CONFIG_NR_TIMERS
 

Number of timers supported by kernel.

Returns:
0/1.

#define PROC_8_CONFIG_PREF_ITEM
 

TAG_PREFERRED_ITEM used by spider.

Returns:
0/1.

#define PROC_8_CONFIG_SETUP
 

Display "Setup" menu item. You have to do set_up_menu() to recreate menu.

Returns:
0/1.

#define PROC_8_CONFIG_SIM_FIRST
 

SIM applications menu first/last. You have to do set_up_menu() to recreate menu.

Returns:
0/1.

#define PROC_8_CONFIG_TIMER
 

Timer support compiled in kernel.

Returns:
0/1.

#define PROC_8_DISPLAY_TEXT_LEN
 

Display length.

Returns:
u8 length

#define PROC_8_LANGUAGE
 

Used language.

Returns:
language

#define PROC_8_ME_SPEED
 

ME-TURBO (and TURBO-SIM) UART speed. 0 means default f/372 speed, 1 means f/64.

#define PROC_8_ME_SST
 

Number of SST - SIM Service Table bytes requested by ME. This can indicate services support of ME.

Returns:
number of bytes

#define PROC_8_MT_FETCH
 

Multi-thread FETCH setting.

Returns:
0/1.

#define PROC_8_SEQS
 

Max. number of Turbo SMS sequence numbers (questions) kept by kernel until answers received.

Returns:
number of sequence numbers kept

#define TURBO_PROGRAMMER
 

Turbo Programmer

#define TURBO_PROGRAMMER_2
 

Turbo Programmer 2

#define TURBO_SIM_TOOLKIT_ADAPTER
 

Turbo SIM, Turbo Mini, Turbo Adapter, Turbo Lite, Turbo Motion

#define TURBO_SIM_TOOLKIT_ADAPTER_BRA
 

Turbo BRA

#define TURBO_SIM_TOOLKIT_ADAPTER_EVO
 

Turbo Lite 2, Turbo Motion 2


Function Documentation

u16 proc_16 u8  x  ) 
 

Parameters:
x can be: PROC_16_STATUS_COUNT, PROC_16_NR_FLASHINGS,PROC_16_FREE_PROGMEM, PROC_16_MAX_PROGMEM, PROC_16_FREE_RAM, PROC_16_MAX_RAM, PROC_16_FREE_EEPROM, PROC_16_MAX_EEPROM, PROC_16_FREE_MALLOC, PROC_16_MAX_MALLOC.
Returns:
returns system info information

u8 proc_8 u8  x  ) 
 

Parameters:
x can be: PROC_8_LANGUAGE, PROC_8_DISPLAY_TEXT_LEN, PROC_8_CONFIG_FAKE_PHONEBOOK, PROC_8_CONFIG_IMG, PROC_8_MT_FETCH, PROC_8_CONFIG_LAUNCH_BROWSER, PROC_8_CONFIG_NETWORKING, PROC_8_CONFIG_NR_CHANNELS, PROC_8_CONFIG_TIMER, PROC_8_CONFIG_ALPHA, PROC_8_CONFIG_PREF_ITEM, PROC_8_CONFIG_BINARY_CHOICE, PROC_8_CARD_PHASE, PROC_8_ME_SPEED, PROC_8_CLOCK_SETTING, PROC_8_SEQS, PROC_8_CONFIG_CABLE, PROC_8_CONFIG_SETUP, PROC_8_CONFIG_SIM_FIRST.
Returns:
configuration and system info information
Examples:
sysinfo.c.

void serial_number u8  buf[14]  ) 
 

Returns:
serial number - unique per turbo

void set_proc_8 u8  x,
u8  val
 

modify system values

Parameters:
x can be: PROC_8_LANGUAGE, PROC_8_DISPLAY_TEXT_LEN, PROC_8_CONFIG_FAKE_PHONEBOOK, PROC_8_CONFIG_IMG, PROC_8_MT_FETCH, PROC_8_CONFIG_ALPHA, PROC_8_CONFIG_PREF_ITEM, PROC_8_CONFIG_BINARY_CHOICE, PROC_8_SEQS, PROC_8_CONFIG_SETUP, PROC_8_CONFIG_SIM_FIRST.
val new value.
Examples:
hello_world_ucs2.c, and sysinfo.c.

u8 version_hwd void   ) 
 

Returns:
version of hardware: TURBO_SIM_TOOLKIT_ADAPTER, TURBO_PROGRAMMER, TURBO_PROGRAMMER_2, BRUM_NBX_24, TURBO_SIM_TOOLKIT_ADAPTER_EVO, TURBO_SIM_TOOLKIT_ADAPTER_BRA, BRUM_NBX_24_USB

u8 version_loader void   ) 
 

Returns:
version of boot loader

u32 version_turbo void   ) 
 

Returns:
version of kernel


Copyright © 2004-2006 BLADOX
Turbo version 1.2