Go to the source code of this file.
◆ usbhw_disable_manual_interrupt()
void usbhw_disable_manual_interrupt |
( |
int |
m | ) |
|
This function disables the manual interrupt (Endpont8 is the alias of endpoint0)
- Parameters
-
[in] | m | - the irq mode needs to set |
- Returns
- none
◆ usbhw_enable_manual_interrupt()
void usbhw_enable_manual_interrupt |
( |
int |
m | ) |
|
This function enable the manual interrupt.
- Parameters
-
[in] | m | - the irq mode needs to set |
- Returns
- none
◆ usbhw_write_ep()
void usbhw_write_ep |
( |
unsigned int |
ep, |
|
|
unsigned char * |
data, |
|
|
int |
len |
|
) |
| |
This function sends a bulk of data to host via the specified endpoint.
- Parameters
-
[in] | ep | - the number of the endpoint |
[in] | data | - pointer to the data need to send |
[in] | len | - length in byte of the data need to send |
- Returns
- none
◆ usbhw_write_ctrl_ep_u16()
void usbhw_write_ctrl_ep_u16 |
( |
unsigned short |
v | ) |
|
This function sends two bytes data to host via the control endpoint (handy help function)
- Parameters
-
[in] | v | - the two bytes data need to send |
- Returns
- none
◆ usbhw_read_ctrl_ep_u16()
unsigned short usbhw_read_ctrl_ep_u16 |
( |
void |
| ) |
|
This function reads two bytes data from host via the control endpoint.
- Parameters
-
- Returns
- the two bytes data read from the control endpoint