From d99990a6662f8b75137f292237b89520a7f282f1 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 8 Apr 2001 22:28:25 +0000 Subject: [PATCH] added some comments describing alpha functions --- include/comedilib.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/comedilib.h b/include/comedilib.h index 580cc9f..4eea689 100644 --- a/include/comedilib.h +++ b/include/comedilib.h @@ -150,11 +150,17 @@ enum comedi_oor_behavior { enum comedi_oor_behavior comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior); +// changes size (in bytes) of comedi's preallocated buffer, returns size of new buffer int comedi_buf_resize(comedi_t *it, unsigned int subdev, unsigned int size); +// changes maximum size of preallocated buffer, requires root priviledge, returns new max size int comedi_buf_resize_max(comedi_t *it, unsigned int subdev, unsigned int max_size); +// returns size (in bytes) of comedi's preallocated buffer int comedi_buf_size(comedi_t *it, unsigned int subdev); +// returns number of bytes in buffer waiting to be read by user int comedi_buf_contents(comedi_t *it, unsigned int subdev); +// marks 'bytes' number of bytes in buffer as read by user, returns number of bytes left to be read int comedi_buf_mark_read(comedi_t *it, unsigned int subdev, unsigned int bytes); +// returns offset in bytes from beginning of buffer for first unread data point in buffer int comedi_buf_offset(comedi_t *it, unsigned int subdev); #ifdef __cplusplus -- 2.26.2