Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Read the SD presence

6 views
Skip to first unread message

SteM

unread,
May 27, 2010, 8:59:57 AM5/27/10
to
Hi all,
WinCE600 on Freescale iM25.
I'd like to read the presence of the SD in its slot from a win32 app.
I'm looking the ESDHC driver in the Freescale BSP and i see a function
called BspESDHCIsCardPresent().
How can i call it from an application?
Which API can i recall (i guess with a driver call) to achieve it?

I need it because after the boot my application checks the presence of a
file into the SD card.
It happens that with some SD cards (usually SD cards FAT32 formatted) the
file is not read.
Just to avoid to wait for too much time i'd like to wait only if a card is
inserted ...
--
SteM


Prabu[MCTS]

unread,
May 27, 2010, 9:17:43 AM5/27/10
to
Check out this article

http://geekswithblogs.net/BruceEitman/archive/2008/06/13/windows-ce-monitoring-for-disk-insertion-to-add-support-for.aspx

--
Regards,
Prabu
http://prabukumar.wordpress.com/
www.e-consystems.com
"SteM" <x...@yyy.zzz> wrote in message
news:%23R21DyZ$KHA....@TK2MSFTNGP06.phx.gbl...

SteM

unread,
May 27, 2010, 9:48:44 AM5/27/10
to
Thanks,
but i only need to read a pin ..
--
SteM


"Prabu[MCTS]" <prab...@gmail.com> ha scritto nel messaggio
news:epS2B8Z$KHA....@TK2MSFTNGP02.phx.gbl...

Prabu[MCTS]

unread,
May 27, 2010, 10:16:35 AM5/27/10
to
The method described in that article is the right way for finding the disk
insertion in the application.

But if you want to get the only CD event in the application means,you can
create a named event in your SDHC driver and set that event when you get the
Card detect interrupt.Open the same event in the application and wait for
that event from the driver.

--
Regards,
Prabu
http://prabukumar.wordpress.com/
www.e-consystems.com
"SteM" <x...@yyy.zzz> wrote in message

news:eqKziNa$KHA....@TK2MSFTNGP02.phx.gbl...

Bruce Eitman [eMVP]

unread,
May 27, 2010, 10:39:03 AM5/27/10
to
No, you need to use the Win32 APIs that are available.

Now if your device vendor has provided a way to read the pin (which would
also be through a Win32 API), then go ahead and do that. With that said,
having a card present does not mean that you have a memory card, or that the
card has been mounted.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"SteM" <x...@yyy.zzz> wrote in message

news:eqKziNa$KHA....@TK2MSFTNGP02.phx.gbl...

0 new messages