usart.h File Reference

#include "sysconfig.h"

Go to the source code of this file.

Data Structures

struct  rs232_

Typedefs

typedef struct rs232_ rs232_struct

Functions

int usart_write (char *buffer)
 usart_write(): This function is called to send bytes via USART
int usart_read (void)
void usart_clear_structure (rs232_struct_delete rs232_del)
 usart_printf(): This function is called to send formatted bytes via USART

Variables

rs232_struct rs232_info


Typedef Documentation

typedef struct rs232_ rs232_struct


Function Documentation

void usart_clear_structure ( rs232_struct_delete  rs232_del  ) 

usart_printf(): This function is called to send formatted bytes via USART

This function is called on usart as an usart formatted writing mechanism

Parameters:
void 
Returns:
void usart_clear_structure(): This function is called to clear working parameters of RS232 This function is called to initialize the structure
Parameters:
rs232_del (which should we delete)
Returns:
void

References BOTH, bzero, rs232_::last_read, rs232_::last_receive, rs232_::last_transmit, rs232_::last_write, MAX_RS232_CHARACTERS, READ, rs232_::readbuf, TMP_READ, rs232_::tmp_readbuf, WRITE, and rs232_::writebuf.

Referenced by bt_device_uc_config(), init_usart(), usart_read(), usart_uc_read(), and usart_write().

int usart_read ( void   ) 

int usart_write ( char *  buffer  ) 

usart_write(): This function is called to send bytes via USART

This function is called on usart as an usart writing mechanism
only called when the first character is sent of a string

Parameters:
buffer The Buffer we want to write
Returns:
1 on SUCCESS, -1 if FAILS (sending data to big)

References rs232_::last_write, MAX_RS232_CHARACTERS, usart_clear_structure(), usart_uc_write(), WRITE, and rs232_::writebuf.

Referenced by usart_read().


Variable Documentation


Generated on Mon Jan 12 21:12:08 2009 for BlueTemp by  doxygen 1.5.8