Changeset 96bfe76 in mainline for uspace/lib/usb/include/usb/classes/hidparser.h
- Timestamp:
- 2011-03-25T15:18:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c0f158
- Parents:
- b53d3b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hidparser.h
rb53d3b7 r96bfe76 207 207 const usb_hid_report_in_callbacks_t *callbacks, void *arg); 208 208 209 int usb_hid_report_input_length(const usb_hid_report_parser_t *parser,209 size_t usb_hid_report_input_length(const usb_hid_report_parser_t *parser, 210 210 usb_hid_report_path_t *path, int flags); 211 211 … … 223 223 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, int32_t tag, int32_t data); 224 224 int usb_hid_report_compare_usage_path(usb_hid_report_path_t *report_path, usb_hid_report_path_t *path, int flags); 225 int usb_hid_report_path_clone(usb_hid_report_path_t *new_usage_path, usb_hid_report_path_t *usage_path); 226 227 228 // output 229 // - funkce co vrati cesty poli v output reportu 230 // - funkce co pro danou cestu nastavi data 231 // - finalize 232 225 usb_hid_report_path_t *usb_hid_report_path_clone(usb_hid_report_path_t *usage_path); 226 227 228 // output API 229 /** Allocates output report buffer*/ 230 uint8_t *usb_hid_report_output(usb_hid_report_parser_t *parser); 231 /** Frees output report buffer*/ 232 void usb_hid_report_output_free(uint8_t *output); 233 234 /** Returns size of output for given usage path */ 235 size_t usb_hid_report_output_size(usb_hid_report_parser_t *parser, 236 usb_hid_report_path_t *path, int flags); 237 /** Updates the output report buffer by translated given data */ 238 int usb_hid_report_output_translate(usb_hid_report_parser_t *parser, 239 usb_hid_report_path_t *path, int flags, 240 uint8_t *buffer, size_t size, 241 int32_t *data, size_t data_size); 233 242 #endif 234 243 /**
Note:
See TracChangeset
for help on using the changeset viewer.