libDynamoMiddlewareARM.h File Reference
ARM Middleware Libraries. More...
Data Structures | |
struct | dynamo_backlight |
Contains Backlight information. More... | |
struct | dynamo_battery |
Contains Battery information. More... | |
struct | dynamo_cpu |
Contains CPU Information. More... | |
struct | dynamo_memory |
Contains Memory Information. More... | |
struct | dynamo_network |
Contains Network Information. More... | |
Functions | |
int | get_backlight_level () |
Gets the backlight level. | |
int | set_backlight_level (int lvl) |
Sets the backlight to level Allows the caller to set the backlight intensity. | |
int | get_backlight_status () |
Gets the backlights status [on|off]. | |
int | set_backlight_status (int status) |
Sets the backlight [on 1|off 0] Allows the caller to set the status of the backlight 1 for on 0 for off. | |
int | get_battery_ac_status () |
Checks if the Device is plugged in. | |
int | get_battery_power_level () |
Gets devices battery level. | |
int | get_battery_min_remaining () |
Gets the amount of power in minutes remaining. | |
char * | get_cpu_model () |
Gets the CPU model string. | |
float | get_cpu_load () |
returns the average load of the device | |
int | get_cpu_total_process () |
Gets the amount of total processes on the device. | |
int | get_cpu_running_process () |
Gets the current number of active processes on the device. | |
int | get_mem_total () |
Gets the total amount of memory. | |
int | get_mem_free () |
Gets the amount of free memory. | |
int | get_mem_total_swap () |
Gets the total amount of swap. | |
int | get_mem_free_swap () |
Gets the amount of free swap. | |
int | get_net_is_connected () |
Gets the current network connection status. | |
int | get_net_is_wireless () |
Gets the current wireless network connection status. | |
int | get_net_link_quality () |
Gets the link quality of the wireless network. | |
int | get_net_sig_strength () |
Gets the signal strength of the wireless network. | |
int | get_backlight_info (struct dynamo_backlight *backlight) |
Collects the devices backlight information. | |
int | get_battery_info (struct dynamo_battery *battery) |
Collects the devices battery information. | |
int | get_cpu_info (struct dynamo_cpu *cpu) |
Collects the devices cpu information. | |
int | get_memory_info (struct dynamo_memory *memory) |
Collects the devices memory information. | |
int | get_network_info (struct dynamo_network *network) |
Collects the devices network information. | |
int | createSharedMemory (int key, int size) |
creates a chunk of shared memory | |
int | readSharedMemory (int shmid, void *data, int size) |
reads from the shared memory into a structuer | |
int | writeSharedMemory (int shmid, void *data, int size) |
writes data to the shared memory | |
int | freeSharedMemory (int shmid) |
releases the memory with id of shmid | |
int | createSemaphore (int key) |
translate semaphore key to an ID | |
int | freeSemaphore (int sem_id) |
free specified Semaphore | |
void | P (int sid) |
acquire semaphore | |
void | V (int sid) |
release semaphore | |
int | SendDatagram (char *targetIP, int targetPort, int localPort, void *buf, int bufsiz) |
Sends a Datagram to a remote computer. | |
int | CreateUDPSocket (char *localIP, int localPort) |
creates a UPD socket | |
int | UDP_Recv (int sockfd, void *buf, int size) |
Recives a datagram a remote computer. | |
int | UDP_Send (int sockfd, char *targetIP, int targetPort, int localPort, void *buf, int bufsiz) |
Sends a Datagram to a remote computer. |
Detailed Description
ARM Middleware Libraries.Dynamo Middleware libraries, provide a easy to use interface for querying system information, utilizing shared memory, and communication framework
Copyright (C) 2004 Dynamo Middleware Group
version 0.5
Authors: Michael Philpott, Shivajit Mohapatra
Function Documentation
|
translate semaphore key to an ID
|
|
creates a chunk of shared memory
|
|
creates a UPD socket
|
|
free specified Semaphore
|
|
releases the memory with id of shmid
|
|
Collects the devices backlight information.
|
|
Gets the backlight level.
|
|
Gets the backlights status [on|off].
|
|
Checks if the Device is plugged in.
|
|
Collects the devices battery information.
|
|
Gets the amount of power in minutes remaining.
|
|
Gets devices battery level.
|
|
Collects the devices cpu information.
|
|
returns the average load of the device
|
|
Gets the CPU model string.
|
|
Gets the current number of active processes on the device.
|
|
Gets the amount of total processes on the device.
|
|
Gets the amount of free memory.
|
|
Gets the amount of free swap.
|
|
Gets the total amount of memory.
|
|
Gets the total amount of swap.
|
|
Collects the devices memory information.
|
|
Gets the current network connection status.
|
|
Gets the current wireless network connection status.
|
|
Gets the link quality of the wireless network.
|
|
Gets the signal strength of the wireless network.
|
|
Collects the devices network information.
|
|
acquire semaphore
|
|
reads from the shared memory into a structuer
|
|
Sends a Datagram to a remote computer.
|
|
Sets the backlight to level Allows the caller to set the backlight intensity.
|
|
Sets the backlight [on 1|off 0] Allows the caller to set the status of the backlight 1 for on 0 for off.
|
|
Recives a datagram a remote computer.
|
|
Sends a Datagram to a remote computer.
|
|
release semaphore
|
|
writes data to the shared memory
|