29 lines
394 B
C
Raw Normal View History

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