/* * nanolight.h * * Copyright © 2019 Thomas White * * This file is part of NanoLight. * * NanoLight is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef NANOLIGHT_H #define NANOLIGHT_H /* Attribute flags */ #define ATTR_NONE (0) #define ATTR_16BIT (1) enum attr_class { ATT_INTENSITY, ATT_PAN, ATT_TILT }; struct attribute { char *name; enum attr_class cls; int props; int addr_offset; }; struct fixture_class { char *name; int n_attrs; struct attribute *attrs; }; struct fixture { char *label; int base_addr; struct fixture_class *cls; }; struct nanolight { int n_fixtures; struct fixture *fixtures; double fixture_width; }; #endif /* NANOLIGHT_H */