VSF Documented
|
#include "../../vsf_input_cfg.h"
#include "service/vsf_service.h"
#include "hal/vsf_hal.h"
#include "../../vsf_input.h"
#include "./vsf_input_hid.h"
Data Structures | |
struct | vk_hid_desc_t |
Macros | |
#define | HID_LONG_ITEM(x) ((x) == 0xFE) |
#define | HID_ITEM_SIZE(x) ((((x) & 0x03) == 3) ? 4 : (x) & 0x03) |
#define | HID_ITEM_TYPE(x) (((x) >> 2) & 0x03) |
#define | HID_ITEM_TYPE_MAIN 0 |
#define | HID_ITEM_TYPE_GLOBAL 1 |
#define | HID_ITEM_TYPE_LOCAL 2 |
#define | HID_ITEM_TAG(x) ((x) & 0xFC) |
#define | HID_ITEM_INPUT 0x80 |
#define | HID_ITEM_OUTPUT 0x90 |
#define | HID_ITEM_FEATURE 0xB0 |
#define | HID_ITEM_COLLECTION 0xA0 |
#define | HID_ITEM_END_COLLECTION 0xC0 |
#define | HID_ITEM_USAGE_PAGE 0x04 |
#define | HID_ITEM_LOGI_MINI 0x14 |
#define | HID_ITEM_LOGI_MAXI 0x24 |
#define | HID_ITEM_PHY_MINI 0x34 |
#define | HID_ITEM_PHY_MAXI 0x44 |
#define | HID_ITEM_UNIT_EXPT 0x54 |
#define | HID_ITEM_UNIT 0x64 |
#define | HID_ITEM_REPORT_SIZE 0x74 |
#define | HID_ITEM_REPORT_ID 0x84 |
#define | HID_ITEM_REPORT_COUNT 0x94 |
#define | HID_ITEM_PUSH 0xA4 |
#define | HID_ITEM_POP 0xB4 |
#define | HID_ITEM_USAGE 0x08 |
#define | HID_ITEM_USAGE_MIN 0x18 |
#define | HID_ITEM_USAGE_MAX 0x28 |
Typedefs | |
typedef struct vk_hid_desc_t | vk_hid_desc_t |
Functions | |
void | vsf_input_on_evt (vk_input_type_t type, vk_input_evt_t *evt) |
void | vsf_input_on_new_dev (vk_input_type_t type, void *dev) |
void | vsf_input_on_free_dev (vk_input_type_t type, void *dev) |
void | vsf_hid_on_new_dev (vk_input_hid_t *dev) |
void | vsf_hid_on_free_dev (vk_input_hid_t *dev) |
void | vsf_hid_on_report_input (vk_hid_evt_t *hid_evt) |
void | vsf_hid_parse_touch_screen (vk_hid_evt_t *hid_evt) |
void | vk_hid_new_dev (vk_input_hid_t *dev) |
void | vk_hid_free_dev (vk_input_hid_t *dev) |
uint_fast8_t | vk_hid_parse_desc (vk_input_hid_t *dev, uint8_t *desc_buf, uint_fast32_t len) |
void | vk_hid_process_input (vk_input_hid_t *dev, uint8_t *buf, uint_fast32_t len) |
#define HID_LONG_ITEM | ( | x | ) | ((x) == 0xFE) |
#define HID_ITEM_SIZE | ( | x | ) | ((((x) & 0x03) == 3) ? 4 : (x) & 0x03) |
#define HID_ITEM_TYPE | ( | x | ) | (((x) >> 2) & 0x03) |
#define HID_ITEM_TYPE_MAIN 0 |
#define HID_ITEM_TYPE_GLOBAL 1 |
#define HID_ITEM_TYPE_LOCAL 2 |
#define HID_ITEM_TAG | ( | x | ) | ((x) & 0xFC) |
#define HID_ITEM_INPUT 0x80 |
#define HID_ITEM_OUTPUT 0x90 |
#define HID_ITEM_FEATURE 0xB0 |
#define HID_ITEM_COLLECTION 0xA0 |
#define HID_ITEM_END_COLLECTION 0xC0 |
#define HID_ITEM_USAGE_PAGE 0x04 |
#define HID_ITEM_LOGI_MINI 0x14 |
#define HID_ITEM_LOGI_MAXI 0x24 |
#define HID_ITEM_PHY_MINI 0x34 |
#define HID_ITEM_PHY_MAXI 0x44 |
#define HID_ITEM_UNIT_EXPT 0x54 |
#define HID_ITEM_UNIT 0x64 |
#define HID_ITEM_REPORT_SIZE 0x74 |
#define HID_ITEM_REPORT_ID 0x84 |
#define HID_ITEM_REPORT_COUNT 0x94 |
#define HID_ITEM_PUSH 0xA4 |
#define HID_ITEM_POP 0xB4 |
#define HID_ITEM_USAGE 0x08 |
#define HID_ITEM_USAGE_MIN 0x18 |
#define HID_ITEM_USAGE_MAX 0x28 |
typedef struct vk_hid_desc_t vk_hid_desc_t |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
void vsf_hid_parse_touch_screen | ( | vk_hid_evt_t * | hid_evt | ) |
void vk_hid_new_dev | ( | vk_input_hid_t * | dev | ) |
void vk_hid_free_dev | ( | vk_input_hid_t * | dev | ) |
uint_fast8_t vk_hid_parse_desc | ( | vk_input_hid_t * | dev, |
uint8_t * | desc_buf, | ||
uint_fast32_t | len | ||
) |
void vk_hid_process_input | ( | vk_input_hid_t * | dev, |
uint8_t * | buf, | ||
uint_fast32_t | len | ||
) |