![]() |
RTXI 1.3
|
#include <stdio.h>#include <comedilib.h>#include <fcntl.h>#include <unistd.h>#include <stdlib.h>#include <sys/ioctl.h>#include <errno.h>#include <getopt.h>#include <ctype.h>#include <malloc.h>#include <string.h>#include "comedi_test.h"Go to the source code of this file.
Classes | |
| struct | test_struct |
Defines | |
| #define | TEST_NEVER 0 |
| #define | TEST_STD 1 |
Functions | |
| int | test_info (void) |
| int | test_mode0_read (void) |
| int | test_insn_read (void) |
| int | test_insn_read_0 (void) |
| int | test_insn_read_time (void) |
| int | test_cmd_no_cmd (void) |
| int | test_cmd_probe_src_mask (void) |
| int | test_cmd_probe_fast_1chan (void) |
| int | test_cmd_read_fast_1chan (void) |
| int | test_cmd_write_fast_1chan (void) |
| int | test_cmd_logic_bug (void) |
| int | test_cmd_fifo_depth_check (void) |
| int | test_cmd_start_inttrig (void) |
| int | test_mmap (void) |
| int | test_read_select (void) |
| int | test_cmd_continuous (void) |
| int | test_bufconfig (void) |
| void | help (int ret) |
| int | main (int argc, char *argv[]) |
Variables | |
| char * | filename = "/dev/comedi0" |
| int | verbose_flag |
| comedi_t * | device |
| int | subdevice |
| int | channel |
| int | aref |
| int | range |
| struct test_struct | tests [] |
| int | only_subdevice |
| int | verbose |
| char * | only_test |
| int | realtime |
| unsigned int | capabilities |
| int test_bufconfig | ( | void | ) |
Definition at line 18 of file bufconfig.c.
| int test_insn_read | ( | void | ) |
Definition at line 16 of file insn_read.c.
| int test_insn_read_0 | ( | void | ) |
Definition at line 64 of file insn_read.c.
| int test_insn_read_time | ( | void | ) |
Definition at line 16 of file insn_read_time.c.
| int test_mode0_read | ( | void | ) |
Definition at line 19 of file mode0_read.c.
| unsigned int capabilities |
| int only_subdevice |
| struct test_struct tests[] |
{
{ "info", test_info, TEST_STD },
{ "mode0_read", test_mode0_read, TEST_NEVER },
{ "insn_read", test_insn_read, TEST_STD },
{ "insn_read_0", test_insn_read_0, TEST_STD },
{ "insn_read_time", test_insn_read_time, TEST_STD },
{ "cmd_no_cmd", test_cmd_no_cmd, TEST_STD },
{ "cmd_probe_src_mask", test_cmd_probe_src_mask, TEST_STD },
{ "cmd_probe_fast_1chan", test_cmd_probe_fast_1chan, TEST_STD },
{ "cmd_read_fast_1chan", test_cmd_read_fast_1chan, TEST_STD },
{ "cmd_write_fast_1chan", test_cmd_write_fast_1chan, TEST_STD },
{ "cmd_logic_bug", test_cmd_logic_bug, TEST_STD },
{ "cmd_fifo_depth_check", test_cmd_fifo_depth_check, TEST_STD },
{ "cmd_start_inttrig", test_cmd_start_inttrig, TEST_STD },
{ "mmap", test_mmap, TEST_STD },
{ "read_select", test_read_select, TEST_STD },
{ "cmd_continuous", test_cmd_continuous, TEST_NEVER },
{ "bufconfig", test_bufconfig, TEST_STD },
}
| int verbose_flag |