chore: Remove tracked build artifacts
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
#ifndef __BLE_CONFIG_H__
|
||||
#define __BLE_CONFIG_H__
|
||||
|
||||
#include "typedef.h"
|
||||
#include "ble_user.h"
|
||||
|
||||
bool bt_3th_ble_ready(void *priv);
|
||||
s32 bt_3th_ble_send(void *priv, void *data, u16 len);
|
||||
void bt_3th_ble_callback_set(void (*resume)(void), void (*recieve)(void *, void *, u16), void (*status)(void *, ble_state_e));
|
||||
void bt_3th_ble_status_callback(void *priv, ble_state_e status);
|
||||
int bt_3th_ble_data_send(void *priv, u8 *buf, u16 len);
|
||||
void bt_3th_ble_get_operation_table(void);
|
||||
ble_state_e bt_3th_get_jl_ble_status(void);
|
||||
|
||||
#endif//__BLE_CONFG_H__
|
||||
@ -1,43 +0,0 @@
|
||||
#ifndef __BLE_USER_H__
|
||||
#define __BLE_USER_H__
|
||||
|
||||
#include "typedef.h"
|
||||
|
||||
typedef enum {
|
||||
BLE_ST_NULL = 0,
|
||||
BLE_ST_INIT_OK, //协议栈初始化ok
|
||||
BLE_ST_IDLE, //关闭广播或扫描状态
|
||||
BLE_ST_CONNECT, //链路刚连上
|
||||
BLE_ST_SEND_DISCONN, //发送断开命令,等待链路断开
|
||||
BLE_ST_DISCONN, //链路断开状态
|
||||
BLE_ST_CONNECT_FAIL, //连接失败
|
||||
BLE_ST_CONNECTION_UPDATE_OK,//更新连接参数完成
|
||||
|
||||
BLE_ST_ADV = 0x20, //设备处于广播状态
|
||||
BLE_ST_NOTIFY_IDICATE, //设备已连上,允许发数(已被主机使能通知)
|
||||
|
||||
BLE_ST_SCAN = 0x40, //设备处于搜索状态
|
||||
BLE_ST_CREATE_CONN, //发起设备连接
|
||||
BLE_ST_SEND_CREATE_CONN_CANNEL, //取消发起设备连接
|
||||
BLE_ST_SEARCH_COMPLETE, //链路连上,已搜索完profile,可以发送数据操作
|
||||
|
||||
BLE_ST_SEND_STACK_EXIT = 0x60, //发送退出协议栈命令,等待完成
|
||||
BLE_ST_STACK_EXIT_COMPLETE, //协议栈退出成功
|
||||
|
||||
} ble_state_e;
|
||||
|
||||
enum {
|
||||
APP_BLE_NO_ERROR = 0,
|
||||
APP_BLE_BUFF_FULL, //buffer 满,会丢弃当前发送的数据包
|
||||
APP_BLE_BUFF_ERROR, //
|
||||
APP_BLE_OPERATION_ERROR, //操作错误
|
||||
APP_BLE_IS_DISCONN, //链路已断开
|
||||
APP_BLE_NO_WRITE_CCC, //主机没有 write Client Characteristic Configuration
|
||||
};
|
||||
|
||||
struct BLE_CONFIG_VAR {
|
||||
ble_state_e JL_ble_status;
|
||||
struct ble_server_operation_t *rcsp_ble;
|
||||
};
|
||||
|
||||
#endif//__BLE_USER_H__
|
||||
@ -1,72 +0,0 @@
|
||||
#ifndef __BTSTACK_3TH_PROTOCAL_H__
|
||||
#define __BTSTACK_3TH_PROTOCAL_H__
|
||||
|
||||
#include "spp_config.h"
|
||||
#include "ble_config.h"
|
||||
#include "JL_rcsp_api.h"
|
||||
#include "JL_rcsp_protocol.h"
|
||||
#include "JL_rcsp_packet.h"
|
||||
#include "attr.h"
|
||||
|
||||
|
||||
#define APP_TYPE_RCSP 0x01
|
||||
#define APP_TYPE_DUEROS 0x02
|
||||
#define APP_TYPE_BTSTACK 0xFF
|
||||
|
||||
|
||||
#define BT_CONFIG_BLE BIT(0)
|
||||
#define BT_CONFIG_SPP BIT(1)
|
||||
|
||||
typedef enum {
|
||||
BT_3TH_EVENT_COMMON_INIT,
|
||||
BT_3TH_EVENT_COMMON_BLE_STATUS,
|
||||
BT_3TH_EVENT_COMMON_SPP_STATUS,
|
||||
|
||||
BT_3TH_EVENT_RCSP_DEV_SELECT = 100,
|
||||
|
||||
|
||||
|
||||
|
||||
BT_3TH_EVENT_DUEROS_CONNECT = 200,
|
||||
|
||||
|
||||
} BT_3TH_EVENT_TYPE;
|
||||
|
||||
enum {
|
||||
RCSP_BLE,
|
||||
RCSP_SPP,
|
||||
};
|
||||
|
||||
|
||||
typedef struct __BT_3TH_USER_CB {
|
||||
int type;
|
||||
int bt_config;
|
||||
JL_PRO_CB bt_3th_handler;
|
||||
void (*BT_3TH_event_handler)(u16 opcode, u8 *packet, int size);
|
||||
void (*BT_3TH_data_handler)(u8 *packet, int size);
|
||||
int (*BT_3TH_spp_state_specific)(u8 type);
|
||||
} BT_3TH_USER_CB;
|
||||
|
||||
typedef struct __BT_3TH_PROTOCOL_CB {
|
||||
int type;
|
||||
void (*BT_3TH_type_dev_select)(u8 type);
|
||||
void (*resume)(void);
|
||||
void (*recieve)(void *, void *, u16);
|
||||
} BT_3TH_PROTOCOL_CB;
|
||||
|
||||
int btstack_3th_protocol_user_init(BT_3TH_USER_CB *protocol_callback);
|
||||
int btstack_3th_protocol_lib_init(BT_3TH_PROTOCOL_CB *protocol_lib_callback);
|
||||
|
||||
JL_PRO_CB *bt_3th_get_spp_callback(void);
|
||||
void bt_3th_set_spp_callback_priv(void *priv);
|
||||
JL_PRO_CB *bt_3th_get_ble_callback(void);
|
||||
void bt_3th_set_ble_callback_priv(void *priv);
|
||||
void bt_3th_dev_type_spp(void);
|
||||
void bt_3th_type_dev_select(u8 type);
|
||||
u8 bt_3th_get_cur_bt_channel_sel(void);
|
||||
void bt_3th_spp_state_handle(u8 type);
|
||||
void bt_3th_event_send_to_user(u16 opcode, u8 *packet, int size);
|
||||
void bt_3th_data_send_to_user(u8 *packet, int size);
|
||||
#endif// __BTSTACK_3TH_PROTOCAL_H__
|
||||
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
#ifndef __SPP_CONFIG_H__
|
||||
#define __SPP_CONFIG_H__
|
||||
|
||||
#include "typedef.h"
|
||||
|
||||
bool bt_3th_spp_fw_ready(void *priv);
|
||||
s32 bt_3th_spp_send(void *priv, void *data, u16 len);
|
||||
void bt_3th_spp_callback_set(void (*resume)(void), void (*recieve)(void *, void *, u16), void (*status)(u8));
|
||||
u8 bt_3th_get_jl_spp_status(void);
|
||||
void bt_3th_spp_status_callback(u8 status);
|
||||
int bt_3th_spp_data_send(void *priv, u8 *buf, u16 len);
|
||||
void bt_3th_spp_init(void);
|
||||
void bt_3th_spp_get_operation_table(void);
|
||||
|
||||
#endif//__SPP_CONFIG_H__
|
||||
@ -1,37 +0,0 @@
|
||||
#ifndef __SPP_USER_H__
|
||||
#define __SPP_USER_H__
|
||||
|
||||
#include "typedef.h"
|
||||
|
||||
extern void (*spp_state_cbk)(u8 state);
|
||||
extern void (*spp_recieve_cbk)(void *priv, u8 *buf, u16 len);
|
||||
extern void user_spp_data_handler(u8 packet_type, u16 ch, u8 *packet, u16 size);
|
||||
|
||||
struct spp_operation_t {
|
||||
int(*disconnect)(void *priv);
|
||||
int(*send_data)(void *priv, void *buf, u16 len);
|
||||
int(*regist_wakeup_send)(void *priv, void *cbk);
|
||||
int(*regist_recieve_cbk)(void *priv, void *cbk);
|
||||
int(*regist_state_cbk)(void *priv, void *cbk);
|
||||
int(*busy_state)(void);
|
||||
};
|
||||
|
||||
enum {
|
||||
SPP_USER_ERR_NONE = 0x0,
|
||||
SPP_USER_ERR_SEND_BUFF_BUSY,
|
||||
SPP_USER_ERR_SEND_OVER_LIMIT,
|
||||
SPP_USER_ERR_SEND_FAIL,
|
||||
};
|
||||
|
||||
enum {
|
||||
SPP_USER_ST_NULL = 0x0,
|
||||
SPP_USER_ST_CONNECT,
|
||||
SPP_USER_ST_DISCONN,
|
||||
SPP_USER_ST_WAIT_DISC,
|
||||
SPP_USER_ST_CONNECT_OTA,
|
||||
SPP_USER_ST_DISCONN_OTA,
|
||||
};
|
||||
|
||||
void spp_get_operation_table(struct spp_operation_t **interface_pt);
|
||||
|
||||
#endif//__SPP_USER_H__
|
||||
Reference in New Issue
Block a user