At 9:10 PM -0400 2000/06/06, [EMAIL PROTECTED] wrote:
>Has anyone worked with this pin before? Palm uses it with the snap-on modem but there
>isn't any straight API call I can find to probe it. I would like to use it as a
>general purpose input to the Palm to tell my software that my hardware is connected,
>like the modem does.
The following information is officially unsupported. But I'd rather see you use a
stable, unsupported API call than go poking at the hardware directly. Both solutions
will affect your app's Platinum Certification if you plan to go about requesting it,
but the unsupported API call allows you to request a special exception and is more
likely to be granted. So, with that said...
Call UInt16 HwrDockStatus(void) and check for the hwrDockStatusModemAttached bit in
the result. Note that not all hardware is capable of uniquely setting each bit of the
result, therefore in some cases a "best fit" answer is computed.
// Bits returned by HwrDockStatus()
#define hwrDockStatusUndocked 0x0000 // nothing is attached
#define hwrDockStatusModemAttached 0x0001 // some type of modem is attached
#define hwrDockStatusDockAttached 0x0002 // some type of dock is attached
#define hwrDockStatusUsingExternalPower 0x0004 // using some type of external power
source
#define hwrDockStatusCharging 0x0008 // internal power cells are recharging
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/