1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup lm32_milkymist_dmx RTEMSBSPsLM32SharedMilkymistOne |
---|
4 | * @brief Milkymist DMX512 driver |
---|
5 | */ |
---|
6 | |
---|
7 | /* milkymist_dmx.h |
---|
8 | * |
---|
9 | * Milkymist DMX512 driver for RTEMS |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.org/license/LICENSE. |
---|
14 | * |
---|
15 | * COPYRIGHT (c) 2010 Sebastien Bourdeauducq |
---|
16 | */ |
---|
17 | |
---|
18 | /** |
---|
19 | * @defgroup lm32_milkymist_dmx Milkymist DMX512 |
---|
20 | * @ingroup RTEMSBSPsLM32SharedMilkymistOne |
---|
21 | * @brief Milkymist DMX512 driver |
---|
22 | * @{ |
---|
23 | */ |
---|
24 | |
---|
25 | #ifndef __MILKYMIST_DMX_H_ |
---|
26 | #define __MILKYMIST_DMX_H_ |
---|
27 | |
---|
28 | #ifdef __cplusplus |
---|
29 | extern "C" { |
---|
30 | #endif |
---|
31 | |
---|
32 | #define DMX_SET_THRU 0x4400 |
---|
33 | #define DMX_GET_THRU 0x4401 |
---|
34 | |
---|
35 | rtems_device_driver dmx_initialize( |
---|
36 | rtems_device_major_number major, |
---|
37 | rtems_device_minor_number minor, |
---|
38 | void *arg |
---|
39 | ); |
---|
40 | |
---|
41 | rtems_device_driver dmx_read( |
---|
42 | rtems_device_major_number major, |
---|
43 | rtems_device_minor_number minor, |
---|
44 | void *arg |
---|
45 | ); |
---|
46 | |
---|
47 | rtems_device_driver dmx_write( |
---|
48 | rtems_device_major_number major, |
---|
49 | rtems_device_minor_number minor, |
---|
50 | void *arg |
---|
51 | ); |
---|
52 | |
---|
53 | rtems_device_driver dmx_control( |
---|
54 | rtems_device_major_number major, |
---|
55 | rtems_device_minor_number minor, |
---|
56 | void *arg |
---|
57 | ); |
---|
58 | |
---|
59 | #define DMX_DRIVER_TABLE_ENTRY {dmx_initialize, \ |
---|
60 | NULL, NULL, dmx_read, dmx_write, dmx_control} |
---|
61 | |
---|
62 | /** @} */ |
---|
63 | |
---|
64 | #ifdef __cplusplus |
---|
65 | } |
---|
66 | #endif |
---|
67 | |
---|
68 | #endif /* __MILKYMIST_DMX_H_ */ |
---|