logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_get_hardware_buffer_size - get size of subdevice's hardware buffer

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

Description

       This function returns the number of bytes the subdevice can hold in it's hardware buffer. The term
       “hardware buffer” refers to any FIFOs, etc. on the acquisition board itself which are used during
       streaming commands. This does not include the buffer maintained by the comedi kernel module in host
       memory, whose size may be queried by comedi_get_buffer_size. The direction parameter of type enumcomedi_io_direction should be set to COMEDI_INPUT to query the input buffer size (e.g., the buffer of an
       analog input subdevice), or COMEDI_OUTPUT to query the output buffer size (e.g., the buffer of an analog
       output).

Name

       comedi_get_hardware_buffer_size - get size of subdevice's hardware buffer

Return Value

       Hardware buffer size in bytes, or -1 on error.

Synopsis

#include<comedilib.h>intcomedi_get_hardware_buffer_size(comedi_t*device,unsignedintsubdevice,enumcomedi_io_directiondirection);

See Also