DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

Status(D4pccard)


Status -- Describes the current status

Syntax

   #include <sys/lcs.h>
   #include <sys/lss.h>
   

Description

The Status structure provides information to the GetStatus(D3pccard) service to know the curent status of the PC Card and its socket.

Structure definition

   unsigned short  	usSocket;
   unsigned short  	usCardState;
   unsigned short  	usSocketState;

Structure members

The members are defined as:

usSocket
Function and logical socket

usCardState
Bit mapped card state output data. Valid values are:


bit 0
set to 1 if write protected (set=true)

bit 1
card locked

bit 2
ejection request

bit 3
insertion request

bit 4
battery voltage1, set (1) = dead

bit 5
battery voltage2, set (1) = warning

bit 6
READY, set (1) = ready asserted

bit 7
card detected, set (1) = true volts

bit 8
extended status request attention, set (1) = true

bit 9
extended status reserved event 1,

bit 10
extended status reserved event 2, set (1) = true

bit 11
extended status reserved event 3, set (1) = true

bit 13 - 12
Vcc Level


0 0
5 volts

0 1
3.3 volts

1 0
reserved for X.X

1 1
not used

bit 15 - 14
reserved


0 0
reset to 0

usSocketState
Bit mapped socket state output data.

bit 0
write protect change

bit 1
card lock change, set (1) = true

bit 2
ejection request pending, set (1) = true

bit 3
insertion request pending, set (1) = true

bit 4
battery dead change, set (1) = true

bit 5
battery warning change, set (1) = true

bit 6
ready change, set (1) = true

bit 7
card detect change, set (1) = true

bit 8..15
reserved, reset to 0

Usage

Hardware applicability

All

Version applicability

pccard: 1, 2, 3

References

GetStatus(D3pccard)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005