Setup and control of UART communication. More...
Go to the source code of this file.
Functions | |
| void | UART_Init (void) |
| Setup UART communication, gets called from main() | |
| void | UART_SendChar (char c) |
| send a single character via UART to host system | |
| void | UART_SendString (char *str) |
| send a full string to host system | |
| void | UART_SendInt (int32_t num) |
| send a 16 bit integer to host system | |
| void | UART_SendUint32 (uint32_t num) |
| send a 32 bit integer to host system | |
| void | UART_SendTime (uint32_t seconds) |
| Sends a time formated in hours and minutes to host system. | |
| void | UART_Bitstream (const bool *arr, unsigned int length) |
| Sends a the received DCF bitstream to host system. | |
Setup and control of UART communication.
Definition in file uart.c.
| void UART_Bitstream | ( | const bool * | arr, |
| unsigned int | length ) |
Sends a the received DCF bitstream to host system.
| [out] | arr | Pointer to the bitstream array |
| [in] | length | The length of the array |
Definition at line 154 of file uart.c.
References UART_SendChar(), and UART_SendString().
Referenced by checkBitStream(), and decodeBitStream2Seconds().
| void UART_Init | ( | void | ) |
Setup UART communication, gets called from main()
Definition at line 18 of file uart.c.
Referenced by main().
| void UART_SendChar | ( | char | c | ) |
send a single character via UART to host system
| [in] | c | The character to send |
Definition at line 37 of file uart.c.
Referenced by UART_Bitstream(), UART_SendInt(), UART_SendString(), and UART_SendUint32().
| void UART_SendInt | ( | int32_t | num | ) |
send a 16 bit integer to host system
| [in] | num | The integer to send |
Definition at line 63 of file uart.c.
References UART_SendChar().
Referenced by decodeBitStream2Seconds(), and UART_SendTime().
| void UART_SendString | ( | char * | str | ) |
send a full string to host system
| [out] | *str | Pointer to the string |
Definition at line 49 of file uart.c.
References UART_SendChar().
Referenced by checkBitStream(), decodeBitStream2Seconds(), interruptDcf(), main(), stepperAdvance(), UART_Bitstream(), and UART_SendTime().
| void UART_SendTime | ( | uint32_t | seconds | ) |
Sends a time formated in hours and minutes to host system.
| [in] | seconds | The time in seconds to send |
Definition at line 131 of file uart.c.
References UART_SendInt(), and UART_SendString().
Referenced by decodeBitStream2Seconds(), main(), and stepperAdvance().
| void UART_SendUint32 | ( | uint32_t | num | ) |
send a 32 bit integer to host system
| [in] | num | The integer to send |
Definition at line 103 of file uart.c.
References UART_SendChar().
Referenced by stepperAdvance().