# modules/dmx/dmx.c File Reference

`#include <mios32.h>`
`#include <FreeRTOS.h>`
`#include <portmacro.h>`
`#include <task.h>`
`#include <queue.h>`
`#include <semphr.h>`
`#include "dmx.h"`

## Defines
#define | PRIORITY_TASK_DMX ( tskIDLE_PRIORITY + 3 )
## Functions
s32 | DMX_Init (u32 mode)
s32 | DMX_SetChannel (u16 channel, u8 value)
s32 | DMX_GetChannel (u16 channel)
DMX_IRQHANDLER_FUNC | if ((dmx_state==DMX_BREAK)&&(DMX->SR &USART_FLAG_TC))
| if (DMX->SR &USART_FLAG_TXE)
## Variables
xSemaphoreHandle | xDMXSemaphore
signed portBASE_TYPE | x = pdFALSE

## Define Documentation

#define PRIORITY_TASK_DMX ( tskIDLE_PRIORITY + 3 )

## Function Documentation

s32 DMX_GetChannel | ( | u16 | channel | ) |

s32 DMX_Init | ( | u32 | mode | ) |

Initialize DMX Interface

Parameters:

  `[in]` | mode | currently only mode 0 supported

Returns:
  < 0 if initialisation failed

s32 DMX_SetChannel | ( | u16 | channel,
|  | u8 | value |
| ) |  |  |

if | ( | DMX->SR & | USART_FLAG_TXE | ) |

Here is the call graph for this function:

DMX_IRQHANDLER_FUNC if | ( | (dmx_state==DMX_BREAK)&&(DMX->SR &USART_FLAG_TC) |  | ) |

## Variable Documentation

signed portBASE_TYPE x = pdFALSE

xSemaphoreHandle xDMXSemaphore