Functions | Variables
uartsci.c File Reference

The file implements the UART Serial Communication Interface Driver for the XWR14xx and XWR16xx. The file implements the driver to conform to the MCPI standards. More...

#include <stdint.h>
#include <string.h>
#include <ti/common/sys_common.h>
#include <ti/drivers/osal/MemoryP.h>
#include <ti/drivers/uart/UART.h>
#include <ti/drivers/uart/include/uartsci.h>

Functions

static void UartSci_close (UART_Handle handle)
 
static void UartSci_init (UART_Handle handle)
 
static UART_Handle UartSci_open (UART_Handle handle, UART_Params *params)
 
static int32_t UartSci_read (UART_Handle handle, uint8_t *buffer, uint32_t size)
 
static int32_t UartSci_readPolling (UART_Handle handle, uint8_t *buffer, uint32_t size)
 
static void UartSci_readCancel (UART_Handle handle)
 
static int32_t UartSci_write (UART_Handle handle, uint8_t *buffer, uint32_t size)
 
static int32_t UartSci_writePolling (UART_Handle handle, uint8_t *buffer, uint32_t size)
 
static void UartSci_writeCancel (UART_Handle handle)
 
static int32_t UartSci_control (UART_Handle handle, uint32_t cmd, void *arg)
 
static void UartSci_enableTxInterrupt (volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_disableTxInterrupt (volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isTxInterruptEnabled (const volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_enableRxInterrupt (volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_disableRxInterrupt (volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isRxInterruptEnabled (const volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isRxFree (const volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isTxFree (const volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isRxOverrun (const volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_clearRxOverrun (volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isParityError (const volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_clearParityError (volatile SCIRegs *ptrSCIRegs)
 
static uint32_t UartSci_isFramingError (const volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_clearFramingError (volatile SCIRegs *ptrSCIRegs)
 
static uint8_t UartSci_getCh (const volatile SCIRegs *ptrSCIRegs)
 
static void UartSci_putCh (volatile SCIRegs *ptrSCIRegs, uint8_t ch)
 
static void UartSci_ISR (uintptr_t arg)
 
static int32_t UartSci_validateParams (UART_Params *params, UartSci_HwCfg *ptrHwCfg)
 
static void UartSci_writeChar (UartSci_Driver *ptrUartSciDriver, UartSci_HwCfg *ptrHwCfg)
 
static void UartSci_readChar (UartSci_Driver *ptrUartSciDriver, UartSci_HwCfg *ptrHwCfg)
 
void UartSci_enableTxDMA (volatile SCIRegs *ptrSCIRegs)
 
void UartSci_disableTxDMA (volatile SCIRegs *ptrSCIRegs)
 
void UartSci_enableRxDMA (volatile SCIRegs *ptrSCIRegs)
 
void UartSci_disableRxDMA (volatile SCIRegs *ptrSCIRegs)
 

Variables

static const uint8_t CONST_CR = (uint8_t)'\r'
 Global Constant CR.
 
static const uint8_t CONST_LF = (uint8_t)'\n'
 Global Constant LF.
 
UART_FxnTable gUartSciFxnTable
 UART-SCI Driver Function Table. More...
 

Detailed Description

The file implements the UART Serial Communication Interface Driver for the XWR14xx and XWR16xx. The file implements the driver to conform to the MCPI standards.

NOTE: (C) Copyright 2016 Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Variable Documentation

UART_FxnTable gUartSciFxnTable
Initial value:
=
{
}
static void UartSci_close(UART_Handle handle)
Definition: uartsci.c:1879
static int32_t UartSci_writePolling(UART_Handle handle, uint8_t *buffer, uint32_t size)
Definition: uartsci.c:1271
static void UartSci_init(UART_Handle handle)
Definition: uartsci.c:1946
static void UartSci_readCancel(UART_Handle handle)
Definition: uartsci.c:1053
static int32_t UartSci_readPolling(UART_Handle handle, uint8_t *buffer, uint32_t size)
Definition: uartsci.c:953
static int32_t UartSci_read(UART_Handle handle, uint8_t *buffer, uint32_t size)
Definition: uartsci.c:844
static UART_Handle UartSci_open(UART_Handle handle, UART_Params *params)
Definition: uartsci.c:1607
static void UartSci_writeCancel(UART_Handle handle)
Definition: uartsci.c:1373
static int32_t UartSci_write(UART_Handle handle, uint8_t *buffer, uint32_t size)
Definition: uartsci.c:1140
static int32_t UartSci_control(UART_Handle handle, uint32_t cmd, void *arg)
Definition: uartsci.c:1455

UART-SCI Driver Function Table.

This is the UART Driver registered function table.


Copyright 2018, Texas Instruments Incorporated