Last change
on this file since e38d987 was
e38d987,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/18/11 at 13:19:33
|
2011-03-18 Joel Sherrill <joel.sherrill@…>
- ChangeLog?, Makefile, commands/Makefile, commands/main_multiio_adc.c,
commands/main_multiio_benchmark.c, commands/main_multiio_dac.c,
commands/main_multiio_din.c, commands/main_multiio_dout.c,
commands/main_multiio_irq.c, commands/multiio_commands.h,
include/multiio.h, stub/multio_stub.c: New files.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2011. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef __multiio_h |
---|
13 | #define __multiio_h |
---|
14 | |
---|
15 | #ifdef __cplusplus |
---|
16 | extern "C" { |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <sys/types.h> |
---|
20 | |
---|
21 | int rtems_multiio_initialize(void); |
---|
22 | |
---|
23 | const char *rtems_multiio_get_name(void); |
---|
24 | |
---|
25 | /* ADC */ |
---|
26 | |
---|
27 | int rtems_adc_get_maximum(void); |
---|
28 | |
---|
29 | float rtems_adc_get_channel_voltage(int adc); |
---|
30 | |
---|
31 | /* DAC */ |
---|
32 | |
---|
33 | int rtems_dac_get_maximum(void); |
---|
34 | |
---|
35 | float rtems_dac_get_minimum_voltage(void); |
---|
36 | |
---|
37 | float rtems_dac_get_maximum_voltage(void); |
---|
38 | |
---|
39 | int rtems_set_dac_voltage(int dac, float voltage); |
---|
40 | |
---|
41 | /* Discrete Outputs */ |
---|
42 | |
---|
43 | int rtems_dout_get_maximum(void); |
---|
44 | |
---|
45 | int rtems_set_dout(int dout, int value); |
---|
46 | |
---|
47 | /* Discrete Inputs */ |
---|
48 | |
---|
49 | int rtems_din_get_maximum(void); |
---|
50 | |
---|
51 | int rtems_din_get(int din); |
---|
52 | |
---|
53 | int rtems_din_flush_buffered_interrupts(void); |
---|
54 | |
---|
55 | int rtems_din_wait_interrupt_with_timestamp( |
---|
56 | int milliseconds, |
---|
57 | struct timespec *timestamp |
---|
58 | ); |
---|
59 | |
---|
60 | #ifdef __cplusplus |
---|
61 | } |
---|
62 | #endif |
---|
63 | |
---|
64 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.