![]() |
![]() |
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... | |
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.
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.
UART_FxnTable gUartSciFxnTable |
UART-SCI Driver Function Table.
This is the UART Driver registered function table.