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
/*! \brief Use a state machine to set the pin directions for multiple pins for the PIO instance
1743
1783
* \ingroup hardware_pio
1744
1784
*
1745
1785
* This method repeatedly reconfigures the target state machine's pin configuration and executes 'set' instructions to set pin directions on up to 32 pins,
1746
1786
* before restoring the state machine's pin configuration to what it was.
1747
1787
*
1748
1788
* This method is provided as a convenience to set initial pin directions, and should not be used against a state machine that is enabled.
1789
+
* Note: This method only works for pins < 32. To use with pins >= 32 call pio_sm_set_pindirs_with_mask64
1749
1790
*
1750
1791
* \param pio The PIO instance; e.g. \ref pio0 or \ref pio1
/*! \brief Use a state machine to set the pin directions for multiple pins for the PIO instance
1799
+
* \ingroup hardware_pio
1800
+
*
1801
+
* This method repeatedly reconfigures the target state machine's pin configuration and executes 'set' instructions to set pin directions on up to 32 pins,
1802
+
* before restoring the state machine's pin configuration to what it was.
1803
+
*
1804
+
* This method is provided as a convenience to set initial pin directions, and should not be used against a state machine that is enabled.
1805
+
*
1806
+
* \param pio The PIO instance; e.g. \ref pio0 or \ref pio1
1807
+
* \param sm State machine index (0..3) to use
1808
+
* \param pin_dirs the pin directions to set - 1 = out, 0 = in (if the corresponding bit in pin_mask is set)
1809
+
* \param pin_mask a bit for each pin to indicate whether the corresponding pin_value for that pin should be applied.
0 commit comments