219 #ifndef ti_drivers_UART2__include 220 #define ti_drivers_UART2__include 235 #define UART2_STATUS_SUCCESS (0) 240 #define UART2_STATUS_SREADTIMEOUT (1) 245 #define UART2_STATUS_EFRAMING (-1) 250 #define UART2_STATUS_EPARITY (-2) 255 #define UART2_STATUS_EBREAK (-4) 260 #define UART2_STATUS_EOVERRUN (-8) 265 #define UART2_STATUS_EINUSE (-9) 270 #define UART2_STATUS_EINVALID (-10) 275 #define UART2_STATUS_EFAIL (-11) 280 #define UART2_STATUS_EMEMORY (-12) 285 #define UART2_STATUS_ETIMEOUT (-13) 290 #define UART2_STATUS_ECANCELLED (-14) 295 #define UART2_STATUS_ENOTOPEN (-15) 302 #define UART2_WAIT_FOREVER (~(0U)) 327 void *userArg, int_fast16_t status);
459 size_t size,
size_t *bytesRead);
472 const void *buffer,
size_t size,
size_t *bytesWritten);
654 extern int_fast16_t
UART2_read(UART2_Handle handle,
void *buffer,
size_t size,
735 extern int_fast16_t
UART2_write(UART2_Handle handle,
const void *buffer,
736 size_t size,
size_t *bytesWritten);
UART2_ReadCancelFxn readCancelFxn
Definition: UART2.h:496
UART2_ReadReturnMode
UART2 return mode settings.
Definition: UART2.h:371
void(* UART2_CloseFxn)(UART2_Handle handle)
A function pointer to a driver specific implementation of UART2_CloseFxn().
Definition: UART2.h:441
void UART2_readCancel(UART2_Handle handle)
Function that cancels a UART2_read() function call.
UART2_ReadReturnMode readReturnMode
Definition: UART2.h:429
UART2_Parity
UART2 parity type settings.
Definition: UART2.h:406
void(* UART2_FlushRxFxn)(UART2_Handle handle)
A function to flush the RX data currently in the FIFO.
Definition: UART2.h:446
UART2_ReadFxn readFxn
Definition: UART2.h:493
UART2_WriteCancelFxn writeCancelFxn
Definition: UART2.h:502
int_fast16_t UART2_write(UART2_Handle handle, const void *buffer, size_t size, size_t *bytesWritten)
Function that writes data to a UART.
UART2_Callback readCallback
Definition: UART2.h:427
void * userArg
Definition: UART2.h:434
struct UART2_Config UART2_Config
UART2 Global configuration.
void * object
Definition: UART2.h:520
struct UART2_Config * UART2_Handle
A handle that is returned from a UART2_open() call.
Definition: UART2.h:307
The definition of a UART2 function table that contains the required set of functions to control a spe...
Definition: UART2.h:485
UART2_StopBits stopBits
Definition: UART2.h:432
UART2_Mode writeMode
Definition: UART2.h:424
void(* UART2_WriteCancelFxn)(UART2_Handle handle)
A function pointer to a driver specific implementation of UART2_WriteCancelFxn(). ...
Definition: UART2.h:478
UART2_Parity parityType
Definition: UART2.h:433
UART2 Global configuration.
Definition: UART2.h:515
void UART2_flushRx(UART2_Handle handle)
Function to flush data in the UART RX FIFO.
UART2_Mode
UART2 mode settings.
Definition: UART2.h:334
UART2_Handle UART2_open(uint_least8_t index, UART2_Params *params)
Function to initialize a given UART peripheral.
UART2_FlushRxFxn flushRxFxn
Definition: UART2.h:505
void UART2_close(UART2_Handle handle)
Function to close a UART peripheral specified by the UART2 handle.
UART2_Callback writeCallback
Definition: UART2.h:428
UART2 Parameters.
Definition: UART2.h:422
uint32_t writeTimeout
Definition: UART2.h:426
UART2_StopBits
UART2 stop bit settings.
Definition: UART2.h:396
UART2_WriteFxn writeFxn
Definition: UART2.h:499
int_fast16_t(* UART2_WriteFxn)(UART2_Handle handle, const void *buffer, size_t size, size_t *bytesWritten)
A function pointer to a driver specific implementation of UART2_WriteFxn().
Definition: UART2.h:471
UART2_CloseFxn closeFxn
Definition: UART2.h:487
void UART2_Params_init(UART2_Params *params)
Function to initialize the UART2_Params struct to its defaults.
UART2_DataLen dataLength
Definition: UART2.h:431
int_fast16_t UART2_read(UART2_Handle handle, void *buffer, size_t size, size_t *bytesRead)
Function that reads data from a UART.
void const * hwAttrs
Definition: UART2.h:523
uint32_t readTimeout
Definition: UART2.h:425
UART2_FxnTable const * fxnTablePtr
Definition: UART2.h:517
int_fast16_t(* UART2_ReadFxn)(UART2_Handle handle, void *buffer, size_t size, size_t *bytesRead)
A function pointer to a driver specific implementation of UART2_ReadFxn().
Definition: UART2.h:458
UART2_Handle(* UART2_OpenFxn)(uint_least8_t index, UART2_Params *params)
A function pointer to a driver specific implementation of UART2_OpenFxn().
Definition: UART2.h:452
void(* UART2_Callback)(UART2_Handle handle, void *buf, size_t count, void *userArg, int_fast16_t status)
The definition of a callback function used by the UART2 driver when used in UART2_Mode_CALLBACK The c...
Definition: UART2.h:326
UART2_Mode readMode
Definition: UART2.h:423
UART2_DataLen
UART2 data length settings.
Definition: UART2.h:384
void UART2_writeCancel(UART2_Handle handle)
Function that cancels a UART2_write() function call.
UART2_OpenFxn openFxn
Definition: UART2.h:490
void(* UART2_ReadCancelFxn)(UART2_Handle handle)
A function pointer to a driver specific implementation of UART2_ReadCancelFxn().
Definition: UART2.h:465
uint32_t baudRate
Definition: UART2.h:430