2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
5 libgpiv - library for Particle Image Velocimetry
7 Copyright (C) 2004, 2005, 2006, 2007, 2008
8 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
9 Julio Soria <julio.soria@eng.monash.edu.au>
11 This file is part of libgpiv.
13 Libgpiv is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2, or (at your option)
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 ------------------------------------------------------------------------------
36 LAST MODIFICATION DATE: $Id: trig.c,v 1.2 2007-11-23 16:16:15 gerber Exp $
37 --------------------------------------------------------------------------- */
46 gpiv_trig_openrtfs (gint
*init
,
51 /*-----------------------------------------------------------------------------
53 * Opens communication channels to camlasco-rtl kernel module
56 * init: initialization or uploading of trigger parameters
62 * piv_trig_par_default: structure of data aquisition parameters
65 *---------------------------------------------------------------------------*/
69 if((*init
= open("/dev/rtf/1", O_WRONLY
)) < 0) {
70 printf("fail in \"init\" FIFO open\n");
74 if((*trig
= open("/dev/rtf/2", O_WRONLY
)) < 0) {
75 printf("fail in \"trig\" FIFO open\n");
79 if((*stop
= open("/dev/rtf/3", O_WRONLY
)) < 0) {
80 printf("fail in \"stop\" FIFO open\n");
84 if((*error
= open("/dev/rtf/4", O_RDONLY
)) < 0) {
85 printf("fail in \"error\" FIFO open\n");
95 #endif /* ENABLE_TRIG */