6#include "cueos_config.h"
7#if cueOS_CONFIG_NODETYPE == cueOS_NODETYPE_SLAVE_DMX
11#include "DMX512_fixture_pool.h"
46 if(_DMX512_fixture_pool_search(fixture_pool, fixture.
id) >= 0 ){
113 int16_t index = _DMX512_fixture_pool_search(fixture_pool,
id);
116 for(uint16_t i=index+1; i< fixture_pool->
fixture_count; i++){
140 int16_t index = _DMX512_fixture_pool_search(fixture_pool,
id);
143 *fixture = &fixture_pool->
fixtures[index];
158 vPortFree(fixture_pool);
#define DMX512_CHANNEL_ADDRESS_MAX
DMX512 max channel address.
DMX512_engine_err_e
DMX512 engine error index constants.
@ DMX512_ENGINE_INSTANCE_UNDEFINED
@ DMX512_ENGINE_INSTANCE_DUPLICATE
@ DMX512_ENGINE_INSTANCE_INVALID
void DMX512_fixture_pool_free(DMX512_fixture_pool_s *fixture_pool)
Frees instance pool.
DMX512_engine_err_e DMX512_fixture_pool_del(DMX512_fixture_pool_s *fixture_pool, uint16_t id)
Deletes a fixture instance from the pool.
DMX512_fixture_pool_s * DMX512_fixture_pool_new(void)
Creates a new fixture pool instance.
DMX512_engine_err_e DMX512_fixture_pool_add(DMX512_fixture_pool_s *fixture_pool, DMX512_fixture_s fixture)
Adds a fixture instance into the pool.
DMX512_engine_err_e DMX512_fixture_pool_get(DMX512_fixture_pool_s *fixture_pool, uint16_t id, DMX512_fixture_s **fixture)
Gets a fixture instance from the pool.
DMX512 fixture pool structure object.
DMX512_fixture_s * fixtures
DMX512 fixture structure object.