[−][src]Function libeyelink_sys::eyelink_wait_for_data
pub unsafe extern "C" fn eyelink_wait_for_data(
maxwait: UINT32,
samples: INT16,
events: INT16
) -> INT16
@ingroup messaging Waits for data to be received from the eye tracker. Can wait for an event, a sample, or either. Typically used after record start to check if data is being sent.
@param maxwait Time in milliseconds to wait for data. @param samples If \c 1, return when first sample available. @param events If \c 1, return when first event available. @return \c 1 if data is available. \c 0 if timed out.
\b Example:
\code #include#include int error; error = start_recording(1,1,1,0); if(error != 0) return error; // ERROR: couldn't start recording if(!eyelink_wait_for_data(100, 1, 0)) { printf("ERROR: No link samples received!"); return -1; } \endcode
\sa \c eyelink_wait_for_block_start()