1 | /* milkymist_dmx.h |
---|
2 | * |
---|
3 | * Milkymist DMX512 driver for RTEMS |
---|
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 | * COPYRIGHT (c) 2010 Sebastien Bourdeauducq |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef __MILKYMIST_DMX_H_ |
---|
13 | #define __MILKYMIST_DMX_H_ |
---|
14 | |
---|
15 | #ifdef __cplusplus |
---|
16 | extern "C" { |
---|
17 | #endif |
---|
18 | |
---|
19 | #define DMX_SET_THRU 0x4400 |
---|
20 | #define DMX_GET_THRU 0x4401 |
---|
21 | |
---|
22 | rtems_device_driver dmx_initialize( |
---|
23 | rtems_device_major_number major, |
---|
24 | rtems_device_minor_number minor, |
---|
25 | void *arg |
---|
26 | ); |
---|
27 | |
---|
28 | rtems_device_driver dmx_read( |
---|
29 | rtems_device_major_number major, |
---|
30 | rtems_device_minor_number minor, |
---|
31 | void *arg |
---|
32 | ); |
---|
33 | |
---|
34 | rtems_device_driver dmx_write( |
---|
35 | rtems_device_major_number major, |
---|
36 | rtems_device_minor_number minor, |
---|
37 | void *arg |
---|
38 | ); |
---|
39 | |
---|
40 | rtems_device_driver dmx_control( |
---|
41 | rtems_device_major_number major, |
---|
42 | rtems_device_minor_number minor, |
---|
43 | void *arg |
---|
44 | ); |
---|
45 | |
---|
46 | #define DMX_DRIVER_TABLE_ENTRY {dmx_initialize, \ |
---|
47 | NULL, NULL, dmx_read, dmx_write, dmx_control} |
---|
48 | |
---|
49 | #ifdef __cplusplus |
---|
50 | } |
---|
51 | #endif |
---|
52 | |
---|
53 | #endif /* __MILKYMIST_DMX_H_ */ |
---|