Fraise
2.1
FRAmework for Interfacing Software and Electronics
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Typedefs
Groups
dmx_slave.h
1
/*********************************************************************
2
*
3
* DMX slave 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_SLAVE_H_
28
#define _DMX_SLAVE_H_
29
30
void
DMXSlaveInit();
31
void
DMXSlaveService();
32
void
DMXSlaveISR();
// to be declared in low ISR
33
unsigned
char
DMXSlaveGet(
unsigned
int
channel);
34
unsigned
int
DMXSlaveGetMaxReceivedChannel(
void
);
// calling this function resets the MaxReceivedChannel count.
35
// Application must define following constant in config.h :
36
//#define DMX_SLAVE_UART_PORT {1 or 2}
37
38
#ifndef DMX_SLAVE_NBCHAN
39
#define DMX_SLAVE_NBCHAN 128
40
#endif
41
42
#endif // _DMX_SLAVE_H_
43
dmx_slave
dmx_slave.h
Generated on Mon Jan 18 2016 00:28:53 for Fraise by
1.8.6