cueOS  2.4
cueOS - Universal Show Control OS for ARM
DMX512_fixture.c
1/***============================================================================================================================
2 * Dependencies inclusion
3 * Necessary dependencies should be declared here. Header file should contain as little dependecies declarations as possible
4 *=============================================================================================================================*/
5
6#include "cueos_config.h"
7#if cueOS_CONFIG_NODETYPE == cueOS_NODETYPE_SLAVE_DMX
8#include "cmsis_os.h"
9#include "DMX512_fixture.h"
10
11
12/***============================================================================================================================
13 * Public functions definitions
14 * These functions can be accessed outside of the file's scope
15 *=============================================================================================================================*/
16
25DMX512_fixture_s DMX512_fixture_new(uint16_t id, uint16_t addr, uint16_t ch_count){
26
27 DMX512_fixture_s fixture;
28
29 fixture.id = id;
30 fixture.addr = addr;
31 fixture.ch_count = ch_count;
32 fixture.ch_stop = addr + ch_count - 1;
33
34 return fixture;
35
36}
37
38#endif
DMX512_fixture_s DMX512_fixture_new(uint16_t id, uint16_t addr, uint16_t ch_count)
Creates a new scene fixture instance.
DMX512 fixture structure object.
uint16_t ch_stop
uint16_t ch_count