Difference between revisions of "UART"
(→UART_RxChar) |
(→UART_TxString) |
||
Line 55: | Line 55: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || '''void UART_TxString(char *string_ptr)''' |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || '''String'''(Address of the string) to be transmitted. |
|- | |- | ||
− | | Return Value|| | + | | Return Value||none |
|- | |- | ||
− | | Description || | + | | Description ||This function is used to transmit the ASCII string through UART.. |
+ | *The string_ptr points to the first char of the string and traverses till the end(NULL CHAR) and transmits a char each time | ||
|- | |- | ||
| Usage || | | Usage || | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
==UART_RxString== | ==UART_RxString== |
Revision as of 22:44, 20 December 2014
Contents
[hide]UART
UART_Init
{{#Widget:LibTable}}Defination | void UART_Init(uint32_t Baudrate) |
Input Arguments |
uint32_t : Baudrate to be configured. |
Return Value | none |
Description | This function is used to initialize the UART at specified baud rate.If the requested baud rate is not within the supported range then the default baud rate of 9600 is set. |
Usage |
UART_TxChar
{{#Widget:LibTable}}Defination | void UART_TxChar(char ch) |
Input Arguments | Ascii value of the character to be transmitted. |
Return Value | none |
Description | This function is used to transmit a char through UART module. |
Usage |
UART_RxChar
{{#Widget:LibTable}}Defination | char UART_RxChar() |
Input Arguments | none. |
Return Value | char: Ascii value of the character received |
Description | This function is used to receive a char from UART module. It waits till a char is received and returns it after reception. |
Usage |
UART_TxString
{{#Widget:LibTable}}Defination | void UART_TxString(char *string_ptr) |
Input Arguments | String(Address of the string) to be transmitted. |
Return Value | none |
Description | This function is used to transmit the ASCII string through UART..
|
Usage |
UART_RxString
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
UART_TxDecimalNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
UART_TxHexNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
UART_TxBinaryNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
UART_TxFloatNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
UART_Printf
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |