2022-01-10 17:47:27 +08:00
|
|
|
|
sigrokdecode module's types
|
|
|
|
|
|
|
|
|
|
output types:
|
|
|
|
|
1.OUTPUT_ANN
|
|
|
|
|
2.OUTPUT_PYTHON
|
|
|
|
|
3.OUTPUT_BINARY
|
|
|
|
|
4.OUTPUT_META
|
|
|
|
|
|
|
|
|
|
default sample rate name: SRD_CONF_SAMPLERATE,value is 10000
|
|
|
|
|
|
|
|
|
|
sigrokdecode.Decoder methods:
|
|
|
|
|
|
|
|
|
|
class Decoder{
|
|
|
|
|
PyObject* put(PyObject *self, PyObject *args);
|
|
|
|
|
PyObject* register(PyObject *self, PyObject *args,PyObject *kwargs);
|
|
|
|
|
PyObject* wait(PyObject *self, PyObject *args);
|
|
|
|
|
PyObject* has_channel(PyObject *self, PyObject *args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c can call's method of python:
|
|
|
|
|
1.reset
|
|
|
|
|
2.start
|
|
|
|
|
3.decode
|
|
|
|
|
4.metadata
|
2022-02-18 12:43:00 +08:00
|
|
|
|
5.printlog //print log to console, param type is string
|
2022-01-10 17:47:27 +08:00
|
|
|
|
|
|
|
|
|
|
2022-02-25 11:16:44 +08:00
|
|
|
|
decode函数返回任意值,则表示解析任务终止
|
2022-01-10 17:47:27 +08:00
|
|
|
|
|