[][src]Function libeyelink_sys::eyelink_get_float_data

pub unsafe extern "C" fn eyelink_get_float_data(buf: *mut c_void) -> INT16

@ingroup messaging Reads the last item fetched by \c eyelink_get_next_data() into a buffer. The event is converted to a floating-point format (\c FSAMPLE or \c FEVENT). This can handle both samples and events. The buffer type can be \c ALLF_DATA for both samples and events, \c FSAMPLE for a sample, or a specific event buffer.

@param buf Pointer to buffer for floating-point data: type is \c ALLF_DATA or \c FSAMPLE. @return \c 0 if no data, \c SAMPLE_TYPE if sample, else event type code.

\b Example: See \c eyelink_get_next_data()

\sa \c eyelink_get_last_data(), \c eyelink_get_next_data(), \c eyelink_newest_float_sample() \c eyelink_newest_double_sample() \c eyelink_get_double_data() and \c eyelink_newest_sample()