Defines | Functions
usart.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BAUD   15

Functions

void uart_bufferFlush (const int8_t)
unsigned char uart_DataInReceiveBuffer ()
unsigned char uart_getc (void)
char uart_gets (char *)
void uart_init (void)
void uart_loopback ()
void uart_putc (unsigned char)
void uart_puts (const char *)

Detailed Description

Header usart module setup and operation

Version:
1.0
Author:
Julio Sagardoy

Definition in file usart.h.


Define Documentation

#define BAUD   15

Please enter here the required number for the desired baudrate. Possible values are (for a 14.7456MHz system clock and U2X0=0): |=======|=======| | bps | value | |=======|=======| | 2400 | 383 | | 4800 | 191 | | 9600 | 95 | | 14.4K | 63 | | 19.2K | 47 | | 28.8K | 31 | | 38.4K | 23 | | 57.6K | 15 | | 76.8K | 11 | | 115.2K| 7 | | 230.4K| 3 |

Definition at line 37 of file usart.h.


Function Documentation

void uart_bufferFlush ( const int8_t  )

Definition at line 129 of file usart.c.

unsigned char uart_DataInReceiveBuffer ( )

Tells if there is data in the rxcycle buffer

Definition at line 111 of file usart.c.

unsigned char uart_getc ( void  )

Extract a single character from rx cycle buffer

Definition at line 48 of file usart.c.

char uart_gets ( char *  str)

Points to an entire string from rx cycle buffer. The end is signaled by a Unix <LF>. Returns the number of characters of the string

Definition at line 81 of file usart.c.

void uart_init ( void  )

Initializes UART ports and cycle buffers

Definition at line 200 of file usart.c.

void uart_loopback ( )

Echoes back received characters, except for 'q', which ends mode

Definition at line 118 of file usart.c.

void uart_putc ( unsigned char  data)

Put a single character to the tx cycle buffer

Definition at line 63 of file usart.c.

void uart_puts ( const char *  str)

Put an entire string into the tx cycle buffer. Appends a Unix <LF>

Definition at line 101 of file usart.c.



cob_3d_mapping_demonstrator
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:46