//如果某处有更好翻译,请留言(会采纳)
#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 */
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。