X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Fgpif-acquisition.h;h=a0c7af935a845a3cf1d527a927fccc40208b9e75;hb=5aab87d358a4585a10ad89277bb88ad139077abd;hp=8787cf9122b83e6cfff7eaf18045c095e5e3b29d;hpb=c7e02d8c24b6f89a274b33300dd47925f5ffb69f;p=sigrok-firmware-fx2lafw.git diff --git a/include/gpif-acquisition.h b/include/gpif-acquisition.h index 8787cf91..a0c7af93 100644 --- a/include/gpif-acquisition.h +++ b/include/gpif-acquisition.h @@ -1,5 +1,5 @@ /* - * This file is part of the fx2lafw project. + * This file is part of the sigrok-firmware-fx2lafw project. * * Copyright (C) 2012 Joel Holdsworth * @@ -14,18 +14,25 @@ * 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 . */ -#ifndef FX2LAFW_GPIF_ACQUISITION_H -#define FX2LAFW_GPIF_ACQUISITION_H +#ifndef FX2LAFW_INCLUDE_GPIF_ACQUISITION_H +#define FX2LAFW_INCLUDE_GPIF_ACQUISITION_H #include #include +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