20230731_XiaoFuZi_emb/ZheDaXiaoFuZiBoot/Src/Usr/Driver/Ldrv/E104-BT52/McuE104Bt52Drv.h

25 lines
653 B
C
Raw Permalink Normal View History

#ifndef _MCU_E104BT52_DRV_H_
#define _MCU_E104BT52_DRV_H_
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
typedef int (*E104BT52_Send)(unsigned char *Buf, unsigned int BufLen);
typedef int (*E104BT52_Recv)(unsigned char *Buf, unsigned int BufLen);
typedef void (*E104BT52_DelayMs)(unsigned int period);
typedef struct {
unsigned char BlueToothId;
E104BT52_Send BluetoothSend;
E104BT52_Recv BluetoothRecv;
E104BT52_DelayMs DelayMs;
} E104BT52_OBJ;
/* 等待模块自身初始化完成 */
int McuE104BT52DrvInit(E104BT52_OBJ *BlueObj);
/* 进入低功耗模式 */
int McuE104BT52DrvLowPower(E104BT52_OBJ *BlueObj);
#endif