Home

Defines | Functions

dwengoUsart.h File Reference

USART routines. More...

#include "dwengoBoard.h"
#include <usart.h>

Defines

#define BAUD300   0
#define BAUD1200   1
#define BAUD2400   2
#define BAUD9600   3
#define BAUD19200   4
#define BAUD57600   5
#define BAUD115200   6

Functions

void initUsart ()
 Usart initialisation function, baudrate = 9600.
void initUsartAdj (char baudrate)
 Usart initialisation function.
void printStringToUSART (const FAR_ROM char *message)
 Write a ROM string to a the USART.
void putByteToUSART (BYTE data)
 Write one byte to the USART.

Detailed Description

USART routines.

Abstraction of USART initialisation function


Function Documentation

void initUsartAdj ( char  baudrate)

Usart initialisation function.

Initialisation of the UART for an asynchronous serial connection with adjustable baud rate.

Parameters:
baudrateThe requated baud rate. May be ony of: BAUD300, BAUD1200, BAUD2400, BAUD9600, BAUD19200, BAUD57600, BAUD115200.
void printStringToUSART ( const FAR_ROM char *  message)

Write a ROM string to a the USART.

The string is written to the USART.

Parameters:
messagethe NULL-terminated ASCII string to write
void putByteToUSART ( BYTE  data)

Write one byte to the USART.

The data was written to the USART.

Parameters:
datathe byte to send
 All Data Structures Files Functions Variables Defines

Generated on Wed Dec 25 2013 23:03:08 for Dwengo library by doxygen 1.7.3