EDF - OnePIC MCU  Preliminary v0.7.0
8bit_IR/mcp2200_uart.c File Reference

Connects to the MCP2200 using the Hardware UART module. More...

#include <htc.h>
#include <stdio.h>
#include <string.h>
#include "bsp.h"
#include "mcp2200_uart.h"
Include dependency graph for mcp2200_uart.c:

Go to the source code of this file.

Functions

void mcp2200_init (void)
 Configures the UART module for 9600 baud.
void mcp2200_prompt (void)
void putch (uint8_t byte)
uint8_t mcp2200_getch (void)
uint8_t mcp2200_getche (void)

Detailed Description

Connects to the MCP2200 using the Hardware UART module.

Definition in file mcp2200_uart.c.


Function Documentation

uint8_t mcp2200_getch ( void  )

Receive one character from MCP2200

Returns:
unsigned char RCREG

Definition at line 73 of file mcp2200_uart.c.

Here is the caller graph for this function:

uint8_t mcp2200_getche ( void  )

A simple 'echo back what was sent'

Returns:
unsigned char character sent

Definition at line 85 of file mcp2200_uart.c.

Here is the call graph for this function:

void mcp2200_init ( void  )

Configures the UART module for 9600 baud.

Note:
If this is changed, you must change it in the GUI as well

Definition at line 21 of file mcp2200_uart.c.

Here is the caller graph for this function:

void mcp2200_prompt ( void  )

Outputs a message to prompt the user for a keypress through COM port

Definition at line 39 of file mcp2200_uart.c.

Here is the call graph for this function:

void putch ( uint8_t  byte)

Prints a single character If using PRINTF, this MUST be avaliable!

Parameters:
byteunsigned char

Definition at line 61 of file mcp2200_uart.c.

Here is the caller graph for this function: