Defines | Functions | Variables
uart_baudrate.c File Reference
#include "inc/hw_types.h"
#include "driverlib/5xx_6xx/debug.h"
#include "driverlib/5xx_6xx/uart_baudrate.h"
#include "deprecated/CCS/msp430xgeneric.h"

Defines

#define NO_BITS   1 + 8 + 1 + 1

Functions

double UARTBAUDRATE_txTbit (unsigned int mode, unsigned int i, unsigned int s_mod, unsigned int f_mod)
MAX_ERR UARTBAUDRATE_txError (unsigned int mode, unsigned int s_mod, unsigned int f_mod)
MAX_ERR UARTBAUDRATE_rxError (unsigned int mode, unsigned int s_mod, unsigned int f_mod, double t_sync)
unsigned short UARTBAUDRATE_calculateBaudDividers (double brclk_f, double baudrate_f, unsigned char *UCAxBR0_value, unsigned char *UCAxBR1_value, unsigned int *UCAxMCTL_value, unsigned short overSampling)

Variables

double baudrate
double brclk
double lf_div_f
double osr_div_f
unsigned int lf_div_i
unsigned int osr_div_i
unsigned short UCSx_mod [8][8]

Define Documentation

#define NO_BITS   1 + 8 + 1 + 1

Function Documentation

double UARTBAUDRATE_txTbit ( unsigned int  mode,
unsigned int  i,
unsigned int  s_mod,
unsigned int  f_mod 
)
MAX_ERR UARTBAUDRATE_txError ( unsigned int  mode,
unsigned int  s_mod,
unsigned int  f_mod 
)
MAX_ERR UARTBAUDRATE_rxError ( unsigned int  mode,
unsigned int  s_mod,
unsigned int  f_mod,
double  t_sync 
)
unsigned short UARTBAUDRATE_calculateBaudDividers ( double  brclk_f,
double  baudrate_f,
unsigned char *  UCAxBR0_value,
unsigned char *  UCAxBR1_value,
unsigned int *  UCAxMCTL_value,
unsigned short  overSampling 
)

Variable Documentation

double baudrate
double brclk
double lf_div_f
double osr_div_f
unsigned int lf_div_i
unsigned int osr_div_i
unsigned short UCSx_mod[8][8]
Initial value:
{   {0,    0,    0,    0,    0,    0,    0,    0},
    {0,    1,    0,    0,    0,    0,    0,    0},
    {0,    1,    0,    0,    0,    1,    0,    0},
    {0,    1,    0,    1,    0,    1,    0,    0},
    {0,    1,    0,    1,    0,    1,    0,    1},
    {0,    1,    1,    1,    0,    1,    0,    1},
    {0,    1,    1,    1,    0,    1,    1,    1},
    {0,    1,    1,    1,    1,    1,    1,    1}}

Referenced by UARTBAUDRATE_rxError(), and UARTBAUDRATE_txTbit().


Copyright 2012, Texas Instruments Incorporated