#ifndef __MW_BLUETOOTH_H__ #define __MW_BLUETOOTH_H__ #include "stm32f10x.h" typedef enum { hc06 = 0, bluetooth_num }bluetooth_type_enum; typedef struct { bluetooth_type_enum bluetooth_drv; void (*init)(void); void (*deinit)(void); int8_t (*send_bytes)(uint16_t bytes, uint8_t * txbuf); int8_t (*recv_bytes)(uint16_t bytes, uint8_t * rxbuf); }mw_bluetooth_t; #endif