Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PC Card event codes are event codes that card services sends to the stream interface driver's callback function to indicate that a PC Card event has occurred. Not all event codes are supported on all platforms. The following table shows the defined codes.
Programming element | Description |
---|---|
CE_BATTERY_DEAD | Indicates a dead battery on the PC Card. This event is signaled through the BVD1 pin, which can also be accessed through the pin replacement register (PRR). |
CE_BATTERY_LOW | Indicates a low battery on the PC Card. This event is signaled through the BVD2 pin, which can also be accessed through the PRR. |
CE_CARD_LOCK | Indicates that the hardware card lock is closed. |
CE_CARD_READY | Indicates that a PC Card has changed from a busy to a ready state. |
CE_CARD_REMOVAL | Indicates that a PC Card has been removed from the socket. |
CE_CARD_UNLOCK | Indicates that the hardware card lock is open. |
CE_INSERTION_COMPLETE | Indicates that a PC Card has been inserted. |
CE_PM_RESUME | Indicates that the system has resumed after being powered down and is now running. |
CE_PM_SUSPEND | Indicates that the system has just returned from a suspended state and that any CE_CARD_INSERTION and CE_CARD_REMOVAL codes received before the next CE_PM_RESUME code are likely to be invalid. |
CE_EXCLUSIVE_COMPLETE | Indicates that a driver's CardRequestExclusive request has taken place. |
CE_EXCLUSIVE_REQUEST | Indicates that a driver has called CardRequestExclusive with a request for exclusive access to a PC Card. |
CE_WRITE_PROTECT | Indicates that a PC Card's write-protect status has changed. |
CE_POWER_CYCLE_ON | Indicates that a PC Card has been powered. This event code has two assosciated parameters:
|
CE_POWER_CYCLE_OFF | Indicates that a PC Card has been powered off. |
CE_CARD_INSTERTION | Indicates that a PC Card has been inserted in the socket. Applications registering for insertion events also receive this event for PC cards that are already in the socket after a suspend event or resume event. |
CE_REGISTRATION_COMPLETE | Indicates that client registration is complete. |
CE_CARD_BUS_INFO | Indicates that a relationship between bus and client drivers has been established. This event code has two assosciated parameters:
|
CE_CARD_UNLOAD_DRIVER | Indicates an application request to unload the client driver. |
CE_CARD_LOAD_DRIVER | Indicates an application request to load the client driver. |
See Also
PC Card Driver Functions | PC Card Driver Structures
Send Feedback on this topic to the authors