From: Paul Guyot (pguyot_at_kallisys.net)
Date: Sun Sep 08 2002 - 14:11:39 PDT
À (At) 22:58 +0200 8/09/02, j'écrivais (I wrote) :
>I just wish I knew how to be told by the Newton at which voltage it
>can operate (since the eMate cannot do 12V, this should be present
>somehow).
OK, this is straightforward.
Once you have a socket object (from the card handler), call the
VccVoltageSpec or VppVoltageSpec methods. It returns a constant built
using bits defined in kPCMCIAVoltageAvailibilities (CardSocket.h).
These methods call GetPCMCIAPowerSpec method of the Platform driver.
First parameter is 0 for Vcc, 1 for Vpp. Second parameter is a
pointer to the result. Result code is an error code (noErr or
kError_Call_Not_Implemented if the first parameter isn't 0 or 1 for
Voyager).
Voyager driver on the MP2x00 says 5 for Vcc and 7 for Vpp which means
that it can work at 3.3 and 5V for Vcc, 3.3, 5 and 12V for Vpp.
You can then do the voltage negotiation with what is in the PCMCIA
information (parsed for you as a TCardConfiguration). And set it
using the TCardSocket SelectVoltageLevel method.
Great. If I had fixed the bug with CF cards and that other bug that
corrupts data (not the one I fixed this morning), I would release a
next beta with this new cool feature.
Paul
-- NPDS: http://newton.kallisys.net:8080/ Apache: http://www.kallisys.com/ -- Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html Read the Newton FAQ: http://www.chuma.org/newton/faq/ This is the NewtonTalk mailing list - http://www.newtontalk.net/
This archive was generated by hypermail 2.1.5 : Mon May 26 2003 - 12:59:20 PDT