From: David Schleef Date: Mon, 28 May 2001 02:34:32 +0000 (+0000) Subject: added get_cmd_src_mask, get_cmd_generic_timed, comedi_poll() X-Git-Tag: r0_7_16~89 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa434c140ce7b04076408118e8ea5fca3f4ebe23;p=comedilib.git added get_cmd_src_mask, get_cmd_generic_timed, comedi_poll() --- diff --git a/include/comedilib.h b/include/comedilib.h index 95804c5..a394d1c 100644 --- a/include/comedilib.h +++ b/include/comedilib.h @@ -78,6 +78,7 @@ char *comedi_get_board_name(comedi_t *it); int comedi_get_subdevice_type(comedi_t *it,unsigned int subdevice); int comedi_find_subdevice_by_type(comedi_t *it,int type,unsigned int subd); +int comedi_get_subdevice_flags(comedi_t *it,unsigned int subdevice); int comedi_get_n_channels(comedi_t *it,unsigned int subdevice); lsampl_t comedi_get_maxdata(comedi_t *it,unsigned int subdevice,unsigned int chan); int comedi_get_rangetype(comedi_t *it,unsigned int subdevice,unsigned int chan); @@ -129,7 +130,14 @@ int comedi_dio_write(comedi_t *it,unsigned int subd,unsigned int chan,unsigned i int comedi_dio_bitfield(comedi_t *it,unsigned int subd,unsigned int write_mask, unsigned int *bits); -/* timer stuff */ +/* functions related to streaming I/O (commands) */ + +int comedi_get_cmd_src_mask(comedi_t *dev,unsigned int subdevice, comedi_cmd *cmd); +int comedi_get_cmd_generic_timed(comedi_t *dev,unsigned int subdevice, comedi_cmd *cmd); + +int comedi_poll(comedi_t *dev,unsigned int subdevice); + +/* timer stuff (deprecated) */ int comedi_get_timer(comedi_t *it,unsigned int subdev,double freq,unsigned int *trigvar, double *actual_freq); @@ -150,6 +158,8 @@ enum comedi_oor_behavior { enum comedi_oor_behavior comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior); + + // changes maximum size (in bytes) of preallocated buffer, requires root priviledge, returns new max size int comedi_set_max_buffer_size(comedi_t *it, unsigned int subdev, unsigned int max_size); // returns number of bytes in buffer waiting to be read by user