Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:43

0001 /**
0002  * @file
0003  * @ingroup lm32_milkymist_dmx RTEMSBSPsLM32SharedMilkymistOne
0004  * @brief Milkymist DMX512 driver
0005  */
0006 
0007 /*  milkymist_dmx.h
0008  *
0009  *  Milkymist DMX512 driver for RTEMS
0010  *
0011  *  The license and distribution terms for this file may be
0012  *  found in the file LICENSE in this distribution or at
0013  *  http://www.rtems.org/license/LICENSE.
0014  *
0015  *  COPYRIGHT (c) 2010 Sebastien Bourdeauducq
0016  */
0017 
0018 /**
0019  * @defgroup lm32_milkymist_dmx Milkymist DMX512
0020  * @ingroup RTEMSBSPsLM32SharedMilkymistOne
0021  * @brief Milkymist DMX512 driver
0022  * @{
0023  */
0024 
0025 #ifndef __MILKYMIST_DMX_H_
0026 #define __MILKYMIST_DMX_H_
0027 
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031 
0032 #define DMX_SET_THRU       0x4400
0033 #define DMX_GET_THRU       0x4401
0034 
0035 rtems_device_driver dmx_initialize(
0036   rtems_device_major_number major,
0037   rtems_device_minor_number minor,
0038   void *arg
0039 );
0040 
0041 rtems_device_driver dmx_read(
0042   rtems_device_major_number major,
0043   rtems_device_minor_number minor,
0044   void *arg
0045 );
0046 
0047 rtems_device_driver dmx_write(
0048   rtems_device_major_number major,
0049   rtems_device_minor_number minor,
0050   void *arg
0051 );
0052 
0053 rtems_device_driver dmx_control(
0054   rtems_device_major_number major,
0055   rtems_device_minor_number minor,
0056   void *arg
0057 );
0058 
0059 #define DMX_DRIVER_TABLE_ENTRY {dmx_initialize, \
0060 NULL, NULL, dmx_read, dmx_write, dmx_control}
0061 
0062 /** @} */
0063 
0064 #ifdef __cplusplus
0065 }
0066 #endif
0067 
0068 #endif /* __MILKYMIST_DMX_H_ */