Hi,

On Tue, Jul 15, 2014 at 01:14:22PM +0200, Matthieu CASTET wrote:
> I am currently investigation on sdcard problem, and I am interested in
> the sdcard protocol decoder.
> 
> Looking in the wiki, I see that there is an implementation with 40%
> support. Is it available somewhere ?

Good question :) I'm the one who started it (in parallel to the
sdcard_spi I wrote), I'll have to check what the status of that was
back then (not sure if I got very far with it).


> In sdcard_sd did you share stuff with sdcard_spi ?

That's a non-trivial thing to decide actually, I remember that I wasn't
really sure what to do about it back then.

I summarized some of the differences between SPI mode and SD mode here:
http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blob;f=decoders/sdcard_spi/__init__.py

One way to "share" code would be the obvious stacking of PDs, but even
that case is not as trivial in this instance as it is for other PDs.

Other methods might be to share some .py file between multiple PDs,
though I'm not really fond of that direction, it's a bit "unclean" IMHO.

Whether there is actually a major benefit to share code at all in this
case is also not entirely easy to tell (yet), might as well make sense
to not even try to share anything. I'll give this some more thought.


> It could be interesting for supporting sdio, mmc, sdcard.

Yeah, certainly.


Btw, if you have any example files please share them, it's always good
to have some test files to look at during development/testing as well as
for feeding our automated PD tests.

Check the sigrok-dumps repository for a few examples. It would be nice
if you could provide a patch with some example files you made and a
small README of what you measured, where, how, etc.


Thanks, Uwe!
-- 
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to