43 # include <visp/vpConfig.h>
45 #ifdef VISP_HAVE_PARPORT
47 # include <sys/types.h>
48 # include <sys/stat.h>
50 # include <sys/ioctl.h>
51 # include <sys/time.h>
54 # include <visp/vpRingLight.h>
55 # include <visp/vpDebug.h>
56 # include <visp/vpTime.h>
112 int mask_mode_pulse_d2 = 0x00;
113 int mask_pulse_d1 = 0x02;
114 unsigned char data = 0x00;
118 data = data | mask_pulse_d1 | mask_mode_pulse_d2;
123 struct timeval ti, tc;
124 struct timeval tempo;
126 gettimeofday(&ti,0L);
128 gettimeofday(&tc,0L);
129 }
while (tc.tv_usec < ti.tv_usec + tempo.tv_usec);
131 data = data & (~mask_pulse_d1);
155 int mask_mode_pulse_d3 = 0x08;
156 int mask_pulse_d1 = 0x02;
157 unsigned char data = 0x00;
161 data = data | mask_pulse_d1 | mask_mode_pulse_d3;
166 struct timeval ti, tc;
170 }
while (tc.tv_usec < ti.tv_usec + time*1000);
172 data = data & (~mask_pulse_d1);
193 int mask_mode_onoff_d2 = 0x04;
194 int mask_on_d1 = 0x02;
195 unsigned char data = 0x00;
198 data = data | mask_on_d1 | mask_mode_onoff_d2;
219 int mask_mode_onoff_d2 = 0x04;
220 int mask_off_d1 = 0x00;
221 unsigned char data = 0x00;
224 data = data | mask_off_d1 | mask_mode_onoff_d2;
void sendData(unsigned char &data)