At 11:47 AM 9/17/2005, you wrote:
I would like to be able to access the memory card on a palm device in a
way that will give me the same functionality as if I did the following on
a FreeBSD or some other *nix system:
dosfs = open("/dev/fd0", O_RDWR, 0);
/dev/fd0 is the device node representing the raw floppy device.
My target is Palm OS 5 devices. My test device is a Treo 650.
Is this possible?
Use ExpSlotLibFind to find the slot driver library for the expansion slot
you're interested in, then call its functions directly using the interface
defined in SlotDrvrLib.h in the Palm OS SDK. (SlotCardSectorRead and
SlotCardSectorWrite look useful). You may have conflicts though, since
it's likely that the card will be mounted by the system, and the OS won't
be expecting anyone else to be messing with the low-level parts of the card.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/