265 #ifndef ti_drivers_UART__include   266 #define ti_drivers_UART__include   292 #define UART_CMD_RESERVED           (32)   306 #define UART_STATUS_RESERVED        (-32)   321 #define UART_STATUS_SUCCESS         (0)   329 #define UART_STATUS_ERROR           (-1)   338 #define UART_STATUS_UNDEFINEDCMD    (-2)   357 #define UART_CMD_PEEK               (0)   368 #define UART_CMD_ISAVAILABLE        (1)   379 #define UART_CMD_GETRXCOUNT         (2)   391 #define UART_CMD_RXENABLE           (3)   404 #define UART_CMD_RXDISABLE          (4)   409 #define UART_ERROR                  (UART_STATUS_ERROR)   414 #define UART_WAIT_FOREVER           (~(0U))   438 typedef void (*
UART_Callback) (UART_Handle handle, 
void *buf, 
size_t count);
   594 typedef int_fast16_t (*
UART_ControlFxn) (UART_Handle handle, uint_fast16_t cmd, 
void *arg);
   611 typedef int_fast32_t (*
UART_ReadFxn) (UART_Handle handle, 
void *buffer,
   631 typedef int_fast32_t (*
UART_WriteFxn) (UART_Handle handle, 
const void *buffer,
   639     const void *buffer, 
size_t size);
   756 extern int_fast16_t 
UART_control(UART_Handle handle, uint_fast16_t cmd, 
void *arg);
   856 extern int_fast32_t 
UART_write(UART_Handle handle, 
const void *buffer, 
size_t size);
   881 extern int_fast32_t 
UART_writePolling(UART_Handle handle, 
const void *buffer, 
size_t size);
   932 extern int_fast32_t 
UART_read(UART_Handle handle, 
void *buffer, 
size_t size);
   954 extern int_fast32_t 
UART_readPolling(UART_Handle handle, 
void *buffer, 
size_t size);
 UART_Mode writeMode
Definition: UART.h:568
UART_WriteFxn writeFxn
Definition: UART.h:675
UART_Mode readMode
Definition: UART.h:567
uint32_t baudRate
Definition: UART.h:577
void(* UART_CloseFxn)(UART_Handle handle)
A function pointer to a driver specific implementation of UART_CloseFxn(). 
Definition: UART.h:588
enum UART_Echo_ UART_Echo
UART echo settings. 
UART_Callback writeCallback
Definition: UART.h:572
void * object
Definition: UART.h:700
UART_CloseFxn closeFxn
Definition: UART.h:654
struct UART_Params_ UART_Params
UART Parameters. 
UART_ReturnMode_
UART return mode settings. 
Definition: UART.h:478
int_fast16_t UART_control(UART_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given UART_Handle. 
UART_ReadPollingFxn readPollingFxn
Definition: UART.h:669
UART_Callback readCallback
Definition: UART.h:571
enum UART_PAR_ UART_PAR
UART parity type settings. 
enum UART_LEN_ UART_LEN
UART data length settings. 
enum UART_Mode_ UART_Mode
UART mode settings. 
UART_LEN dataLength
Definition: UART.h:578
int_fast32_t(* UART_ReadFxn)(UART_Handle handle, void *buffer, size_t size)
A function pointer to a driver specific implementation of UART_ReadFxn(). 
Definition: UART.h:611
int_fast16_t(* UART_ControlFxn)(UART_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of UART_ControlFxn(). 
Definition: UART.h:594
UART_STOP_
UART stop bit settings. 
Definition: UART.h:540
UART_DataMode writeDataMode
Definition: UART.h:575
int_fast32_t UART_writePolling(UART_Handle handle, const void *buffer, size_t size)
Function that writes data to a UART, polling the peripheral to wait until new data can be written...
void * custom
Definition: UART.h:581
void UART_close(UART_Handle handle)
Function to close a UART peripheral specified by the UART handle. 
void UART_readCancel(UART_Handle handle)
Function that cancels a UART_read() function call. 
struct UART_FxnTable_ UART_FxnTable
The definition of a UART function table that contains the required set of functions to control a spec...
UART Global configuration. 
Definition: UART.h:695
void const  * hwAttrs
Definition: UART.h:703
void UART_init(void)
Function to initialize the UART module. 
UART_OpenFxn openFxn
Definition: UART.h:663
UART_LEN_
UART data length settings. 
Definition: UART.h:528
UART_ReadCancelFxn readCancelFxn
Definition: UART.h:672
UART_STOP stopBits
Definition: UART.h:579
UART_Handle(* UART_OpenFxn)(UART_Handle handle, UART_Params *params)
A function pointer to a driver specific implementation of UART_OpenFxn(). 
Definition: UART.h:606
struct UART_Config_ UART_Config
UART Global configuration. 
The definition of a UART function table that contains the required set of functions to control a spec...
Definition: UART.h:652
void UART_Params_init(UART_Params *params)
Function to initialize the UART_Params struct to its defaults. 
UART_WriteCancelFxn writeCancelFxn
Definition: UART.h:681
int_fast32_t UART_write(UART_Handle handle, const void *buffer, size_t size)
Function that writes data to a UART with interrupts enabled. 
void UART_writeCancel(UART_Handle handle)
Function that cancels a UART_write() function call. 
int_fast32_t(* UART_WriteFxn)(UART_Handle handle, const void *buffer, size_t size)
A function pointer to a driver specific implementation of UART_WriteFxn(). 
Definition: UART.h:631
int_fast32_t(* UART_ReadPollingFxn)(UART_Handle handle, void *buffer, size_t size)
A function pointer to a driver specific implementation of UART_ReadPollingFxn(). 
Definition: UART.h:618
UART_PAR_
UART parity type settings. 
Definition: UART.h:550
int_fast32_t UART_readPolling(UART_Handle handle, void *buffer, size_t size)
Function that reads data from a UART without interrupts. This API must be used mutually exclusive wit...
void(* UART_InitFxn)(UART_Handle handle)
A function pointer to a driver specific implementation of UART_InitFxn(). 
Definition: UART.h:600
UART_Handle UART_open(uint_least8_t index, UART_Params *params)
Function to initialize a given UART peripheral. 
enum UART_STOP_ UART_STOP
UART stop bit settings. 
enum UART_ReturnMode_ UART_ReturnMode
UART return mode settings. 
uint32_t writeTimeout
Definition: UART.h:570
UART_Echo readEcho
Definition: UART.h:576
UART_FxnTable const  * fxnTablePtr
Definition: UART.h:697
int_fast32_t(* UART_WritePollingFxn)(UART_Handle handle, const void *buffer, size_t size)
A function pointer to a driver specific implementation of UART_WritePollingFxn(). ...
Definition: UART.h:638
UART Parameters. 
Definition: UART.h:566
void(* UART_ReadCancelFxn)(UART_Handle handle)
A function pointer to a driver specific implementation of UART_ReadCancelFxn(). 
Definition: UART.h:625
UART_ControlFxn controlFxn
Definition: UART.h:657
UART_ReturnMode readReturnMode
Definition: UART.h:573
struct UART_Config_ * UART_Handle
A handle that is returned from a UART_open() call. 
Definition: UART.h:419
UART_DataMode readDataMode
Definition: UART.h:574
int_fast32_t UART_read(UART_Handle handle, void *buffer, size_t size)
Function that reads data from a UART with interrupt enabled. 
UART_ReadFxn readFxn
Definition: UART.h:666
UART_DataMode_
UART data mode settings. 
Definition: UART.h:500
UART_PAR parityType
Definition: UART.h:580
UART_Echo_
UART echo settings. 
Definition: UART.h:518
void(* UART_WriteCancelFxn)(UART_Handle handle)
A function pointer to a driver specific implementation of UART_WriteCancelFxn(). 
Definition: UART.h:645
UART_InitFxn initFxn
Definition: UART.h:660
uint32_t readTimeout
Definition: UART.h:569
void(* UART_Callback)(UART_Handle handle, void *buf, size_t count)
The definition of a callback function used by the UART driver when used in UART_MODE_CALLBACK The cal...
Definition: UART.h:438
UART_Mode_
UART mode settings. 
Definition: UART.h:445
enum UART_DataMode_ UART_DataMode
UART data mode settings. 
UART_WritePollingFxn writePollingFxn
Definition: UART.h:678