| |
- alloc_heap_cell(size)
- Allocates a cell of at least the specified size from the current
thread's heap.
size:: An integer value.
- alloc_heap_cells_size()
- Returns the total size of the cells allocated on the calling
thread's heap.
- check_heap()
- Checks the validity of the calling threads heap, raising a panic
if any corruption is found.
- compress_all_heaps()
- Compresses memory chunks containing heaps.
- create_drive_subst(drive_num, path)
- Assigns a path to a drive letter. To clear an existing
substitution, specify an empty string as the path.
drive_num:: An integer specifying a drive number.
path:: A unicode string specifying the path.
- free_heap_cell(address)
- Frees the heap cell at the specified address. Passing an invalid
address will result in a panic.
address:: An integer value.
- get_hal_attr(attr)
- Gets the value of the specified HAL attribute.
attr:: An integer specifying the attribute.
- get_process_priority()
- The return values to expect are: EPriorityLow (150),
EPriorityBackground (250), EPriorityForeground (350),
EPriorityHigh (450), EPriorityWindowServer (650),
EPriorityFileServer (750), EPriorityRealTimeServer (850),
EPrioritySupervisor (950).
- get_subst_path(drive_num)
- Returns the path assigned to the specified substed drive.
drive_num:: An integer specifying a drive number.
- get_thread_priority()
- The return values to expect are: EPriorityNull (-30, cannot be set
by user code), EPriorityMuchLess (-20), EPriorityLess (-10),
EPriorityNormal (0), EPriorityMore (10), EPriorityMuchMore (20),
EPriorityRealTime (30), EPriorityAbsoluteVeryLow (100),
EPriorityAbsoluteLow (200), EPriorityAbsoluteBackground (300),
EPriorityAbsoluteForeground (400), EPriorityAbsoluteHigh (500,
highest possible apart from the kernel).
- heap_base_address()
- Returns the base address of the heap of the running thread as an
integer.
- heap_biggest_avail()
- Returns the space available in the largest free block an the
calling thread's heap.
- heap_total_avail()
- Returns the total free space available on the calling thread's
heap.
- kill_process(spec, reason)
- Ends the specified process(es). On S60 3rd Edition, the PowerMgmt
capability is required to successfully execute this function.
spec:: A Unicode string value. A pattern to match against either
the process name, which would typically consist of the
executable name and the UID. Examples are u"daemon.exe*" or
u"*[12345678]*".
reason:: An integer value. The reason code with which the process
should exit.
- local_bt_address()
- Returns the local Bluetooth address.
Only works with Bluetooth enabled.
- local_bt_name()
- Returns the local Bluetooth name.
Only works with Bluetooth enabled.
- num_alloc_heap_cells()
- Returns the total number of cells allocated on the calling
thread's heap.
- num_free_heap_cells()
- Returns the total number of free cells on the calling thread's
heap.
- reset_inactivity_time()
- Resets all inactivity timers. May be used to keep the backlight
on, for instance.
Deprecated. PyS60 1.3.17 onwards has reset_inactivity(), which
should be used instead.
- restart_phone()
- Restarts the device.
- set_hal_attr(attr, value)
- Sets the specified HAL attribute to the specified value.
attr:: An integer specifying the attribute.
value:: An integer specifying its value.
- set_process_priority(priority)
- priority:: An integer value. See get_process_priority()
documentation for a list of legal values.
- set_thread_priority(priority)
- priority:: An integer value. See get_thread_priority()
documentation for a list of legal values.
- stack_info()
- Returns a tuple of three integers (free, used, total). "free" and
"used" indicate the amount of stack remaining and used up at the
point where this function is called. "total" gives the total stack
size allocated for the calling thread.
Only supported on S60 3rd Edition and higher.
- tick_count()
- Returns the current tick count.
- vibrate(duration, intensity)
- Runs the vibra motor for the specified duration of time at the
specified intensity. The duration is specified in milliseconds,
and must be greater than zero. The intensity is a value between
-100 and 100 (inclusive), and it specifies percentage of full
rotation speed. Positive and negative values cause rotation in
opposite directions; a zero value indicates no rotation, and thus
it makes little sense to call this function with 0 intensity
argument.
Vibration will not work unless enabled in the profile. Only
supported on S60 2nd Ed FP2 and higher.
duration:: An integer.
intensity:: An integer.
|