RTXI 1.3
comedi/include/linux/comedilib.h File Reference
#include <linux/comedi.h>

Go to the source code of this file.

Typedefs

typedef void comedi_t

Functions

comedi_tcomedi_open (const char *path)
int comedi_close (comedi_t *dev)
int comedi_lock (comedi_t *dev, unsigned int subdev)
int comedi_unlock (comedi_t *dev, unsigned int subdev)
int comedi_loglevel (int loglevel)
void comedi_perror (const char *s)
char * comedi_strerror (int errnum)
int comedi_errno (void)
int comedi_fileno (comedi_t *dev)
int comedi_cancel (comedi_t *dev, unsigned int subdev)
int comedi_register_callback (comedi_t *dev, unsigned int subdev, unsigned int mask, int(*cb)(unsigned int, void *), void *arg)
int comedi_command (comedi_t *dev, comedi_cmd *cmd)
int comedi_command_test (comedi_t *dev, comedi_cmd *cmd)
int comedi_trigger (comedi_t *dev, unsigned int subdev, comedi_trig *it)
int __comedi_trigger (comedi_t *dev, unsigned int subdev, comedi_trig *it)
int comedi_data_write (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int range, unsigned int aref, lsampl_t data)
int comedi_data_read (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int range, unsigned int aref, lsampl_t *data)
int comedi_data_read_hint (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int range, unsigned int aref)
int comedi_data_read_delayed (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int range, unsigned int aref, lsampl_t *data, unsigned int nano_sec)
int comedi_dio_config (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int io)
int comedi_dio_read (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int *val)
int comedi_dio_write (comedi_t *dev, unsigned int subdev, unsigned int chan, unsigned int val)
int comedi_dio_bitfield (comedi_t *dev, unsigned int subdev, unsigned int mask, unsigned int *bits)
int comedi_get_n_subdevices (comedi_t *dev)
int comedi_get_version_code (comedi_t *dev)
const char * comedi_get_driver_name (comedi_t *dev)
const char * comedi_get_board_name (comedi_t *dev)
int comedi_get_subdevice_type (comedi_t *dev, unsigned int subdevice)
int comedi_find_subdevice_by_type (comedi_t *dev, int type, unsigned int subd)
int comedi_get_n_channels (comedi_t *dev, unsigned int subdevice)
lsampl_t comedi_get_maxdata (comedi_t *dev, unsigned int subdevice, unsigned int chan)
int comedi_get_n_ranges (comedi_t *dev, unsigned int subdevice, unsigned int chan)
int comedi_do_insn (comedi_t *dev, comedi_insn *insn)
int comedi_poll (comedi_t *dev, unsigned int subdev)
int comedi_get_rangetype (comedi_t *dev, unsigned int subdevice, unsigned int chan)
unsigned int comedi_get_subdevice_flags (comedi_t *dev, unsigned int subdevice)
int comedi_get_len_chanlist (comedi_t *dev, unsigned int subdevice)
int comedi_get_krange (comedi_t *dev, unsigned int subdevice, unsigned int chan, unsigned int range, comedi_krange *krange)
unsigned int comedi_get_buf_head_pos (comedi_t *dev, unsigned int subdevice)
int comedi_set_user_int_count (comedi_t *dev, unsigned int subdevice, unsigned int buf_user_count)
int comedi_map (comedi_t *dev, unsigned int subdev, void *ptr)
int comedi_unmap (comedi_t *dev, unsigned int subdev)
int comedi_get_buffer_size (comedi_t *dev, unsigned int subdev)
int comedi_mark_buffer_read (comedi_t *dev, unsigned int subdevice, unsigned int num_bytes)
int comedi_mark_buffer_written (comedi_t *d, unsigned int subdevice, unsigned int num_bytes)
int comedi_get_buffer_contents (comedi_t *dev, unsigned int subdevice)
int comedi_get_buffer_offset (comedi_t *dev, unsigned int subdevice)

Typedef Documentation

typedef void comedi_t

Definition at line 39 of file comedilib.h.


Function Documentation

int __comedi_trigger ( comedi_t dev,
unsigned int  subdev,
comedi_trig it 
)
int comedi_cancel ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 421 of file kcomedilib_main.c.

int comedi_close ( comedi_t dev)

Definition at line 92 of file kcomedilib_main.c.

int comedi_command ( comedi_t dev,
comedi_cmd cmd 
)

Definition at line 124 of file kcomedilib_main.c.

int comedi_command_test ( comedi_t dev,
comedi_cmd cmd 
)

Definition at line 164 of file kcomedilib_main.c.

int comedi_data_read ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  range,
unsigned int  aref,
lsampl_t data 
)

Definition at line 45 of file data.c.

