27 lines
427 B
C
27 lines
427 B
C
|
|
#ifndef BLINKY_USB_DEVICE_MODULE_H_
|
||
|
|
#define BLINKY_USB_DEVICE_MODULE_H_
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
enum usb_function {
|
||
|
|
USB_FUNCTION_HID = 0x01,
|
||
|
|
USB_FUNCTION_CDC_ACM = 0x02,
|
||
|
|
};
|
||
|
|
|
||
|
|
enum usb_device_state {
|
||
|
|
USB_DEVICE_STATE_DISCONNECTED,
|
||
|
|
USB_DEVICE_STATE_POWERED,
|
||
|
|
USB_DEVICE_STATE_ACTIVE,
|
||
|
|
USB_DEVICE_STATE_SUSPENDED,
|
||
|
|
};
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* BLINKY_USB_DEVICE_MODULE_H_ */
|