2024-12-02 22:15:50 +08:00
|
|
|
#ifndef __MW_BLUETOOTH_H__
|
|
|
|
#define __MW_BLUETOOTH_H__
|
|
|
|
|
2024-12-03 21:55:42 +08:00
|
|
|
#include "stm32f10x.h"
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
hc06 = 0,
|
|
|
|
|
2024-12-03 22:49:37 +08:00
|
|
|
bluetooth_num
|
2024-12-03 21:55:42 +08:00
|
|
|
}bluetooth_type_enum;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
bluetooth_type_enum bluetooth_drv;
|
|
|
|
void (*init)(void);
|
2024-12-03 22:49:37 +08:00
|
|
|
void (*deinit)(void);
|
2024-12-03 21:55:42 +08:00
|
|
|
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;
|
2024-12-03 21:55:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-02 22:15:50 +08:00
|
|
|
|
|
|
|
#endif
|