RAFW Flexible Software Package Documentation  Release v2.0.1

 

Detailed Description

USB configuration settings.

Macros

#define dg_configUSB_SUSPEND_MODE
 Controls how the system will behave when the USB i/f is suspended. More...
 
#define dg_configUSB_DMA_SUPPORT
 Enable the DMA for reading/writing data to USB EP.
By default the USB DMA is not enabled.
To enable the DMA for the USB, set this the macro to value (1) in the custom_config_xxx.h file.
When the USB DMA is enabled, the default end points with DMA are EP1 and EP2.
It is possible only one TX and one RX end point to use DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the end points using DMA, set in the the custom_config_xxx.h file the desired values for the macros: More...
 
#define dg_configUSB_TX_DMA_EP
 The USB TX end point (D–>H) to enable the DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the TX end point using DMA, set in the the custom_config_xxx.h file the desired value for this macros. More...
 
#define dg_configUSB_RX_DMA_EP
 The USB RX end point (D–>H) to enable the DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the RX end point using DMA, set in the the custom_config_xxx.h file the desired value for this macros. More...
 

Macro Definition Documentation

◆ dg_configUSB_SUSPEND_MODE

#define dg_configUSB_SUSPEND_MODE

Controls how the system will behave when the USB i/f is suspended.

When the USB Node is suspended by the USB Host, the application may have to act in order to comply with the USB specification (consume less than 2.5mA). The available options are: 0: do nothing 1: pause system clock => the LP clock is stopped and only VBUS and USB irqs are handled 2: pause application => The system is not paused but the application must stop all timers and make sure all tasks are blocked.

Both in modes 1 and 2, the application must make sure that all external peripherals are either powered off or placed in the lowest power consumption mode.

◆ dg_configUSB_DMA_SUPPORT

#define dg_configUSB_DMA_SUPPORT

Enable the DMA for reading/writing data to USB EP.
By default the USB DMA is not enabled.
To enable the DMA for the USB, set this the macro to value (1) in the custom_config_xxx.h file.
When the USB DMA is enabled, the default end points with DMA are EP1 and EP2.
It is possible only one TX and one RX end point to use DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the end points using DMA, set in the the custom_config_xxx.h file the desired values for the macros:

dg_configUSB_TX_DMA_EP
valid values: 1,3,5
default value: 1
dg_configUSB_RX_DMA_EP
valid values: 2,4,6
default value: 2

◆ dg_configUSB_TX_DMA_EP

#define dg_configUSB_TX_DMA_EP

The USB TX end point (D–>H) to enable the DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the TX end point using DMA, set in the the custom_config_xxx.h file the desired value for this macros.

dg_configUSB_TX_DMA_EP
valid values: 1,3,5
default value: 1

◆ dg_configUSB_RX_DMA_EP

#define dg_configUSB_RX_DMA_EP

The USB RX end point (D–>H) to enable the DMA.
User can choose a different pair of end points to use the DMA as needed according to app requirements.
To change the RX end point using DMA, set in the the custom_config_xxx.h file the desired value for this macros.

dg_configUSB_RX_DMA_EP
valid values: 2,4,6
default value: 2