|
AM64x MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
58 #include <drivers/hw_include/cslr.h>
59 #include <drivers/hw_include/cslr_uart.h>
60 #include <drivers/hw_include/hw_types.h>
94 #define UART_TRANSFER_MODE_BLOCKING (0U)
99 #define UART_TRANSFER_MODE_CALLBACK (1U)
void UART_deinit(void)
This function de-initializes the UART module.
void * readTransferSem
Definition: uart/v0/uart.h:246
SemaphoreP_Object lockObj
Definition: uart/v0/uart.h:244
uint32_t timeGuardVal
Definition: uart/v0/uart.h:176
SemaphoreP_Object readTransferSemObj
Definition: uart/v0/uart.h:249
UARTLLD_Object uartLld_object
Definition: uart/v0/uart.h:262
UART_Handle handle
Definition: uart/v0/uart.h:204
void * hwiHandle
Definition: uart/v0/uart.h:256
uint16_t index
Definition: tisci_rm_proxy.h:3
const void * writeBuf
Definition: uart/v0/uart.h:211
void * UART_Handle
A handle that is returned from a UART_open() call.
Definition: uart/v0/uart.h:73
UART_Transaction * writeTrans
Definition: uart/v0/uart.h:235
void UART_Transaction_init(UART_Transaction *trans)
Function to initialize the UART_Transaction struct to its defaults.
UART_Handle UART_getHandle(uint32_t index)
Function to return a open'ed UART handle given a UART instance index.
int32_t UART_writeCancel(UART_Handle handle, UART_Transaction *trans)
Function to perform UART canceling of current write transaction.
UARTLLD_InitObject uartLld_initObject
Definition: uart/v0/uart.h:266
UART global configuration array.
Definition: uart/v0/uart.h:276
uint32_t writeMode
Definition: uart/v0/uart.h:136
uint32_t writeSizeRemaining
Definition: uart/v0/uart.h:215
void UART_Params_init(UART_Params *prms)
Function to initialize the UART_Params struct to its defaults.
void(* UART_CallbackFxn)(UART_Handle handle, UART_Transaction *transaction)
The definition of a callback function used by the UART driver when used in UART_TRANSFER_MODE_CALLBAC...
Definition: uart/v0/uart.h:109
uint32_t dataLength
Definition: uart/v0/uart.h:126
uint8_t intrPriority
Definition: uart/v0/uart.h:154
int32_t UART_write(UART_Handle handle, UART_Transaction *trans)
Function to perform UART write operation.
uint32_t readMode
Definition: uart/v0/uart.h:132
uint32_t rxTrigLvl
Definition: uart/v0/uart.h:168
void UART_close(UART_Handle handle)
Function to close a UART peripheral specified by the UART handle.
UART_Config gUartConfig[]
Externally defined driver configuration array.
UART driver initialization object.
Definition: uart_lld.h:506
UARTLLD_Handle uartLld_handle
Definition: uart/v0/uart.h:263
int32_t uartDmaIndex
Definition: uart/v0/uart.h:158
void * uartDmaHandle
Definition: uart/v0/uart.h:260
uint32_t isOpen
Definition: uart/v0/uart.h:240
void UART_flushTxFifo(UART_Handle handle)
Function to flush a TX FIFO of peripheral specified by the UART handle.
UART driver object.
Definition: uart_lld.h:576
uint32_t transferMode
Definition: uart/v0/uart.h:150
uint32_t skipIntrReg
Definition: uart/v0/uart.h:156
UART_Attrs * attrs
Definition: uart/v0/uart.h:277
SemaphoreP_Object writeTransferSemObj
Definition: uart/v0/uart.h:254
void * lock
Definition: uart/v0/uart.h:242
uint32_t readCount
Definition: uart/v0/uart.h:222
uint32_t parityType
Definition: uart/v0/uart.h:130
uint32_t rxTimeoutCnt
Definition: uart/v0/uart.h:226
uint32_t writeCount
Definition: uart/v0/uart.h:213
uint32_t hwFlowControl
Definition: uart/v0/uart.h:142
uint32_t readSizeRemaining
Definition: uart/v0/uart.h:224
uint32_t readReturnMode
Definition: uart/v0/uart.h:134
void UART_init(void)
This function initializes the UART module.
UART Parameters.
Definition: uart/v0/uart.h:123
int32_t UART_readCancel(UART_Handle handle, UART_Transaction *trans)
Function to perform UART canceling of current read transaction.
uint32_t baudRate
Definition: uart/v0/uart.h:124
UART_CallbackFxn readCallbackFxn
Definition: uart/v0/uart.h:138
uint32_t readErrorCnt
Definition: uart/v0/uart.h:228
void * writeTransferSem
Definition: uart/v0/uart.h:251
UART_Object * object
Definition: uart/v0/uart.h:279
Data structure used with UART_read() and UART_write()
Definition: uart_lld.h:456
uint32_t UART_getBaseAddr(UART_Handle handle)
Function to get base address of UART instance of a particular handle.
uint32_t intrNum
Definition: uart/v0/uart.h:152
uint32_t inputClkFreq
Definition: uart/v0/uart.h:188
UART_Handle UART_open(uint32_t index, const UART_Params *prms)
This function opens a given UART peripheral.
UART_CallbackFxn writeCallbackFxn
Definition: uart/v0/uart.h:140
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
UART driver object.
Definition: uart/v0/uart.h:200
uint32_t hwFlowControlThr
Definition: uart/v0/uart.h:144
UART_Transaction * readTrans
Definition: uart/v0/uart.h:233
uint32_t stopBits
Definition: uart/v0/uart.h:128
void * readBuf
Definition: uart/v0/uart.h:220
uint32_t rxEvtNum
Definition: uart/v0/uart.h:172
uint32_t gUartConfigNum
Externally defined driver configuration array size.
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
int32_t UART_read(UART_Handle handle, UART_Transaction *trans)
Function to perform UART read operation.
This file contains the prototype of UART driver APIs.
UART instance attributes - used during init time.
Definition: uart/v0/uart.h:182
uint32_t txEvtNum
Definition: uart/v0/uart.h:174
uint32_t baseAddr
Definition: uart/v0/uart.h:186
UARTLLD_InitHandle uartLld_initHandle
Definition: uart/v0/uart.h:265
HwiP_Object hwiObj
Definition: uart/v0/uart.h:258
UART_Params prms
Definition: uart/v0/uart.h:206
uint32_t txTrigLvl
Definition: uart/v0/uart.h:170
uint32_t operMode
Definition: uart/v0/uart.h:166