87         void (*callback) (void);
    91         bool(*over_under_run) (void);
    96 #define  Udd_setup_is_in()       \    97       (USB_REQ_DIR_IN == (udd_g_ctrlreq.req.bmRequestType & USB_REQ_DIR_MASK))   100 #define  Udd_setup_is_out()      \   101       (USB_REQ_DIR_OUT == (udd_g_ctrlreq.req.bmRequestType & USB_REQ_DIR_MASK))   104 #define  Udd_setup_type()        \   105       (udd_g_ctrlreq.req.bmRequestType & USB_REQ_TYPE_MASK)   108 #define  Udd_setup_recipient()   \   109       (udd_g_ctrlreq.req.bmRequestType & USB_REQ_RECIP_MASK)   221 #if (USB_DEVICE_MAX_EP != 0)   233                 uint16_t MaxEndpointSize);
   240 void udd_ep_free(udd_ep_id_t ep);
   249 bool udd_ep_is_halted(udd_ep_id_t ep);
   262 bool udd_ep_set_halt(udd_ep_id_t ep);
   275 bool udd_ep_clear_halt(udd_ep_id_t ep);
   287 bool udd_ep_wait_stall_clear(udd_ep_id_t ep,
   314 bool udd_ep_run(udd_ep_id_t ep, 
bool b_shortpacket,
   326 void udd_ep_abort(udd_ep_id_t ep);
 void udd_test_mode_packet(void)
 
void udd_attach(void)
Attach device to the bus when possible. 
 
Common API for USB Device Interface. 
 
void udd_disable(void)
Disables the USB Device mode. 
 
udd_ep_status_t
Endpoint transfer status Returned in parameters of callback register via udd_ep_run routine...
 
USB protocol definitions. 
 
void udd_test_mode_se0_nak(void)
 
A USB Device SETUP request. 
 
Global variable to give and record information of the setup request management. 
 
void udd_test_mode_k(void)
 
bool udc_process_setup(void)
Decodes and manages a setup request. 
 
void udd_send_remotewakeup(void)
The USB driver sends a resume signal called Upstream Resume. 
 
bool udd_is_high_speed(void)
Test whether the USB Device Controller is running at high speed or not. 
 
void udd_enable(void)
Enables the USB Device mode. 
 
void udd_set_address(uint8_t address)
Changes the USB address of device. 
 
uint8_t udd_ep_id_t
Endpoint identifier. 
 
void udc_reset(void)
Reset the UDC. 
 
void udc_sof_notify(void)
To signal that a SOF is occurred. 
 
void(* udd_callback_trans_t)(udd_ep_status_t status, iram_size_t nb_transfered, udd_ep_id_t ep)
End of transfer callback function type. Registered by routine udd_ep_run() Callback called by USB int...
 
uint16_t udd_get_frame_number(void)
Returns the current start of frame number. 
 
void(* udd_callback_halt_cleared_t)(void)
End of halt callback function type. Registered by routine udd_ep_wait_stall_clear() Callback called w...
 
uint16_t udd_get_micro_frame_number(void)
Returns the current micro start of frame number. 
 
unsigned char bool
Boolean. 
 
bool udd_include_vbus_monitoring(void)
Authorizes the VBUS event. 
 
void udd_detach(void)
Detaches the device from the bus. 
 
uint8_t udd_getaddress(void)
Returns the USB address of device. 
 
udd_ctrl_request_t udd_g_ctrlreq
Global variable to give and record information about setup request management. 
 
void udd_set_setup_payload(uint8_t *payload, uint16_t payload_size)
Load setup payload. 
 
uint16_t payload_size
Size of buffer to send or fill, and content the number of byte transfered. 
 
void udd_test_mode_j(void)