int comedi_data_read_delayed ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  range,
unsigned int  aref,
lsampl_t data,
unsigned int  nano_sec 
)

Definition at line 76 of file data.c.

int comedi_data_read_hint ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  range,
unsigned int  aref 
)

Definition at line 60 of file data.c.

int comedi_data_write ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  range,
unsigned int  aref,
lsampl_t  data 
)

Definition at line 30 of file data.c.

int comedi_dio_bitfield ( comedi_t dev,
unsigned int  subdev,
unsigned int  mask,
unsigned int *  bits 
)

Definition at line 74 of file dio.c.

int comedi_dio_config ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  io 
)

Definition at line 29 of file dio.c.

int comedi_dio_read ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int *  val 
)

Definition at line 44 of file dio.c.

int comedi_dio_write ( comedi_t dev,
unsigned int  subdev,
unsigned int  chan,
unsigned int  val 
)

Definition at line 59 of file dio.c.

int comedi_do_insn ( comedi_t dev,
comedi_insn insn 
)

Definition at line 186 of file kcomedilib_main.c.

int comedi_errno ( void  )
int comedi_fileno ( comedi_t dev)

Definition at line 116 of file kcomedilib_main.c.

int comedi_find_subdevice_by_type ( comedi_t dev,
int  type,
unsigned int  subd 
)

Definition at line 71 of file get.c.

const char* comedi_get_board_name ( comedi_t dev)

Definition at line 48 of file get.c.

unsigned int comedi_get_buf_head_pos ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 174 of file get.c.

int comedi_get_buffer_contents ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 187 of file get.c.

int comedi_get_buffer_offset ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 281 of file get.c.

int comedi_get_buffer_size ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 266 of file get.c.

const char* comedi_get_driver_name ( comedi_t dev)

Definition at line 41 of file get.c.

int comedi_get_krange ( comedi_t dev,
unsigned int  subdevice,
unsigned int  chan,
unsigned int  range,
comedi_krange krange 
)

Definition at line 151 of file get.c.

int comedi_get_len_chanlist ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 93 of file get.c.

lsampl_t comedi_get_maxdata ( comedi_t dev,
unsigned int  subdevice,
unsigned int  chan 
)

Definition at line 101 of file get.c.

int comedi_get_n_channels ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 85 of file get.c.

int comedi_get_n_ranges ( comedi_t dev,
unsigned int  subdevice,
unsigned int  chan 
)

Definition at line 133 of file get.c.

int comedi_get_n_subdevices ( comedi_t dev)

Definition at line 29 of file get.c.

int comedi_get_rangetype ( comedi_t dev,
unsigned int  subdevice,
unsigned int  chan 
)
unsigned int comedi_get_subdevice_flags ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 63 of file get.c.

int comedi_get_subdevice_type ( comedi_t dev,
unsigned int  subdevice 
)

Definition at line 55 of file get.c.

int comedi_get_version_code ( comedi_t dev)

Definition at line 36 of file get.c.

int comedi_lock ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 326 of file kcomedilib_main.c.

int comedi_loglevel ( int  loglevel)

Definition at line 101 of file kcomedilib_main.c.

int comedi_map ( comedi_t dev,
unsigned int  subdev,
void *  ptr 
)

Definition at line 528 of file kcomedilib_main.c.

int comedi_mark_buffer_read ( comedi_t dev,
unsigned int  subdevice,
unsigned int  num_bytes 
)

Definition at line 227 of file get.c.

int comedi_mark_buffer_written ( comedi_t d,
unsigned int  subdevice,
unsigned int  num_bytes 
)

Definition at line 246 of file get.c.

comedi_t* comedi_open ( const char *  path)

Definition at line 45 of file kcomedilib_main.c.

void comedi_perror ( const char *  s)

Definition at line 106 of file kcomedilib_main.c.

int comedi_poll ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 501 of file kcomedilib_main.c.

int comedi_register_callback ( comedi_t dev,
unsigned int  subdev,
unsigned int  mask,
int(*)(unsigned int, void *)  cb,
void *  arg 
)

Definition at line 464 of file kcomedilib_main.c.

int comedi_set_user_int_count ( comedi_t dev,
unsigned int  subdevice,
unsigned int  buf_user_count 
)

Definition at line 206 of file get.c.

char* comedi_strerror ( int  errnum)

Definition at line 111 of file kcomedilib_main.c.

int comedi_trigger ( comedi_t dev,
unsigned int  subdev,
comedi_trig it 
)
int comedi_unlock ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 369 of file kcomedilib_main.c.

int comedi_unmap ( comedi_t dev,
unsigned int  subdev 
)

Definition at line 551 of file kcomedilib_main.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines