在逗猫棒的基础上实现蓝牙转USB功能,目前功能已经实现,还需裁剪掉之前逗猫棒的业务程序
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef __ADAPTER_IDEV_BLE_H__
|
||||
#define __ADAPTER_IDEV_BLE_H__
|
||||
|
||||
#include "generic/typedef.h"
|
||||
|
||||
enum {
|
||||
IDEV_BLE_CLOSE,
|
||||
IDEV_BLE_OPEN,
|
||||
IDEV_BLE_START,
|
||||
IDEV_BLE_STOP,
|
||||
};
|
||||
|
||||
struct _idev_ble_parm {
|
||||
|
||||
};
|
||||
|
||||
struct _idev_ble {
|
||||
u8 status;
|
||||
struct ble_server_operation_t *ble_opt;
|
||||
};
|
||||
|
||||
int adapter_idev_ble_open(void *priv);
|
||||
int adapter_idev_ble_start(void *priv);
|
||||
int adapter_idev_ble_stop(void *priv);
|
||||
int adapter_idev_ble_close(void *priv);
|
||||
int adapter_idev_ble_config(int cmd, void *parm);
|
||||
|
||||
extern struct _idev_ble idev_ble;
|
||||
|
||||
#endif//__ADAPTER_IDEV_BLE_H__
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#ifndef __ADAPTER_IDEV_BT_H__
|
||||
#define __ADAPTER_IDEV_BT_H__
|
||||
|
||||
#include "generic/typedef.h"
|
||||
|
||||
#include "adapter_idev_ble.h"
|
||||
|
||||
enum {
|
||||
IDEV_EDR = 0x0,
|
||||
IDEV_BLE,
|
||||
};
|
||||
|
||||
struct _idev_bt_parm {
|
||||
u8 mode;
|
||||
struct _idev_ble_parm ble_parm;
|
||||
};
|
||||
|
||||
struct _idev_bt {
|
||||
struct _idev_bt_parm *parm;
|
||||
struct _idev_ble *ble;
|
||||
};
|
||||
|
||||
#endif//__ADAPTER_IDEV_BT_H__
|
||||
|
||||
Reference in New Issue
Block a user