Fraise  2.1
FRAmework for Interfacing Software and Electronics
dmx.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * DMX library for Fraise pic18f device
4  *
5  *********************************************************************
6  * Author Date Comment
7  *********************************************************************
8  * Antoine Rousseau may 2012 Original.
9  ********************************************************************/
10 
11 /*
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25 # MA 02110-1301, USA.
26 */
27 #ifndef _DMX_H_
28 #define _DMX_H_
29 
44 #include <fruit.h>
45 
55 #ifndef DMX_NBCHAN
56 #define DMX_NBCHAN 128
57 #endif
58 
60 
65 void DMXInit();
67 
71 void DMXService();
72 
73 
81 void DMXSet(unsigned int channel, unsigned char value);
83 
84 extern unsigned int DMXframeCount;
88 #endif // _DMX_H_
89 
DMXService
void DMXService()
Module service routine, to be called by the main loop().
DMXInit
void DMXInit()
Init the module in setup()
DMXSet
void DMXSet(unsigned int channel, unsigned char value)
Set value of a DMX channel.
fruit.h