Files
luban-lite/bsp/peripheral/bt/bt8858a/hid_control.h

31 lines
595 B
C
Raw Normal View History

2025-01-08 19:12:06 +08:00
#ifndef __HID_CONTROL_H__
#define __HID_CONTROL_H__
#include "bt_api.h"
typedef enum {
TP_STATUS_NONE = 0,
TP_STATUS_UP,
TP_STATUS_DOWN,
TP_STATUS_MOVE,
}TP_STATUS_T;
typedef struct {
u16 x;
u16 y;
}coordinate_t;
// typedef struct {
// coordinate_t pointer;
// TP_STATUS_T status;
// }action_t;
int bt_hid_device_init();
int bt_hid_device_deinit();
int bt_hid_set_resolution(coordinate_t *device_resolu, coordinate_t *host_resolu);
int bt_hid_set_touch_event(int status, u16 x_device, u16 y_device);
// int bt_hid_set_touch_event(action_t *action);
#endif