]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - include/gpif-acquisition.h
fx2lib: Update __interrupt syntax for sdcc>=4.2.3
[sigrok-firmware-fx2lafw.git] / include / gpif-acquisition.h
index 0b1f964ec548110250643b8bf7f5dd98de97ed1f..a0c7af935a845a3cf1d527a927fccc40208b9e75 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef FX2LAFW_INCLUDE_GPIF_ACQUISITION_H
 #include <stdbool.h>
 #include <command.h>
 
+enum gpif_status {
+       STOPPED = 0,
+       PREPARED,
+       RUNNING,
+};
+extern enum gpif_status gpif_acquiring;
+
 void gpif_init_la(void);
-bool gpif_acquisition_start(const struct cmd_start_acquisition *cmd);
+bool gpif_acquisition_prepare(const struct cmd_start_acquisition *cmd);
+void gpif_acquisition_start(void);
 void gpif_poll(void);
 
 #endif