39 #include <visp3/core/vpConfig.h> 41 #if defined(VISP_HAVE_MODULE_IO) && defined(VISP_HAVE_PARPORT) 44 #include <sys/ioctl.h> 47 #include <sys/types.h> 50 #include <visp3/core/vpDebug.h> 51 #include <visp3/core/vpTime.h> 52 #include <visp3/robot/vpRingLight.h> 102 int mask_mode_pulse_d2 = 0x00;
103 int mask_pulse_d1 = 0x02;
104 unsigned char data = 0x00;
108 data = data | mask_pulse_d1 | mask_mode_pulse_d2;
113 struct timeval ti, tc;
114 struct timeval tempo;
116 gettimeofday(&ti, 0L);
118 gettimeofday(&tc, 0L);
119 }
while (tc.tv_usec < ti.tv_usec + tempo.tv_usec);
121 data = data & (~mask_pulse_d1);
145 int mask_mode_pulse_d3 = 0x08;
146 int mask_pulse_d1 = 0x02;
147 unsigned char data = 0x00;
151 data = data | mask_pulse_d1 | mask_mode_pulse_d3;
156 struct timeval ti, tc;
157 gettimeofday(&ti, 0);
159 gettimeofday(&tc, 0);
160 }
while (tc.tv_usec < ti.tv_usec + time * 1000);
162 data = data & (~mask_pulse_d1);
183 int mask_mode_onoff_d2 = 0x04;
184 int mask_on_d1 = 0x02;
185 unsigned char data = 0x00;
188 data = data | mask_on_d1 | mask_mode_onoff_d2;
209 int mask_mode_onoff_d2 = 0x04;
210 int mask_off_d1 = 0x00;
211 unsigned char data = 0x00;
214 data = data | mask_off_d1 | mask_mode_onoff_d2;
219 #elif !defined(VISP_BUILD_SHARED_LIBS) 222 void dummy_vpRingLight(){};
void sendData(unsigned char &data)