Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

/*---------------------------------------------------------------------------------------------------------------------------------------------------
 * irsnd.h
 *
 * Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de
 *
 * $Id: irsnd.h,v 1.3 2010/06/10 10:05:56 fm Exp $
 *
 * ATMEGA88 @ 8 MHz
 *
 * This program 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 2 of the License, or
 * (at your option) any later version.
 *---------------------------------------------------------------------------------------------------------------------------------------------------
 */


#ifndef _WC_IRSND_H_
#define _WC_IRSND_H_

/**
 *  Initialize ISND encoder
 *  @details  Configures ISDN output pin
 */

extern void                         irsnd_init (void);

/**
 *  Check if sender is busy
 *  @details  checks if sender is busy
 *  @return    TRUE: sender is busy, FALSE: sender is not busy
 */

extern uint8_t                      irsnd_is_busy (void);

/**
 *  Send IRMP data
 *  @details  sends IRMP data
 *  @param    pointer to IRMP data structure
 *  @return    TRUE: successful, FALSE: failed
 */

extern uint8_t                      irsnd_send_data (IRMP_DATA *, uint8_t);

/**
 *  ISR routine
 *  @details  ISR routine, called 10000 times per second
 */

extern uint8_t                      irsnd_ISR (void);

#endif /* _WC_IRSND_H_ */