Contiki 2.5
usb-core.h
1 #ifndef __USB_CORE_H__YIKJDA7S1X__
2 #define __USB_CORE_H__YIKJDA7S1X__
3 
4 #include <stdint.h>
5 
6 struct USB_request_st usb_setup_buffer;
7 
8 void
9 usb_send_ctrl_response(const uint8_t *data, unsigned int len);
10 
11 void
12 usb_error_stall();
13 
14 void
15 usb_send_ctrl_status();
16 
17 typedef void (*usb_ctrl_data_callback)(uint8_t *data, unsigned int length);
18 
19 void
20 usb_get_ctrl_data(uint8_t *data, unsigned int length,
21  usb_ctrl_data_callback cb);
22 
23 #endif /* __USB_CORE_H__YIKJDA7S1X__ */