| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
AN3123 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3123 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 30 page ![]() OS-independent SPEAr UART HAL AN3123 24/30 Doc ID 16862 Rev 2 10.3 UART_Init() This routine is used to initialize the UART. This function sets the default settings and enables the UART. t_UARTError UART_Init(struct spear_uart **uart_device, t_UARTId UARTId) This function sets the default settings as shown in the example below: struct spear_uart_config *dev; dev->FIFOStatus = FIFO_ENABLE; dev->BaudRate = BAUD115200; dev->WordLength = DATA8; dev->StopBitSelect = STOP1; dev->ParitySelect = PARITY_DISABLE; dev->TxWatermarkLevel = OneByTwo; dev->RxWatermarkLevel = OneByTwo; dev->TxEnable = TRUE; dev->RxEnable = TRUE; dev->UARTId = UARTId; 10.4 UART_Configure() This function is used to configure a UART device. It first disables the UART, then finds the integral and fractional baud rate and configures the line control register, control register and various interrupt registers, etc. and finally enables the UART. t_UARTError UART_Configure(struct spear_uart_config *dev) ● UARTId: Identify the UART device ● Config: Configuration information The configuration information is selected as follows: ● ParitySelect: If it is already zero, this means that odd parity is selected. If EVEN then even parity is selected, otherwise invalid parity is selected. ● WordLength: Its value can be chosen from the table given below: Table 15. WordLength values Option Value DATA8 WORD_LENGTH_8 DATA7 WORD_LENGTH_7 DATA6 WORD_LENGTH_6 DATA5 Already zero |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |