#include <device.h>
Data Fields | |
usbvirt_control_request_handler_t * | control |
Array of control handlers. | |
usbvirt_on_data_from_device_t | data_in [USBVIRT_ENDPOINT_MAX] |
Callbacks for data from device. | |
usbvirt_on_data_to_device_t | data_out [USBVIRT_ENDPOINT_MAX] |
Callbacks for data to device. | |
void(* | state_changed )(usbvirt_device_t *dev, usbvirt_device_state_t old_state, usbvirt_device_state_t new_state) |
Callback when device changes state. |
Definition at line 152 of file device.h.
usbvirt_on_data_from_device_t data_in[USBVIRT_ENDPOINT_MAX] |
usbvirt_on_data_to_device_t data_out[USBVIRT_ENDPOINT_MAX] |
void(* state_changed)(usbvirt_device_t *dev, usbvirt_device_state_t old_state, usbvirt_device_state_t new_state) |
Callback when device changes state.
The value of state
attribute of dev
device is not defined during call of this function.
dev | The virtual USB device. | |
old_state | Old device state. | |
new_state | New device state. |