
26-8
UART Communication Tools
Programmer’s Manual
The calling application needs to pass the data byte stream, with its sizParameter
PPSM for sending out.
When PPSM finishes sending the data, it will post an interrupt message to the
calling application notifying it that all data has been sent.
Application task swapping is disabled while the send request is in progress,
and re-enabled after the send request is terminated.
Parameter
Return Value
26.8
UARTSendAbort
Syntax
STATUS
UARTSendAbort
(U8 abortFlag, P_U8 *pSendData, P_U32
sendSize)
Description
Terminate the current UART transmission. The transmission abort process is
the same as calling UARTSend(UART_SEND_ABORT). Moreover, beside
aborting the ongoing transmission, PPSM returns a pointer which points to the
current position of internal transmission buffer and the number of bytes of data
have been sent. Caller can get those information without abort UART
transmission by calling UARTSendAbort() with
UART_INQUIRE_SBYTE.
Name
Description
sendFlag
Operation flag
UART_SEND_REQUEST
Initiates a send request
UART_SEND_ABORT
Aborts a send request
pData
Pointer to data byte stream
dataLen
Number of bytes of data to be sent
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
PPSM_ERR_BUSY
There is already an on-going send request
(when trying to initiate one)
Personal Portable System Manager
Programmer’s Manual
26-9
Return Value
26.9
UARTSendCtrl
Syntax
STATUS
UARTSendCtrl
Description
Pause or continue sending data through UART to another device. An
application can pause or continue data transmission through UART when
hardware control is enabled. Error message is returned if RTS/CTS hardware
flow control is not enabled.
Parameter
Name
Description
abortFlag
pSendData
sendSize
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_INVALID_ACCESS
Invalid access of UART
Name
Description
controlType
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.