Skip to content

Commit 27456d5

Browse files
authored
Merge pull request #9885 from jepler/statemachine-doc
2 parents 4c0fb4c + 006b6c6 commit 27456d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ports/raspberrypi/bindings/rp2pio/StateMachine.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@
2424
//| import memorymap
2525
//|
2626
//| FifoType = Literal["auto", "txrx", "tx", "rx", "txput", "txget", "putget"]
27+
//| """A type representing one of the strings ``"auto"``, ``"txrx"``, ``"tx"``, ``"rx"``, ``"txput"``, ``"txget"`` or ``"putget"``. These values are supported on RP2350. For type-checking only, not actually defined in CircuitPython."""
2728
//| FifoType_piov0 = Literal["auto", "txrx", "tx", "rx"]
29+
//| """A type representing one of the strings ``"auto"``, ``"txrx"``, ``"tx"``, or ``"rx"``. These values are supported on both RP2350 and RP2040. For type-checking only, not actually defined in CircuitPython."""
2830
//| MovStatusType = Literal["txfifo", "rxfifo", "irq"]
31+
//| """A type representing one of the strings ``"txfifo"``, ``"rxfifo"``, or ``"irq"``. These values are supported on RP2350. For type-checking only, not actually defined in CircuitPython."""
2932
//| MovStatusType_piov0 = Literal["txfifo"]
33+
//| """A type representing the string ``"txfifo"``. This value is supported on RP2350 and RP2040. For type-checking only, not actually defined in CircuitPython."""
3034
//|
3135
//| class StateMachine:
3236
//| """A single PIO StateMachine
@@ -152,8 +156,8 @@
152156
//| :param int wrap: The instruction after which to wrap to the ``wrap``
153157
//| instruction. As a special case, -1 (the default) indicates the
154158
//| last instruction of the program.
155-
//| :param FifoType fifo_type: How the program accessess the FIFOs. PIO version 0 only supports a subset of values.
156-
//| :param MovStatusType mov_status_type: What condition the ``mov status`` instruction checks. PIO version 0 only supports a subset of values.
159+
//| :param FifoType fifo_type: How the program accessess the FIFOs. PIO version 0 in the RP2040 only supports a subset of values, `FifoType_piov0`.
160+
//| :param MovStatusType mov_status_type: What condition the ``mov status`` instruction checks. PIO version 0 in the RP2040 only supports a subset of values, `MovStatusType_piov0`.
157161
//| :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.
158162
//| """
159163
//| ...

0 commit comments

Comments
 (0)