28 lines
404 B
C
Raw Normal View History

#ifndef __MW_BLUETOOTH_H__
#define __MW_BLUETOOTH_H__
#include "stm32f10x.h"
typedef enum
{
hc06 = 0,
2024-12-03 22:49:37 +08:00
bluetooth_num
}bluetooth_type_enum;
typedef struct
{
bluetooth_type_enum bluetooth_drv;
void (*init)(void);
2024-12-03 22:49:37 +08:00
void (*deinit)(void);
int8_t (*send_bytes)(uint16_t bytes, uint8_t * txbuf);
int8_t (*recv_bytes)(uint16_t bytes, uint8_t * rxbuf);
2024-12-03 22:49:37 +08:00
}mw_bluetooth_t;
#endif