final project  1
uart.h File Reference

communication between bot and computer More...

Go to the source code of this file.

Functions

void uart_init (void)
 sets all necessary registers to enable the uart 1 module.
 
void uart_sendChar (char data)
 Sends a single 8 bit character over the uart 1 module. More...
 
int uart_receive (void)
 polling receive an 8 bit character over uart 1 module. More...
 
void uart_sendStr (const char *data)
 sends an entire string of character over uart 1 module More...
 

Detailed Description

communication between bot and computer

Author
Steven, Kynara, Saba, Bailey, Brett, Austin
Date
4/24/18

Definition in file uart.h.

Function Documentation

◆ uart_receive()

int uart_receive ( void  )

polling receive an 8 bit character over uart 1 module.

Returns
the character received or a -1 if error occurred

Definition at line 63 of file uart.c.

◆ uart_sendChar()

void uart_sendChar ( char  data)

Sends a single 8 bit character over the uart 1 module.

Parameters
datathe data to be sent out over uart 1

Definition at line 54 of file uart.c.

◆ uart_sendStr()

void uart_sendStr ( const char *  data)

sends an entire string of character over uart 1 module

Parameters
datapointer to the first index of the string to be sent

Definition at line 75 of file uart.c.