[技术问答] 头文件定义

[复制链接]
1209|3
 楼主| dragonjun 发表于 2016-5-27 17:58 | 显示全部楼层 |阅读模式

#define UART_FCR_RFITL_1BYTE        (0x0 << UART_FCR_RFITL_Pos)   /*!< UA_FCR setting to set RX FIFO Trigger Level to 1 byte */
#define UART_FCR_RFITL_4BYTES       (0x1 << UART_FCR_RFITL_Pos)   /*!< UA_FCR setting to set RX FIFO Trigger Level to 4 bytes */
#define UART_FCR_RFITL_8BYTES       (0x2 << UART_FCR_RFITL_Pos)   /*!< UA_FCR setting to set RX FIFO Trigger Level to 8 bytes */
#define UART_FCR_RFITL_14BYTES      (0x3 << UART_FCR_RFITL_Pos)   /*!< UA_FCR setting to set RX FIFO Trigger Level to 14 bytes */

#define UART_FCR_RTS_TRI_LEV_1BYTE        (0x0 << UART_FCR_RTS_TRI_LEV_Pos)  /*!< UA_FCR setting to set RTS Trigger Level to 1 byte */
#define UART_FCR_RTS_TRI_LEV_4BYTES       (0x1 << UART_FCR_RTS_TRI_LEV_Pos)  /*!< UA_FCR setting to set RTS Trigger Level to 4 bytes */
#define UART_FCR_RTS_TRI_LEV_8BYTES       (0x2 << UART_FCR_RTS_TRI_LEV_Pos)  /*!< UA_FCR setting to set RTS Trigger Level to 8 bytes */
#define UART_FCR_RTS_TRI_LEV_14BYTES      (0x3 << UART_FCR_RTS_TRI_LEV_Pos)  /*!< UA_FCR setting to set RTS Trigger Level to 14 bytes */
这个是UART.H头文件中的一部分定义,看不懂。都 是什么意思? 相关资料在哪看
wahahaheihei 发表于 2016-5-27 20:58 | 显示全部楼层
UA_FCR setting to set RX FIFO Trigger Level to 14 bytes
看备注啊,
就是设置在FIFO模式下接收数据的触发方式,是多少个字节才触发,
734774645 发表于 2016-5-28 00:05 | 显示全部楼层
看后面的注释啊,不认识用谷歌百度一下就知道了。
liuyimao485812 发表于 2016-5-28 07:56 | 显示全部楼层
不用全部读懂。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

20

主题

26

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部