<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Detect sd insertion.</title>
<description> Hello, how can i detect the sd insertion (like in the HBC)?

I&amp;#039;ve searched some callback functions, but i haven&amp;#039;t found anything.</description><link>http://forum.wiibrew.org/read.php?11,46626,46626#msg-46626</link><lastBuildDate>Tue, 18 Aug 2026 06:45:35 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,50177#msg-50177</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,50177#msg-50177</link><description><![CDATA[ Yes i know. But i were searching for an hardware interuption when a device is inserted.<br /><br />I don&#039;t want any thread running behind to detect usb insertion (ie using isInserted) because i don&#039;t need this. It will consume cpu time.]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Mon, 01 Mar 2010 16:33:35 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,50075#msg-50075</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,50075#msg-50075</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>arasium</strong><br />Tantric, you solution is ok if i need to test the sd. But me i want to be alerted whn the sd in inserted/remove (the goal is to automatically mount/unmount the file system)<br /><br /><br />tueidj, i will inspec in that way. And what about the usb, is there a similar ios call?</div></blockquote><br />Uhh what else do you think isInserted() does? It does those low level calls to tell you whether sd/usb is inserted or removed. Just keep track of the current state and gee, when the isInserted() value changes, it was inserted/removed. Seriously, I&#039;ve had this functionality in Snes9x GX for a year and a half. It really isn&#039;t that hard to use, the functions have always been there.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Fri, 26 Feb 2010 23:06:07 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,49946#msg-49946</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,49946#msg-49946</link><description><![CDATA[ So, i&#039;ve made some tests on usb sticks. And it seems that we need to know the pid/vid to use the insert notification.<br /><br />Thank you tueidj]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Thu, 25 Feb 2010 10:25:30 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46726#msg-46726</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46726#msg-46726</link><description><![CDATA[ ok, thank you. It is exactly what i need :) I will do some tests with that]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Wed, 13 Jan 2010 14:16:49 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46717#msg-46717</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46717#msg-46717</link><description><![CDATA[ The last time I checked it was called:<br />s32 USB_DeviceInsertNotifyAsync(const char *devpath,u16 vid,u16 pid,usbcallback cb,void *usrdata);<br />in usb.c, it doesn&#039;t seem to be in the latest usb.h (not sure it ever was).]]></description>
<dc:creator>tueidj</dc:creator>
<category>Coding</category><pubDate>Wed, 13 Jan 2010 11:28:28 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46715#msg-46715</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46715#msg-46715</link><description><![CDATA[ Yes i can put it on a thred, but it isn&#039;t very good. It will consume cpu time. And i&#039;m pretty sure that there is a hardware interupt when a device is pluged. It&#039;s that interupt that i want catch.<br /><br /><br />@tueidj: can you tell me what function i need to use for the usb. i&#039;ve search it in header files and i&#039;ve not found it.]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Wed, 13 Jan 2010 10:17:14 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46679#msg-46679</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46679#msg-46679</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>arasium</strong><br />Tantric, you solution is ok if i need to test the sd. But me i want to be alerted whn the sd in inserted/remove (the goal is to automatically mount/unmount the file system)</div></blockquote>
Add a bool, a ! version of the if, put it on a thread, and viola!]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Wed, 13 Jan 2010 01:20:12 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46673#msg-46673</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46673#msg-46673</link><description><![CDATA[ USB is actually simpler, the functions exist in libogc - you just have to tell it what sort of device you&#039;re watching for.]]></description>
<dc:creator>tueidj</dc:creator>
<category>Coding</category><pubDate>Tue, 12 Jan 2010 23:51:40 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46666#msg-46666</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46666#msg-46666</link><description><![CDATA[ Tantric, you solution is ok if i need to test the sd. But me i want to be alerted whn the sd in inserted/remove (the goal is to automatically mount/unmount the file system)<br /><br /><br />tueidj, i will inspec in that way. And what about the usb, is there a similar ios call?]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Tue, 12 Jan 2010 22:57:43 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46640#msg-46640</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46640#msg-46640</link><description><![CDATA[ That sounds like a pretty lowel level approach! You could also try something like the following:<br /><br /><pre class="bbcode">
#include &lt; sdcard/wiisd_io.h &gt;

if(__io_wiisd.startup() && __io_wiisd.isInserted())
printf("YAY!");</pre><br />See Snes9x GX fileop.cpp for an example.]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Tue, 12 Jan 2010 16:50:51 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46635#msg-46635</guid>
<title>Re: Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46635#msg-46635</link><description><![CDATA[ IIRC they exist but aren&#039;t documented anywhere. I believe you have to issue a IOS_IoctlvAsync call, specifying your callback function and using IOCTL_SDIO_SENDCMD with cmd=64.]]></description>
<dc:creator>tueidj</dc:creator>
<category>Coding</category><pubDate>Tue, 12 Jan 2010 15:31:48 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,46626,46626#msg-46626</guid>
<title>Detect sd insertion.</title><link>http://forum.wiibrew.org/read.php?11,46626,46626#msg-46626</link><description><![CDATA[ Hello, how can i detect the sd insertion (like in the HBC)?<br /><br />I&#039;ve searched some callback functions, but i haven&#039;t found anything.]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Tue, 12 Jan 2010 12:56:00 +0100</pubDate></item>
</channel>
</rss>