First Commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// Created by awalol on 2026/3/4.
|
||||
//
|
||||
|
||||
#ifndef DS5_BRIDGE_BT_H
|
||||
#define DS5_BRIDGE_BT_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
enum CHANNEL_TYPE {
|
||||
INTERRUPT,
|
||||
CONTROL
|
||||
};
|
||||
|
||||
typedef void (*bt_data_callback_t)(CHANNEL_TYPE channel, uint8_t *data, uint16_t len);
|
||||
|
||||
int bt_init();
|
||||
void bt_register_data_callback(bt_data_callback_t callback);
|
||||
void bt_send_packet(uint8_t *data, uint16_t len);
|
||||
void bt_send_control(uint8_t *data, uint16_t len);
|
||||
void bt_write(uint8_t* data,uint16_t len);
|
||||
uint8_t* get_feature_data(uint8_t reportId,uint16_t len);
|
||||
void init_feature();
|
||||
|
||||
#endif //DS5_BRIDGE_BT_H
|
||||
Reference in New Issue
Block a user