Complement set of read functions to be used by the UART ISR and UARTMSP432E4_read(). Internal use only. More...
#include <UARTMSP432E4.h>
Data Fields | |
bool(* | readIsrFxn )(UART_Handle handle) |
int(* | readTaskFxn )(UART_Handle handle) |
Complement set of read functions to be used by the UART ISR and UARTMSP432E4_read(). Internal use only.
These functions are intended solely for the UARTMSP432E4 driver, and should not be used by the application. The UARTMSP432E4_FxnSet is a pair of functions that are designed to operate with one another in a task context and in an ISR context. The readTaskFxn is called by UARTMSP432E4_read() to drain a circular buffer, whereas the readIsrFxn is used by the UARTMSP432E4_hwiIntFxn to fill up the circular buffer.
readTaskFxn: Function called by UART read These variables are set and avilalable for use to the readTaskFxn. object->readBuf = buffer; //Pointer to a user buffer object->readSize = size; //Desired no. of bytes to read object->readCount = size; //Remaining no. of bytes to read
readIsrFxn: The required ISR counterpart to readTaskFxn
bool(* UARTMSP432E4_FxnSet::readIsrFxn) (UART_Handle handle) |
int(* UARTMSP432E4_FxnSet::readTaskFxn) (UART_Handle handle) |