Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gii_phystype(3) [debian man page]

gii_cmddata_getvalinfo(3)						GGI						 gii_cmddata_getvalinfo(3)

NAME
gii_cmddata_getvalinfo, gii_phystype, gii_valrange - GII valuators description SYNOPSIS
#include <ggi/events.h> typedef struct gii_valrange { int32_t min, center, max; } gii_valrange; typedef struct { uint32_t number; char longname[75]; char shortname[5]; gii_valrange range; gii_phystype phystype; int32_t SI_add,SI_mul,SI_div,SI_shift; } gii_cmddata_getvalinfo; DESCRIPTION
This structure is used to describe the values reported by a specific valuator. STRUCTURE MEMBERS
gii_cmddata_getvalinfo fields are defined as follow: number Number of the queried valuator. longname A human-redable NULL terminated string identifying the valuator. shortname A NULL terminated abbreviated name for this valuator. range Contains the minimum, center and maximum values for this valuator. Note that this range may change on some devices due to calibra- tion, but it is usually not expected that a device recalibrates while in use. You should react gracefully to values received from the valuator that are outside the specified range, though. phystype Gives the physical quantity the device measures. The idea is to report the thing the user actually controls. I.e. a Joystick actu- ally measures resistance, but should report GII_PT_ANGLE or GII_PT_FORCE, as that is what the user does to the stick and what results in the changed resistance. SI_add, SI_mul, SI_div, SI_shift Using these values, it is possible to give calibration data to the application or to compute the actual floating point value (in the unit expressed in phystype) reported by the valuator with the following formula: (float)(SI_add + value) * (float)SI_mul / (float)SI_div * pow(2.0, SI_shift); PHYSICAL UNITS
The following physical units are defined for gii_phystype: o GII_PT_UNKNOWN : unknown o GII_PT_TIME : base unit s (second) o GII_PT_FREQUENCY : base unit 1/s (Hz) o GII_PT_LENGTH : base unit m (meter) o GII_PT_VELOCITY : base unit m/s o GII_PT_ACCELERATION : base unit m/s^2 o GII_PT_ANGLE : base unit radian o GII_PT_ANGVELOCITY : base unit radian/s o GII_PT_ANGACCELERATION : base unit radian/s^2 o GII_PT_AREA : base unit m^2 o GII_PT_VOLUME : base unit m^3 o GII_PT_MASS : base unit kg o GII_PT_FORCE : base unit N (kg*m/s^2) o GII_PT_PRESSURE : base unit N/m^2 (Pa) o GII_PT_TORQUE : base unit Nm o GII_PT_ENERGY : base unit Nm, VAs, J o GII_PT_POWER : base unit Nm/s, VA, W o GII_PT_TEMPERATURE : base unit K o GII_PT_CURRENT : base unit A o GII_PT_VOLTAGE : base unit V (kg*m^2/(As^3)) o GII_PT_RESISTANCE : base unit V/A (Ohm) o GII_PT_CAPACITY : base unit As/V (Farad) o GII_PT_INDUCTIVITY : base unit Vs/A (Henry) SEE ALSO
giiQueryValInfo(3) libgii-1.0.x 2006-12-30 gii_cmddata_getvalinfo(3)

Check Out this Related Man Page

sysdef(1M)                                                System Administration Commands                                                sysdef(1M)

NAME
sysdef - output system definition SYNOPSIS
/usr/sbin/sysdef [-i] [-n namelist] /usr/sbin/sysdef [-h] [-d] [-i] [-D] DESCRIPTION
The sysdef utility outputs the current system definition in tabular form. It lists all hardware devices, as well as pseudo devices, system devices, loadable modules, and the values of selected kernel tunable parameters. It generates the output by analyzing the named bootable operating system file (namelist) and extracting the configuration information from it. The default system namelist is /dev/kmem. OPTIONS
-i Prints the configuration information from /dev/kmem. This is the default and only needs to be specified if the configura- tion information from both /dev/kmem and the system file specified with the "-n namelist" option is needed. -nnamelist Specifies a namelist other than the default (/dev/kmem). The namelist specified must be a valid bootable operating system. -h Prints the identifier of the current host in hexadecimal. This numeric value is unique across all Sun hosts. -d The output includes the configuration of system peripherals formatted as a device tree. -D For each system peripheral in the device tree, display the name of the device driver used to manage the peripheral. EXAMPLES
Example 1: Sample output format The following example displays the format of the sysdef -d output: example% sysdef -d Node 'SUNW,Ultra-5_10', unit #-1 Node 'packages', unit #-1 (no driver) Node 'terminal-emulator', unit #-1 (no driver) Node 'deblocker', unit #-1 (no driver) Node 'obp-tftp', unit #-1 (no driver) Node 'disk-label', unit #-1 (no driver) Node 'SUNW,builtin-drivers', unit #-1 (no driver) Node 'sun-keyboard', unit #-1 (no driver) Node 'ufs-file-system', unit #-1 (no driver) Node 'chosen', unit #-1 (no driver) Node 'openprom', unit #-1 (no driver) Node 'client-services', unit #-1 (no driver) Node 'options', unit #0 Node 'aliases', unit #-1 (no driver) Node 'memory', unit #-1 (no driver) Node 'virtual-memory', unit #-1 (no driver) Node 'pci', unit #0 Node 'pci', unit #0 Node 'ebus', unit #0 Node 'auxio', unit #-1 (no driver) Node 'power', unit #0 Node 'SUNW,pll', unit #-1 (no driver) Node 'se', unit #0 (no driver) Node 'su', unit #0 Node 'su', unit #1 Node 'ecpp', unit #-1 (no driver) Node 'fdthree', unit #0 Node 'eeprom', unit #-1 (no driver) Node 'flashprom', unit #-1 (no driver) Node 'SUNW,CS4231', unit #0 (no driver) Node 'network', unit #0 Node 'SUNW,m64B', unit #0 Node 'ide', unit #0 Node 'disk', unit #-1 (no driver) Node 'cdrom', unit #-1 (no driver) Node 'sd', unit #1 Node 'dad', unit #1 Node 'pci', unit #-1 (no driver) Node 'SUNW,UltraSPARC-IIi', unit #-1 (no driver) Node 'pseudo', unit #0 [output truncated] FILES
/dev/kmem default operating system image ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
hostid(1), prtconf(1M), nlist(3ELF), attributes(5) SunOS 5.10 4 Oct 2004 sysdef(1M)
Man Page