EDF - OnePIC MCU  Preliminary v0.7.0
8bit_IR/irda_uart.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IRDA_BRATE   9600
#define NUM_DATA_BITS   8
#define BIT_UDLY   104
 mS delay period inbetween bits
#define IRDA_TX   PTP3_PORT
#define IRDA_RX   PTP1_PORT
#define IRDA_16X_CLK   PTP2_PORT
#define IRDA_16X_CLK_TRIS   PTP2_TRIS

Functions

void irda_putch (char c)
 bit-bang IR byte
char irda_getch (void)
 receives one byte
char irda_getche (void)
 echos back whatever received

Detailed Description

Definition in file irda_uart.h.


Define Documentation

#define BIT_UDLY   104

mS delay period inbetween bits

Parameters:
BIT_DLY

uses the built in macro from HI-TECH to delay between bits. = 1/IRDA_BRATE = 1/9600 = 104us Be sure that this is micro seconds!!

Definition at line 22 of file irda_uart.h.

#define IRDA_16X_CLK   PTP2_PORT
Parameters:
IRDA_16X_CLKthe PWM pin for the MCP2122

Definition at line 29 of file irda_uart.h.

#define IRDA_16X_CLK_TRIS   PTP2_TRIS
Parameters:
IRDA_16X_CLKC_TRIStris pin for PWM

Definition at line 30 of file irda_uart.h.

#define IRDA_BRATE   9600
Parameters:
IRDA_BRATEbaud rate for IR transfer

Definition at line 11 of file irda_uart.h.

#define IRDA_RX   PTP1_PORT
Parameters:
IRDA_RXrx pin

Definition at line 26 of file irda_uart.h.

#define IRDA_TX   PTP3_PORT
Parameters:
IRDA_TXtx pin

Definition at line 25 of file irda_uart.h.

#define NUM_DATA_BITS   8
Parameters:
NUM_DATA_BITSnum of data bits

Definition at line 12 of file irda_uart.h.