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
25
DMX512_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_new
DMX512_fixture_s DMX512_fixture_new(uint16_t id, uint16_t addr, uint16_t ch_count)
Creates a new scene fixture instance.
Definition:
DMX512_fixture.c:25
DMX512_fixture
DMX512 fixture structure object.
Definition:
DMX512_fixture.h:21
DMX512_fixture::addr
uint16_t addr
Definition:
DMX512_fixture.h:23
DMX512_fixture::id
uint16_t id
Definition:
DMX512_fixture.h:22
DMX512_fixture::ch_stop
uint16_t ch_stop
Definition:
DMX512_fixture.h:25
DMX512_fixture::ch_count
uint16_t ch_count
Definition:
DMX512_fixture.h:24
apps
DMX512_engine
src
DMX512_fixture.c
Generated by
1.9.4