#ifndef RETRIEVE_H_
#define RETRIEVE_H_

/** loop that waits for an event from module b_Module 
* @param fd file decriptor of the card
* @param b_Module module ( 0 .. 3 )  
* @param max maximum number of bytes to acquire - when the amount of byte read from driver is equal or bigger, stop acquiring data. if 0, endless loop
* 
* @retval 0 on success, -1 on failure
*/
int apci3600_loop_and_read_data(struct apci3600_card_t * pboard, uint8_t b_Module, int data_file, unsigned long long max);

#endif /*RETRIEVE_H_*/
