Added vendor functions to embedded application, data transferred by usb channel seria...
[lincan.git] / embedded / app / usbcan / usb / usb_vend.h
1 #ifndef USBCAN_VENDOR
2 #define USBCAN_VENDOR
3
4 #include <usb/usb.h>
5
6 #define USBCAN_VENDOR_BAUD_RATE_SET     (1)
7 #define USBCAN_VENDOR_BAUD_RATE_STATUS  (2)
8 #define USBCAN_VENDOR_SET_BTREGS        (3)
9 #define USBCAN_VENDOR_CHECK_TX_STAT     (4)
10 #define USBCAN_VENDOR_START_CHIP        (5)
11 #define USBCAN_VENDOR_STOP_CHIP (6)
12 #define USBCAN_VENDOR_EXT_MASK_SET      (7)
13 #define USBCAN_VENDOR_EXT_MASK_STATUS   (8)
14
15 int usbcan_vendor(usb_device_t *udev);
16
17 int set_ext_mask_complete_fnc(struct usb_ep_t *ep, int status);
18
19 #endif /* USBCAN_VENDOR */