pinq_val_st(3g) — Subroutines
Name
pinq_val_st − Returns information about the valuator device state.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
void pinq_val_st (
Pint wsid, /∗ (I) Workstation identifier. ∗/
Pint dev_num, /∗ (I) Valuator device number. ∗/
Pstore store, /∗ (I) Handle to store the object. store
manages the memory referenced by
∗val_data. ∗/
Pint ∗error_ind, /∗ (O) Error indicator. ∗/
Pop_mode ∗op_mode, /∗ (O) Operating mode. ∗/
Pecho_switch ∗echo, /∗ (O) Echo switch. ∗/
Pfloat ∗init_value, /∗ (O) Initial value. ∗/
Pint ∗pet, /∗ (O) Prompt and echo type. ∗/
Plimit ∗echo_area, /∗ (O) Echo area, in device coordinates. ∗/
Pval_data ∗∗val_data /∗ (O) Data record. ∗/
)
Data Structures
typedef void ∗Pstore;
typedef enum {
POP_REQ, /∗ request mode ∗/
POP_SAMPLE, /∗ sample mode ∗/
POP_EVENT /∗ event mode ∗/
} Pop_mode;
typedef enum {
PSWITCH_NO_ECHO, /∗ echo disabled ∗/
PSWITCH_ECHO /∗ echo enabled ∗/
} Pecho_switch;
typedef struct {
Pfloat x_min; /∗ x minimum ∗/
Pfloat x_max; /∗ x maximum ∗/
Pfloat y_min; /∗ y minimum ∗/
Pfloat y_max; /∗ y maximum ∗/
} Plimit;
typedef struct { /∗ valuator data record ∗/
Pfloat low_value; /∗ low value of valuator range ∗/
Pfloat high_value; /∗ high value of valuator range ∗/
union Pval_pets {
struct Pval_pet_r1 {
char ∗title_string; /∗ title string for the device ∗/
} pet_r1;
struct Pval_pet_r2 {
char ∗title_string; /∗ title string for the device ∗/
} pet_r2;
struct Pval_pet_r3 {
char ∗title_string; /∗ title string for the device ∗/
} pet_r3;
struct Pval_pet_u1 {
char ∗title_string; /∗ title string for the device ∗/
} pet_u1;
struct Pval_pet_u2 {
char ∗title_string; /∗ title string for the device ∗/
} pet_u2;
struct Pval_pet_u3 {
char ∗title_string; /∗ title string for the device ∗/
} pet_u3;
struct Pval_pet_u4 {
char ∗title_string; /∗ title string ∗/
Pint threshold; /∗ threshold value for the hardware
valuator ∗/
Pint smoothing; /∗ smoothing value for the hardware
valuator ∗/
Pfloat num_turns; /∗ number of turns ∗/
} pet_u4;
struct Pval_pet_u100 {
char ∗title_string; /∗ title string for the device ∗/
Pfloat change_filter; /∗ change filter ∗/
Pfloat time_filter; /∗ time filter in seconds ∗/
Pval_flag limit_flag; /∗ wrap/limit flag ∗/
Pfloat num_turns; /∗ number of dial rotations ∗/
} pet_u100;
struct Pval_pet_u102 {
char ∗title_string; /∗ title string for the device ∗/
Pfloat change_filter; /∗ change filter ∗/
Pfloat time_filter; /∗ time filter in seconds ∗/
Pval_flag limit_flag; /∗ wrap/limit flag ∗/
Pfloat num_turns; /∗ number of dial rotations ∗/
} pet_u102;
struct Pval_pet_u103 {
char ∗title_string; /∗ title string for the device ∗/
Pfloat change_filter; /∗ change filter ∗/
Pfloat time_filter; /∗ time filter in seconds ∗/
Pval_flag limit_flag; /∗ wrap/limit flag ∗/
Pfloat num_turns; /∗ number of dial rotations ∗/
} pet_u103;
} pets;
} Pval_data;
typedef enum {
PWRAP,
PLIMIT
} Pval_flag;
Description
pinq_val_st queries the workstation state list and returns values for the following:
•Operating mode
•Echo switch
•Initial valuator value
•Prompt and echo type
•Echo area in device coordinates
•Valuator data record
See Also
pcreate_store
pdel_store
pinit_val
pinq_val_st3
pset_val_mode