Function Sampling_fetchForward(struct Sampling_Handle *)
Defined in File sampling.c
Function Documentation
-
int Sampling_fetchForward(struct Sampling_Handle *handle)
Reads data from sensor if watermark is set and forwards to USB en-bloc.
Sends start, stop, finished, aborted and overflow USB messages accordingly. Called by main().
- Parameters:
handle – module internal state and device dependent pimpl
- Returns:
-EAGAIN if sampling is stopped
-EOVERFLOW if FiFo OVL was detected
ENODATA if all data was read (see sampling_startN(uint16_t))
0 otherwise