Configuration macros for endpoints
[USB low level drivers]

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 160 of file usb_drv.h.

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

Definition at line 161 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 162 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 167 of file usb_drv.h.

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

Definition at line 168 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 169 of file usb_drv.h.


Generated on Fri Sep 11 14:25:30 2009 for ATMEL by  doxygen 1.5.3