Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:software:homelab:library:usart [2010/03/25 18:24] mikk.leinien:software:homelab:library:usart [2020/07/20 12:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Serial interface ======+====== Serial Interface ======
  
 This library provides AVR asynchronous serial interface usage functions. This library provides AVR asynchronous serial interface usage functions.
  
-===== Data types =====+===== Data Types =====
  
-  * **//usart//** \\ Data type to hold USART inteface control, status and data register addresses. //usart// typed variables should be initialized at the beginning of the program code. For initializations, there is a macro-functions //USART// which only parameter is the index of interface (0 or 1).+  * **//usart//** \\ Data type to hold USART inteface control, status and data register addresses. //usart// typed variables should be initialized at the beginning of the program code. For initializations, there is a macro-functions //USART//, whose only parameter is the index of interface (0 or 1).
  
-  * **//adc_usart_databits//** \\ Data bits count enumeration data type. Options:+  * **//usart_databits//** \\ Data bits count enumeration data type. Options:
     * //USART_DATABITS_5// - 5 data bits.     * //USART_DATABITS_5// - 5 data bits.
     * //USART_DATABITS_6// - 6 data bits.     * //USART_DATABITS_6// - 6 data bits.
Line 39: Line 39:
  
   * **//void usart_send_char(usart port, char symbol)//** \\   * **//void usart_send_char(usart port, char symbol)//** \\
-    Blocking character transmission. Functions waits until transmit buffer empties before writing a character to the buffer. Parameters:+    Blocking character transmission. Functions wait until transmit buffer empties before writing a character to the buffer. Parameters:
     * //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 is  a received character. Parameters: 
     * //port// - USART interface variable.     * //port// - USART interface variable.
     * Returns character.     * Returns character.
en/software/homelab/library/usart.1269534250.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0