低功耗蓝牙cc2541学习笔记之UART-1-协议栈函数功能说明
来源:互联网 发布:apache spark源码剖析 编辑:程序博客网 时间:2024/04/28 23:31
协议栈UART实验
打开串口功能
HAL_UART=TRUE
HAL_UART_USB=FALSE
串口操作定义在hal_uart.h 头文件中
/*
* Initialize UART at the startup
* 初始化UART
*/
extern void HalUARTInit ( void );
/*
* Open a port based on the configuration
* 打开串口
*/
extern uint8 HalUARTOpen ( uint8 port, halUARTCfg_t *config );
/*
* Close a port
* 关闭串口
*/
extern void HalUARTClose ( uint8 port );
/*
* Read a buffer from the UART
* 从串口读取数据
*/
extern uint16 HalUARTRead ( uint8 port, uint8 *pBuffer, uint16 length );
/*
* Write a buff to the uart
* 向串口写入数据
*/
extern uint16 HalUARTWrite ( uint8 port, uint8 *pBuffer, uint16 length );
/*
* Write a buffer to the UART
*/
extern uint8 HalUARTIoctl ( uint8 port, uint8 cmd, halUARTIoctl_t *pIoctl );
/*
* This to support polling
*/
extern void HalUARTPoll( void );
/*
* Return the number of bytes in the Rx buffer
*/
extern uint16 Hal_UART_RxBufLen ( uint8 port );
/*
* Return the number of bytes in the Tx buffer
*/
extern uint16 Hal_UART_TxBufLen ( uint8 port );
/*
* This enable/disable flow control
*/
extern void Hal_UART_FlowControlSet ( uint8 port, bool status );
/*
* Initialize hardware for UART
*/
extern uint8 HalUART_HW_Init(uint8 port);
/*
* Abort UART when entering sleep mode
*/
extern void HalUARTSuspend(void);
/*
* Resume UART after wakeup from sleep
* 从睡眠状态恢复uart
*/
extern void HalUARTResume(void);
- 低功耗蓝牙cc2541学习笔记之UART-1-协议栈函数功能说明
- 低功耗蓝牙cc2541学习笔记之UART-3-协议栈uart发送 实验
- 低功耗蓝牙cc2541学习笔记之UART-4-协议栈uart接受数据实验
- 低功耗蓝牙cc2541学习笔记之协议栈简介
- 低功耗蓝牙cc2541学习笔记之UART-2-驱动uart
- 低功耗蓝牙cc2541学习笔记之LED-1
- 低功耗蓝牙cc2541学习笔记之协议栈工作原理
- 低功耗蓝牙cc2541学习笔记之LED-2
- 低功耗蓝牙cc2541学习笔记之无线通信- 分析SimpleBLEPeripheral_Init()函数
- 学习笔记之低功耗蓝牙开发
- 低功耗蓝牙(学习笔记)
- 【FRDM-KW41Z学习笔记】运行蓝牙低功耗无线UART应用
- 蓝牙BLE基础:CC2541通信系列之模拟UART协议
- 低功耗蓝牙协议栈基础知识
- 低功耗蓝牙BLE协议栈简介
- 低功耗蓝牙学习
- TI低功耗蓝牙芯片CC2541干货分析总结
- 低功耗蓝牙学习0524
- CentOS7 ipconfig命令不可用~
- 应聘时最漂亮的回答
- 使用CSDN-markdown编辑器
- 常用git命令
- Bellman-Ford
- 低功耗蓝牙cc2541学习笔记之UART-1-协议栈函数功能说明
- Spring源码阅读之-自定义配置的解析
- 设计模式——工厂模式
- [LeetCode] 54. Spiral Matrix
- Total Commander常见指令与问题总结
- 嵌入式Linux驱动笔记(六)------浅析input输入子系统框架
- java的泛型入门
- Java中的常见、关键字问题
- Netty线程模型