| STC15W408AS library 0.12.0
    | 
#include <stdint.h>#include <sys.h>#include <bits.h>#include <frequency.h>#include <interrupt.h>#include <uart1_shared.h>#include <uart1_9bit_shared.h>
Go to the source code of this file.
| Macros | |
| #define | uart1_mode3_timer2_1T_init(pins) | 
| Initialize UART1 in Mode 3 with Timer2 1T configuration. | |
| #define | uart1_mode3_timer2_1T_start(baudrate) | 
| Start UART1 communication with standart baudrate value. | |
| #define | uart1_mode3_timer2_1T_ticks(baudrate) (65536 - (((MAIN_Fosc / baudrate) >> 2) >> get_frequency_divider_scale())) | 
| Get UART1 ticks for given baudrate and frequency divider scale. | |
| #define | uart1_mode3_timer2_1T_start_ext(baudrate) | 
| Start UART1 communication with baudrate value. | |
| #define | uart1_mode3_timer2_1T_stop() (bit_clr(AUXR, CBIT4)) | 
| Stop UART1 communication and disable Timer2. | |
| #define | is_uart1_mode3_timer2_1T_started() (test_if_bit_set(AUXR, SBIT4)) | 
| Is UART1 started? | |
| Enumerations | |
| enum | uart1_mode2_timer2_1t_baudrate_t { baudrate_1200 = 0xF6FF , baudrate_2400 = 0xFB80 , baudrate_4800 = 0xFDC0 , baudrate_9600 = 0xFEE0 , baudrate_19200 = 0xFF70 , baudrate_38400 = 0xFFB8 , baudrate_57600 = 0xFFD0 , baudrate_115200 = 0xFFE8 } | 
| UART1 precalculated baudrates.  More... | |