Functions

UART.c File Reference

this file contains all the required functions to send and receive data using the UART module. More...

#include "msp430.h"
#include "main.h"
#include "UART.h"

Go to the source code of this file.

Functions

void InitUART (void)
 Function Name: InitUART.
void StopUARTRx (void)
 Function Name: StopUARTRx.
void StartUARTRx (void)
 Function Name: StartUARTRx.
void WriteUART (unsigned char data)
 Function Name: WriteUART.
void putsUART (unsigned char *buffer, unsigned short StringSize)
 Function Name: putsUART .

Detailed Description

this file contains all the required functions to send and receive data using the UART module.

Author:
Daniel Torres - Texas Instruments, Inc
Date:
November 2010
Version:
1.0 Initial version
Note:
Built with IAR for MSP430 Version: 5.10

Definition in file UART.c.


Function Documentation

void InitUART ( void   ) 

Function Name: InitUART.

Description: This function initialized the USCI-UART.

Parameters:
none 
Returns:
none

Definition at line 83 of file UART.c.

void putsUART ( unsigned char *  buffer,
unsigned short  StringSize 
)

Function Name: putsUART .

Description: This function puts the data string to be transmitted into the transmit buffer (till NULL character) .

Parameters:
unsigned char * address of the string buffer to be transmitted
Returns:
None

Definition at line 162 of file UART.c.

void StartUARTRx ( void   ) 

Function Name: StartUARTRx.

Description: This function enables the USCI-UART interrupts in order to be ready to receive USBID messages.

Parameters:
none 
Returns:
none

Definition at line 125 of file UART.c.

void StopUARTRx ( void   ) 

Function Name: StopUARTRx.

Description: This function disables the USCI-UART interrupts in order to not acknowledge byte sent by the TX.

Parameters:
none 
Returns:
none

Definition at line 111 of file UART.c.

void WriteUART ( unsigned char  data  ) 

Function Name: WriteUART.

Description: This function writes data into the UART TX REG.

Parameters:
unsigned char data the data to be written
Returns:
None

Definition at line 138 of file UART.c.