36 #include <visp3/core/vpConfig.h>
38 #if defined(VISP_HAVE_MODULE_IO) && defined(VISP_HAVE_PARPORT)
41 #include <sys/ioctl.h>
44 #include <sys/types.h>
47 #include <visp3/core/vpDebug.h>
48 #include <visp3/core/vpTime.h>
49 #include <visp3/robot/vpRingLight.h>
99 int mask_mode_pulse_d2 = 0x00;
100 int mask_pulse_d1 = 0x02;
101 unsigned char data = 0x00;
105 data = data | mask_pulse_d1 | mask_mode_pulse_d2;
110 struct timeval ti, tc;
111 struct timeval tempo;
113 gettimeofday(&ti, 0L);
115 gettimeofday(&tc, 0L);
116 }
while (tc.tv_usec < ti.tv_usec + tempo.tv_usec);
118 data = data & (~mask_pulse_d1);
142 int mask_mode_pulse_d3 = 0x08;
143 int mask_pulse_d1 = 0x02;
144 unsigned char data = 0x00;
148 data = data | mask_pulse_d1 | mask_mode_pulse_d3;
153 struct timeval ti, tc;
154 gettimeofday(&ti, 0);
156 gettimeofday(&tc, 0);
157 }
while (tc.tv_usec < ti.tv_usec + time * 1000);
159 data = data & (~mask_pulse_d1);
180 int mask_mode_onoff_d2 = 0x04;
181 int mask_on_d1 = 0x02;
182 unsigned char data = 0x00;
185 data = data | mask_on_d1 | mask_mode_onoff_d2;
206 int mask_mode_onoff_d2 = 0x04;
207 int mask_off_d1 = 0x00;
208 unsigned char data = 0x00;
211 data = data | mask_off_d1 | mask_mode_onoff_d2;
216 #elif !defined(VISP_BUILD_SHARED_LIBS)
219 void dummy_vpRingLight(){};
void sendData(unsigned char &data)