This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:software:homelab:library:usart [2010/03/25 18:24] – mikk.leini | en:software:homelab:library:usart [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Serial | + | ====== Serial |
| This library provides AVR asynchronous serial interface usage functions. | This library provides AVR asynchronous serial interface usage functions. | ||
| - | ===== Data types ===== | + | ===== Data Types ===== |
| - | * **// | + | * **// |
| - | * **//adc_usart_databits//** \\ Data bits count enumeration data type. Options: | + | * **//usart_databits//** \\ Data bits count enumeration data type. Options: |
| * // | * // | ||
| * // | * // | ||
| Line 39: | Line 39: | ||
| * **//void usart_send_char(usart port, char symbol)//** \\ | * **//void usart_send_char(usart port, char symbol)//** \\ | ||
| - | Blocking character transmission. Functions | + | Blocking character transmission. Functions |
| * //port// - USART interface variable. | * //port// - USART interface variable. | ||
| * //symbol// - Character to be sent. | * //symbol// - Character to be sent. | ||
| Line 54: | Line 54: | ||
| * **//char usart_read_char(usart port)//** \\ | * **//char usart_read_char(usart port)//** \\ | ||
| - | Reads a character from receive buffer. Before reading user must check if there is actually a received character. Parameters: | + | Reads a character from receive buffer. Before reading user must check if there actually |
| * //port// - USART interface variable. | * //port// - USART interface variable. | ||
| * Returns character. | * Returns character. | ||