- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# Configuration macros for endpoints
[USB low level drivers module]

Collaboration diagram for Configuration macros for endpoints:

List of the standard macro used to configure pipes and endpoints. More...

## Defines
#define | Usb_build_ep_config0(type, dir, nyet) ((type<<6) | (nyet<<1) | (dir))
#define | Usb_build_ep_config1(size, bank) ((size<<4) | (bank<<2) )
#define | usb_configure_endpoint(num, type, dir, size, bank, nyet)
#define | Host_build_pipe_config0(type, token, ep_num) ((type<<6) | (token<<4) | (ep_num))
#define | Host_build_pipe_config1(size, bank) ((size<<4) | (bank<<2) )
#define | host_configure_pipe(num, type, token, ep_num, size, bank, freq)

## Detailed Description

List of the standard macro used to configure pipes and endpoints.

## Define Documentation

#define Usb_build_ep_config0 | ( | type,
|  | dir,
|  | nyet |  | ) | ((type<<6) | (nyet<<1) | (dir))

Definition at line 131 of file usb_drv.h.

#define Usb_build_ep_config1 | ( | size,
|  | bank |  | ) | ((size<<4) | (bank<<2) )

Definition at line 132 of file usb_drv.h.

#define usb_configure_endpoint | ( | num,
|  | type,
|  | dir,
|  | size,
|  | bank,
|  | nyet |  | ) |

Value:

    ( Usb_select_endpoint(num),              \
                                          usb_config_ep(Usb_build_ep_config0(type, dir, nyet),\
                                                        Usb_build_ep_config1(size, bank)    ))

Definition at line 133 of file usb_drv.h.

Referenced by usb_init_device(), and usb_user_endpoint_init().

#define Host_build_pipe_config0 | ( | type,
|  | token,
|  | ep_num |  | ) | ((type<<6) | (token<<4) | (ep_num))

Definition at line 138 of file usb_drv.h.

#define Host_build_pipe_config1 | ( | size,
|  | bank |  | ) | ((size<<4) | (bank<<2) )

Definition at line 139 of file usb_drv.h.

#define host_configure_pipe | ( | num,
|  | type,
|  | token,
|  | ep_num,
|  | size,
|  | bank,
|  | freq |  | ) |

Value:

    ( Host_select_pipe(num),              \
                                          Host_set_interrupt_frequency(freq), \
                                          host_config_pipe(Host_build_pipe_config0(type, token, ep_num),\
                                                           Host_build_pipe_config1(size, bank)    ))

Definition at line 140 of file usb_drv.h.