]> cloudbase.mooo.com Git - irmp.git/blob - irsnd.h
Version 1.7.0: stable release
[irmp.git] / irsnd.h
1 /*---------------------------------------------------------------------------------------------------------------------------------------------------
2 * irsnd.h
3 *
4 * Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de
5 *
6 * $Id: irsnd.h,v 1.3 2010/06/10 10:05:56 fm Exp $
7 *
8 * ATMEGA88 @ 8 MHz
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *---------------------------------------------------------------------------------------------------------------------------------------------------
15 */
16
17 #ifndef _WC_IRSND_H_
18 #define _WC_IRSND_H_
19
20 /**
21 * Initialize ISND encoder
22 * @details Configures ISDN output pin
23 */
24 extern void irsnd_init (void);
25
26 /**
27 * Check if sender is busy
28 * @details checks if sender is busy
29 * @return TRUE: sender is busy, FALSE: sender is not busy
30 */
31 extern uint8_t irsnd_is_busy (void);
32
33 /**
34 * Send IRMP data
35 * @details sends IRMP data
36 * @param pointer to IRMP data structure
37 * @return TRUE: successful, FALSE: failed
38 */
39 extern uint8_t irsnd_send_data (IRMP_DATA *, uint8_t);
40
41 /**
42 * ISR routine
43 * @details ISR routine, called 10000 times per second
44 */
45 extern uint8_t irsnd_ISR (void);
46
47 #endif /* _WC_IRSND_H_ */