#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 NO_BITS 1 + 8 + 1 + 1 |
Referenced by UARTBAUDRATE_rxError(), and UARTBAUDRATE_txError().
double UARTBAUDRATE_txTbit | ( | unsigned int | mode, |
unsigned int | i, | ||
unsigned int | s_mod, | ||
unsigned int | f_mod | ||
) |
References baudrate, brclk, lf_div_i, osr_div_i, and UCSx_mod.
Referenced by UARTBAUDRATE_rxError(), and UARTBAUDRATE_txError().
MAX_ERR UARTBAUDRATE_txError | ( | unsigned int | mode, |
unsigned int | s_mod, | ||
unsigned int | f_mod | ||
) |
References baudrate, ERROR_STRUCTURE::max_error, ERROR_STRUCTURE::max_negative_error, ERROR_STRUCTURE::max_positive_error, NO_BITS, and UARTBAUDRATE_txTbit().
Referenced by UARTBAUDRATE_calculateBaudDividers().
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 | ||
) |
References baudrate, brclk, lf_div_f, lf_div_i, ERROR_STRUCTURE::max_error, ERROR_STRUCTURE::max_negative_error, ERROR_STRUCTURE::max_positive_error, osr_div_f, osr_div_i, STATUS_FAIL, STATUS_SUCCESS, UARTBAUDRATE_LOW_FREQUENCY_BAUDRATE_GENERATION, and UARTBAUDRATE_txError().
Referenced by UART_init().
double baudrate |
double brclk |
Referenced by UARTBAUDRATE_calculateBaudDividers(), UARTBAUDRATE_rxError(), and UARTBAUDRATE_txTbit().
double lf_div_f |
Referenced by UARTBAUDRATE_calculateBaudDividers().
double osr_div_f |
Referenced by UARTBAUDRATE_calculateBaudDividers().
unsigned int lf_div_i |
Referenced by UARTBAUDRATE_calculateBaudDividers(), UARTBAUDRATE_rxError(), and UARTBAUDRATE_txTbit().
unsigned int osr_div_i |
Referenced by UARTBAUDRATE_calculateBaudDividers(), UARTBAUDRATE_rxError(), and UARTBAUDRATE_txTbit().
unsigned short UCSx_mod[8][8] |
{ {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().