#include "STC8x_UART.h"
宏定义 | |
#define | UART1_MODE_CFG(mode) do{SM0 = mode >> 1, SM1 = mode;}while(0) |
串口1工作模式选择宏函数,仅限本文件内调用。 更多... | |
#define | UART2_MODE_CFG(mode) do{S2CON = (S2CON & 0x3F)|((mode & 0x02) << 6);}while(0) |
串口2工作模式选择宏函数,仅限本文件内调用。 更多... | |
#define | UART3_MODE_CFG(mode) do{S3CON = (S3CON & 0x3F)|((mode & 0x02) << 6);}while(0) |
串口3工作模式选择宏函数,仅限本文件内调用。 更多... | |
#define | UART4_MODE_CFG(mode) do{S4CON = (S4CON & 0x3F)|((mode & 0x02) << 6);}while(0) |
串口4工作模式选择宏函数,仅限本文件内调用。 更多... | |
#define | UART1_TIMER1_BRTMODE_CFG(brtMode, baudRate) |
串口1用定时器1做波特率发生器计算波特率宏函数,仅限本文件内调用。 更多... | |
#define | uartx_TIMER2_BRTMODE_CFG(brtMode, baudRate) |
串口用定时器2做波特率发生器计算波特率宏函数,仅限本文件内调用。 更多... | |
#define | UART3_TIMER3_BRTMODE_CFG(brtMode, baudRate) |
串口3用定时器3做波特率发生器计算波特率宏函数,仅限本文件内调用。 更多... | |
#define | UART4_TIMER4_BRTMODE_CFG(brtMode, baudRate) |
串口4用定时器4做波特率发生器计算波特率宏函数,仅限本文件内调用。 更多... | |
串口1工作模式选择宏函数,仅限本文件内调用。
Serial Port 1 mode of operation selects macro functions and is only called within this file.
#define UART1_TIMER1_BRTMODE_CFG | ( | brtMode, | |
baudRate | |||
) |
串口1用定时器1做波特率发生器计算波特率宏函数,仅限本文件内调用。
Serial port 1 uses timer 1 to do baud rate generator calculation baud rate macro function, which is only called in this file.
[in] | brtMode | 波特率发生器模式。Baud rate generator mode. |
[in] | baudRate | 波特率。Baud rate. |
串口2工作模式选择宏函数,仅限本文件内调用。
Serial Port 2 mode of operation selects macro functions and is only called within this file.
串口3工作模式选择宏函数,仅限本文件内调用。
Serial Port 3 mode of operation selects macro functions and is only called within this file.
#define UART3_TIMER3_BRTMODE_CFG | ( | brtMode, | |
baudRate | |||
) |
串口3用定时器3做波特率发生器计算波特率宏函数,仅限本文件内调用。
Serial port 3 uses timer 3 to do baud rate generator calculation baud rate macro function, which is only called in this file.
[in] | brtMode | 波特率发生器模式。Baud rate generator mode. |
[in] | baudRate | 波特率。Baud rate. |
串口4工作模式选择宏函数,仅限本文件内调用。
Serial Port 4 mode of operation selects macro functions and is only called within this file.
#define UART4_TIMER4_BRTMODE_CFG | ( | brtMode, | |
baudRate | |||
) |
串口4用定时器4做波特率发生器计算波特率宏函数,仅限本文件内调用。
Serial port 4 uses timer 4 to do baud rate generator calculation baud rate macro function, which is only called in this file.
[in] | brtMode | 波特率发生器模式。Baud rate generator mode. |
[in] | baudRate | 波特率。Baud rate. |
#define uartx_TIMER2_BRTMODE_CFG | ( | brtMode, | |
baudRate | |||
) |
串口用定时器2做波特率发生器计算波特率宏函数,仅限本文件内调用。
Serial port uses timer 2 to do baud rate generator calculation baud rate macro function, which is only called in this file.
[in] | brtMode | 波特率发生器模式。Baud rate generator mode. |
[in] | baudRate | 波特率。Baud rate. |