simpleBLECentral.h为了编程方便,翻译后特此记录
来源:互联网 发布:笔记本thinkpad和mac 编辑:程序博客网 时间:2024/04/29 19:31
//如果某处有更好翻译,请留言(会采纳)
#ifndef SIMPLEBLECENTRAL_H
#define SIMPLEBLECENTRAL_H
#ifdef __cplusplus
extern "C"
{
#endif
/*********************************************************************
* 包含
*/
/*********************************************************************
* 常量
*/
// 主机BLE任务事件
#define START_DEVICE_EVT 0x0001
#define START_DISCOVERY_EVT 0x0002
/*********************************************************************
* 宏定义
*/
// LCD宏定义
#if HAL_LCD == TRUE
#define LCD_WRITE_STRING(str, option) HalLcdWriteString( (str), (option))
#define LCD_WRITE_SCREEN(line1, line2) HalLcdWriteScreen( (line1), (line2) )
#define LCD_WRITE_STRING_VALUE(title, value, format, line) HalLcdWriteStringValue( (title), (value), (format), (line) )
#else
#define LCD_WRITE_STRING(str, option)
#define LCD_WRITE_SCREEN(line1, line2)
#define LCD_WRITE_STRING_VALUE(title, value, format, line)
#endif
/*********************************************************************
* 函数
*/
/*
* BLE应用程序初始化函数
*/
extern void SimpleBLECentral_Init( uint8 task_id );
/*
* BLE应用任务事件处理函数
*/
extern uint16 SimpleBLECentral_ProcessEvent( uint8 task_id, uint16 events );
/*********************************************************************
*********************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* SIMPLEBLECENTRAL_H */
#ifndef SIMPLEBLECENTRAL_H
#define SIMPLEBLECENTRAL_H
#ifdef __cplusplus
extern "C"
{
#endif
/*********************************************************************
* 包含
*/
/*********************************************************************
* 常量
*/
// 主机BLE任务事件
#define START_DEVICE_EVT 0x0001
#define START_DISCOVERY_EVT 0x0002
/*********************************************************************
* 宏定义
*/
// LCD宏定义
#if HAL_LCD == TRUE
#define LCD_WRITE_STRING(str, option) HalLcdWriteString( (str), (option))
#define LCD_WRITE_SCREEN(line1, line2) HalLcdWriteScreen( (line1), (line2) )
#define LCD_WRITE_STRING_VALUE(title, value, format, line) HalLcdWriteStringValue( (title), (value), (format), (line) )
#else
#define LCD_WRITE_STRING(str, option)
#define LCD_WRITE_SCREEN(line1, line2)
#define LCD_WRITE_STRING_VALUE(title, value, format, line)
#endif
/*********************************************************************
* 函数
*/
/*
* BLE应用程序初始化函数
*/
extern void SimpleBLECentral_Init( uint8 task_id );
/*
* BLE应用任务事件处理函数
*/
extern uint16 SimpleBLECentral_ProcessEvent( uint8 task_id, uint16 events );
/*********************************************************************
*********************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* SIMPLEBLECENTRAL_H */
0 0
- simpleBLECentral.h为了编程方便,翻译后特此记录
- simpleBLECentral.C简单的翻译一下,方便编程,特此记录
- simpleBLECentral.C简单的翻译一下,方便编程,特此记录
- 做好记录---为了以后可以方便查询
- cvc个人记录[为了方便以后查看]
- C语言运算符优先级记录-为了自己查找方便
- eclipse环境安装(为了以后方便记录一下)
- [记录]编程语言翻译
- 类型转换函数(特此记录)
- 为了方便做为收集
- 为了记录
- 方便记录
- 属性动画设置延迟后,如果在未开始前取消,会执行onAnimationStart方法,特此记录
- OC 函数式编程 (非原创 为了方便查找 所以设置为原创)
- 第一次参加TopCoder SRM,特此记录
- 为了翻译文章
- 同样为了翻译
- 为了编程
- IOS视频软件开发流程
- Android 编程下字库的使用
- Bash中多条shell命令的连接后,一次性发送
- IOS开发:导航栏添加多个按钮以及在左边添加logo
- eclipse svn插件安装方法
- simpleBLECentral.h为了编程方便,翻译后特此记录
- Objective-C语法之代码块(block)的使用
- MarkerDelegeteImp destroy 这是什么错啊?
- 编译Android出错:Unable to execute dex: Java heap space
- 利用Eclipse进行代码重构
- android压力测试命令monkey详解
- 文件流形式下载,服务器不存储问题。
- Storm术语解释
- 一道经典题目