[Oops, forgot to press "send" on this one, was sitting on my disk
as a draft for a while. Sorry for the delay.]

Hi,

On Mon, Dec 07, 2015 at 09:36:48AM +0100, Stefan Ekenberg wrote:
> On Wed, Dec 02, 2015 at 07:02:23PM +0100, Uwe Hermann wrote:
> > Facility a) can easily be implemented in all PDs right now, just set
> > some defaults in __init__() for the pins. This would cover *most* cases,
> > but not all of them. Facility b) needs to be designed and implemented
> > in libsigrokdecode first, and will cover *all* cases then, AFAICS.
> 
> Would you like me to take the first step and implement functionality a) as
> you describe above?

Sure, if you like to address this issue that would be great. I think a
first quick test could be something like adding this to start():

  self.oldclk = self.options['cpol']

I haven't tested this though, and it'd need some verification against
all the relevant files in sigrok-dumps of whether it consistently
handles all cases correctly (which can be handled by this mechanism alone).


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

------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to