28 #ifndef INC_DRIVERS_UART_OC_UART_H_ 29 #define INC_DRIVERS_UART_OC_UART_H_ 32 #define DRIVER_NAME UART 36 #include <oc_stdlib.h> 38 #include <oc_uart_lld.h> 45 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 83 oC_UART_Dma_UseIfPossible ,
84 oC_UART_Dma_AlwaysUse ,
111 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 118 #define _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ 120 extern oC_ErrorCode_t oC_UART_TurnOn (
void );
121 extern oC_ErrorCode_t oC_UART_TurnOff (
void );
122 extern bool oC_UART_IsTurnedOn (
void );
123 extern oC_ErrorCode_t oC_UART_Configure (
const oC_UART_Config_t * Config , oC_UART_Context_t * outContext );
124 extern oC_ErrorCode_t oC_UART_Unconfigure (
const oC_UART_Config_t * Config , oC_UART_Context_t * outContext );
125 extern oC_ErrorCode_t oC_UART_Read ( oC_UART_Context_t Context ,
char * outBuffer , uint32_t * Size , oC_Time_t Timeout );
126 extern oC_ErrorCode_t oC_UART_Write ( oC_UART_Context_t Context ,
const char * Buffer , uint32_t * Size , oC_Time_t Timeout );
127 extern oC_ErrorCode_t oC_UART_Ioctl ( oC_UART_Context_t Context , oC_Ioctl_Command_t Command ,
void * Data );
128 extern oC_ErrorCode_t oC_UART_Disable ( oC_UART_Context_t Context );
129 extern oC_ErrorCode_t oC_UART_Enable ( oC_UART_Context_t Context );
131 #undef _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ transmission length is 8 bits
stop bit length set to 2 bits
The file with interface for the GPIO driver.
stop bit length set to 1 bit
transmission length is 7 bits
low significant bit first
most significant bit first
stop bit length set to 1.5 bit
The file with interface for driver creating.
The file with interface for IOCTL.
transmission length is 6 bits
transmission length is 5 bits