Age | Commit message (Collapse) | Author |
|
This is in preparation for passing annotation data back to the calling
frontend, and python data up to the next protocol in the stack.
|
|
|
|
This info is in the decoder's metadata, where the frontends can get it
from programmatically anyway.
|
|
While 'data' is of type 'bytes', 'data[0]' for example is of type 'int',
thus the ord() there is neither needed nor correct anymore (yields an error).
|
|
|
|
PD decode() call now takes 3 arguments: timeoffset, duration, data
as per the current API specification.
|
|
|
|
|
|
|
|
This uses the new python unified type/class object API to construct
an object for PDs to subclass. The sigrok.Decoder class has a method
put() which is implemented as a C function, and receives the PD's
object instance as its first parameter.
|
|
|
|
|
|
The psyco module seems to be mostly unmaintained at this point, it does
not support Python 2.7 or higher at all, it only supports x86, it doesn't
support 64 bit systems at all, etc. etc.
We should try to find other ways to optimize our decoders for speed.
|
|
|
|
This is the most commonly used and recommended method for docstrings.
|
|
|
|
This should be working OK for most use-cases now, though there certainly
are a few TODOs left. The output format is just a quick hack and will
change.
|
|
Before this was passed to the decoder's constuctor, but the parameters
may not all be known at construction. Decoders now have a method start()
which is called at the start of the capture, and metadata is passed as
an arg to this function.
|
|
This decoder is probably not fully converted yet, and doesn't really
successfully decode I2C, yet. It's work in progress.
|
|
|
|
|
|
Make the list of metadata info match the spec in the wiki more closely.
|
|
|