NAME
Comedi::Lib - Perl API for Comedilib
SYNOPSIS
use Comedi::Lib qw(:all);
# Open the device
my $device = comedi_open('/dev/comedi0');
# Get the driver and the board name of the board
my $driver_name = comedi_get_driver_name($device);
my $board_name = comedi_get_board_name($device);
print "Board name - $board_name\n";
print "Driver name - $driver_name\n";
# Close the device
comedi_close($device);
DESCRIPTION
The Comedi::Lib module provides a Perl API for Comedilib. Comedilib is a separately distributed package containing a user-space library that provides a developer-friendly interface to the comedi devices. This module consists of the functions that the Comedilib library provides (wrapper).
DEPENDENCIES
This Interface is dependent on the Comedilib library. Please download and install the latest version at http://www.comedi.org/.
The Comedilib library _must_ be found in your library path when using this module. The library is defaultly installed in /usr/local/lib -- in this case, be sure that the /usr/local/lib path is in your /etc/ld.so.conf.
EXPORT
None by default.
Exportable Functions
For a detailed description of each function see the Comedilib Function Reference at http://www.comedi.org/doc/x4629.html#FUNCTIONREFERENCE
- comedi_close
- comedi_open
- comedi_loglevel
- comedi_perror
- comedi_strerror
- comedi_errno
- comedi_fileno
- comedi_get_n_subdevices
- comedi_get_version_code
- comedi_get_driver_name
- comedi_get_board_name
- comedi_get_subdevice_type
- comedi_find_subdevice_by_type
- comedi_get_read_subdevice
- comedi_get_write_subdevice
- comedi_get_subdevice_flags
- comedi_get_n_channels
- comedi_range_is_chan_specific
- comedi_get_max_data
- comedi_get_n_ranges
- comedi_get_range
- comedi_find_range
- comedi_get_buffer_size
- comedi_get_max_buffer_size
- comedi_set_buffer_size
- comedi_do_insnlist
- comedi_do_insn
- comedi_lock
- comedi_unlock
- comedi_to_phys
- comedi_from_phys
- comedi_data_read
- comedi_data_read_delayed
- comedi_data_read_hint
- comedi_data_write
- comedi_dio_config
- comedi_dio_get_config
- comedi_dio_read
- comedi_dio_write
- comedi_dio_bitfield2
- comedi_get_cmd_src_mask
- comedi_get_cmd_generic_timed
- comedi_cancel
- comedi_command
- comedi_command_test
- comedi_poll
- comedi_set_max_buffer_size
- comedi_get_buffer_contents
- comedi_mark_buffer_read
- comedi_mark_buffer_written
- comedi_get_buffer_offset
SEE ALSO
Linux Comedi: http://www.comedi.org/
AUTHOR
Manuel Gebele, <forensixs[at]gmx.de>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Manuel Gebele
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 157:
'=item' outside of any '=over'
- Around line 259:
You forgot a '=back' before '=head1'