usbhw_i.h File Reference

Go to the source code of this file.

Functions

static void usbhw_reset_ctrl_ep_ptr (void)
 This function servers to reset the pointer of control Endpoint. More...
 
static unsigned int usbhw_get_ctrl_ep_irq (void)
 This function servers to get the irq status of control Endpoint. More...
 
static void usbhw_clr_ctrl_ep_irq (int ep)
 This function servers to clear the irq status of control Endpoint. More...
 
static void usbhw_write_ctrl_ep_ctrl (unsigned char data)
 This function servers to set the value of control Endpoint. More...
 
static unsigned char usbhw_read_ctrl_ep_data (void)
 This function servers to read the data of control Endpoint. More...
 
static void usbhw_write_ctrl_ep_data (unsigned char data)
 This function servers to write the data of control Endpoint. More...
 
static int usbhw_is_ctrl_ep_busy (void)
 This function servers to determine whether control Endpoint is busy. More...
 
static void usbhw_reset_ep_ptr (unsigned int ep)
 This function servers to reset the pointer of Endpoint. More...
 
static unsigned int usbhw_get_eps_irq (void)
 This function servers to get the irq status of Endpoint. More...
 
static void usbhw_clr_eps_irq (int ep)
 This function servers to clear the irq status of Endpoint. More...
 
static unsigned char usbhw_read_ep_data (unsigned int ep)
 This function servers to read the data of Endpoint. More...
 
static void usbhw_write_ep_data (unsigned int ep, unsigned char data)
 This function servers to write the data of Endpoint. More...
 
static unsigned int usbhw_is_ep_busy (unsigned int ep)
 This function servers to determine whether Endpoint is busy. More...
 
static void usbhw_data_ep_ack (unsigned int ep)
 This function servers to set the specified data EndPoint to ack. More...
 
static void usbhw_data_ep_stall (unsigned int ep)
 This function servers to set the specified data EndPoint to stall. More...
 
static void usbhw_set_printer_threshold (unsigned char th)
 This function servers to set the threshold of printer. More...
 

Function Documentation

◆ usbhw_reset_ctrl_ep_ptr()

static void usbhw_reset_ctrl_ep_ptr ( void  )
inlinestatic

This function servers to reset the pointer of control Endpoint.

Parameters
[in]data- the value of control Endpoint
Returns
none.

◆ usbhw_get_ctrl_ep_irq()

static unsigned int usbhw_get_ctrl_ep_irq ( void  )
inlinestatic

This function servers to get the irq status of control Endpoint.

Parameters
[in]none.
Returns
none.

◆ usbhw_clr_ctrl_ep_irq()

static void usbhw_clr_ctrl_ep_irq ( int  ep)
inlinestatic

This function servers to clear the irq status of control Endpoint.

Parameters
[in]ep- select the Endpoint
Returns
none.

◆ usbhw_write_ctrl_ep_ctrl()

static void usbhw_write_ctrl_ep_ctrl ( unsigned char  data)
inlinestatic

This function servers to set the value of control Endpoint.

Parameters
[in]data- the value of control Endpoint
Returns
none.

◆ usbhw_read_ctrl_ep_data()

static unsigned char usbhw_read_ctrl_ep_data ( void  )
inlinestatic

This function servers to read the data of control Endpoint.

Parameters
[in]none.
Returns
the value of control Endpoint

◆ usbhw_write_ctrl_ep_data()

static void usbhw_write_ctrl_ep_data ( unsigned char  data)
inlinestatic

This function servers to write the data of control Endpoint.

Parameters
[in]data- the value of control Endpoint
Returns
none

◆ usbhw_is_ctrl_ep_busy()

static int usbhw_is_ctrl_ep_busy ( void  )
inlinestatic

This function servers to determine whether control Endpoint is busy.

Parameters
[in]none.
Returns
1: busy; 0: not busy.

◆ usbhw_reset_ep_ptr()

static void usbhw_reset_ep_ptr ( unsigned int  ep)
inlinestatic

This function servers to reset the pointer of Endpoint.

Parameters
[in]data- the value of control Endpoint
Returns
none.

◆ usbhw_get_eps_irq()

static unsigned int usbhw_get_eps_irq ( void  )
inlinestatic

This function servers to get the irq status of Endpoint.

Parameters
[in]none.
Returns
none.

◆ usbhw_clr_eps_irq()

static void usbhw_clr_eps_irq ( int  ep)
inlinestatic

This function servers to clear the irq status of Endpoint.

Parameters
[in]ep- select the Endpoint
Returns
none.

◆ usbhw_read_ep_data()

static unsigned char usbhw_read_ep_data ( unsigned int  ep)
inlinestatic

This function servers to read the data of Endpoint.

Parameters
[in]none.
Returns
the value of Endpoint

◆ usbhw_write_ep_data()

static void usbhw_write_ep_data ( unsigned int  ep,
unsigned char  data 
)
inlinestatic

This function servers to write the data of Endpoint.

Parameters
[in]data- the value of Endpoint
Returns
none

◆ usbhw_is_ep_busy()

static unsigned int usbhw_is_ep_busy ( unsigned int  ep)
inlinestatic

This function servers to determine whether Endpoint is busy.

Parameters
[in]none.
Returns
1: busy; 0: not busy.

◆ usbhw_data_ep_ack()

static void usbhw_data_ep_ack ( unsigned int  ep)
inlinestatic

This function servers to set the specified data EndPoint to ack.

Parameters
[in]ep- select the data EndPoint.
Returns
none.

◆ usbhw_data_ep_stall()

static void usbhw_data_ep_stall ( unsigned int  ep)
inlinestatic

This function servers to set the specified data EndPoint to stall.

Parameters
[in]ep- select the data EndPoint.
Returns
none.

◆ usbhw_set_printer_threshold()

static void usbhw_set_printer_threshold ( unsigned char  th)
inlinestatic

This function servers to set the threshold of printer.

Parameters
[in]th- set the threshold for printer
Returns
none.