]> cloudbase.mooo.com Git - irmp.git/blame - irsnd.h
version 2.0.0-pre3: changed handling of double width pulses/pauses in manchester...
[irmp.git] / irsnd.h
CommitLineData
4225a882 1/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
2 * irsnd.h\r
3 *\r
f50e01e7 4 * Copyright (c) 2010-2011 Frank Meyer - frank(at)fli4l.de\r
4225a882 5 *\r
f50e01e7 6 * $Id: irsnd.h,v 1.4 2011/04/11 12:54:25 fm Exp $\r
5481e9cd 7 *\r
4225a882 8 * ATMEGA88 @ 8 MHz\r
9 *\r
10 * This program is free software; you can redistribute it and/or modify\r
11 * it under the terms of the GNU General Public License as published by\r
12 * the Free Software Foundation; either version 2 of the License, or\r
13 * (at your option) any later version.\r
14 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
15 */\r
16\r
17#ifndef _WC_IRSND_H_\r
18#define _WC_IRSND_H_\r
19\r
20/**\r
21 * Initialize ISND encoder\r
22 * @details Configures ISDN output pin\r
23 */\r
24extern void irsnd_init (void);\r
25\r
26/**\r
27 * Check if sender is busy\r
28 * @details checks if sender is busy\r
29 * @return TRUE: sender is busy, FALSE: sender is not busy\r
30 */\r
31extern uint8_t irsnd_is_busy (void);\r
32\r
33/**\r
34 * Send IRMP data\r
35 * @details sends IRMP data\r
36 * @param pointer to IRMP data structure\r
37 * @return TRUE: successful, FALSE: failed\r
38 */\r
879b06c2 39extern uint8_t irsnd_send_data (IRMP_DATA *, uint8_t);\r
4225a882 40\r
41/**\r
42 * ISR routine\r
43 * @details ISR routine, called 10000 times per second\r
44 */\r
45extern uint8_t irsnd_ISR (void);\r
46\r
f50e01e7 47#if IRSND_USE_CALLBACK == 1\r
48extern void irsnd_set_callback_ptr (void (*cb)(uint8_t));\r
49#endif // IRSND_USE_CALLBACK == 1\r
50\r
4225a882 51#endif /* _WC_IRSND_H_ */\r