|
software_APIs
1.0.0
|

Go to the source code of this file.
Functions | |
| void | UART_enableTX (bool is_enable) |
| void | UART_enableRX (bool is_enable) |
| char | UART_readChar () |
| void | UART_popChar () |
| char * | UART_readLine () |
| void | print (const char *p) |
| void | UART_sendChar (char c) |
| void | UART_sendInt (int data) |
| void print | ( | const char * | p | ) |
Send ASCII symbol or symbols through UART
TX mode have to be enabled
| void UART_enableRX | ( | bool | is_enable | ) |
Enable or disable RX of UART
| is_enable | when 1(true) UART RX enable, 0 (false) UART RX disable |
| void UART_enableTX | ( | bool | is_enable | ) |
Enable or disable TX of UART
| is_enable | when 1(true) UART TX enable, 0 (false) UART TX disable |
| void UART_popChar | ( | ) |
Pop the first ASCII symbol of the UART received queue
UART_readChar() function would keeping reading the same symbol unless this function is called
| char UART_readChar | ( | ) |
Wait receiving ASCII symbol and return it.
Return the first ASCII symbol of the UART received queue
RX mode have to be enabled
| char* UART_readLine | ( | ) |
read full line msg and return it
| void UART_sendChar | ( | char | c | ) |
Send ASCII char through UART
| c | ASCII char to send |
TX mode have to be enabled
| void UART_sendInt | ( | int | data | ) |
Send int through UART the int would be sent as 8 hex characters
| c | int to send |
TX mode have to be enabled
1.8.13