You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is needed to fully support the .mov_status and .fifo directives,
as well as checking for PIO version compatibility between program &
runtime hardware.
//| """Construct a StateMachine object on the given pins with the given program.
79
88
//|
80
89
//| :param ReadableBuffer program: the program to run with the state machine
81
90
//| :param int frequency: the target clock frequency of the state machine. Actual may be less. Use 0 for system clock speed.
82
91
//| :param ReadableBuffer init: a program to run once at start up. This is run after program
83
92
//| is started so instructions may be intermingled
93
+
//| :param int pio_version: The version of the PIO peripheral required by the program. The constructor will raise an error if the actual hardware is not compatible with this program version.
84
94
//| :param ReadableBuffer may_exec: Instructions that may be executed via `StateMachine.run` calls.
85
95
//| Some elements of the `StateMachine`'s configuration are inferred from the instructions used;
86
96
//| for instance, if there is no ``in`` or ``push`` instruction, then the `StateMachine` is configured without a receive FIFO.
@@ -134,12 +144,25 @@
134
144
//| :param int offset: A specific offset in the state machine's program memory where the program must be loaded.
135
145
//| The default value, -1, allows the program to be loaded at any offset.
136
146
//| This is appropriate for most programs.
147
+
//| :param FifoType fifo_type: How the program accessess the FIFOs. PIO version 0 only supports a subset of values.
148
+
//| :param MovStatusType mov_status_type: What condition the ``mov status`` instruction checks. PIO version 0 only supports a subset of values.
149
+
//| :param MovStatusType mov_status_n: The FIFO depth or IRQ the ``mov status`` instruction checks for. For ``mov_status irq`` this includes the encoding of the ``next``/``prev`` selection bits.
0 commit comments