| NUC472_NUC442_BSP V3.03.003 The Board Support Package for NUC472/NUC442

Modules | Macros
USBD Exported Macros
NUC472/NUC442 Device Driver » USBD Driver » USBD Exported Constants » USBD Exported Struct
Collaboration diagram for USBD Exported Macros:

## Modules
| USBD Exported Functions

## Macros
#define | USBD_ENABLE_USB()
#define | USBD_DISABLE_USB()
#define | USBD_ENABLE_PHY()
#define | USBD_DISABLE_PHY()
#define | USBD_SET_SE0()
#define | USBD_CLR_SE0()
#define | USBD_SET_ADDR(addr)
#define | USBD_GET_ADDR()
#define | USBD_ENABLE_USB_INT(intr)
#define | USBD_ENABLE_BUS_INT(intr)
#define | USBD_GET_BUS_INT_FLAG()
#define | USBD_CLR_BUS_INT_FLAG(flag)
#define | USBD_ENABLE_CEP_INT(intr)
#define | USBD_CLR_CEP_INT_FLAG(flag)
#define | USBD_SET_CEP_STATE(flag)
#define | USBD_START_CEP_IN(size)
#define | USBD_SET_MAX_PAYLOAD(ep, size)
#define | USBD_ENABLE_EP_INT(ep, intr)
#define | USBD_GET_EP_INT_FLAG(ep)
#define | USBD_CLR_EP_INT_FLAG(ep, flag)
#define | USBD_SET_DMA_LEN(len)
#define | USBD_SET_DMA_ADDR(addr)
#define | USBD_SET_DMA_READ(epnum)
#define | USBD_SET_DMA_WRITE(epnum)
#define | USBD_ENABLE_DMA()
#define | USBD_IS_ATTACHED()

## Detailed Description

## Macro Definition Documentation

## ◆ USBD_CLR_BUS_INT_FLAG

#define USBD_CLR_BUS_INT_FLAG | ( |  | flag | ) |

Clear Bus interrupt flag

Definition at line 198 of file usbd.h.

## ◆ USBD_CLR_CEP_INT_FLAG

#define USBD_CLR_CEP_INT_FLAG | ( |  | flag | ) |

Clear CEP interrupt flag

Definition at line 200 of file usbd.h.

## ◆ USBD_CLR_EP_INT_FLAG

#define USBD_CLR_EP_INT_FLAG | ( |  | ep,
|  |  | flag
| ) |  |

Clear EPx interrupt flag

Definition at line 206 of file usbd.h.

## ◆ USBD_CLR_SE0

#define USBD_CLR_SE0 | ( |  | ) |

Disable SE0

Definition at line 192 of file usbd.h.

## ◆ USBD_DISABLE_PHY

#define USBD_DISABLE_PHY | ( |  | ) |

Disable PHY

Definition at line 190 of file usbd.h.

## ◆ USBD_DISABLE_USB

#define USBD_DISABLE_USB | ( |  | ) |

Disable USB

Definition at line 188 of file usbd.h.

## ◆ USBD_ENABLE_BUS_INT

#define USBD_ENABLE_BUS_INT | ( |  | intr | ) |

Enable BUS Interrupt

Definition at line 196 of file usbd.h.

## ◆ USBD_ENABLE_CEP_INT

#define USBD_ENABLE_CEP_INT | ( |  | intr | ) |

Enable CEP Interrupt

Definition at line 199 of file usbd.h.

## ◆ USBD_ENABLE_DMA

#define USBD_ENABLE_DMA | ( |  | ) |

Enable DMA transfer

Definition at line 211 of file usbd.h.

## ◆ USBD_ENABLE_EP_INT

#define USBD_ENABLE_EP_INT | ( |  | ep,
|  |  | intr
| ) |  |

Enable EPx Interrupt

Definition at line 204 of file usbd.h.

## ◆ USBD_ENABLE_PHY

#define USBD_ENABLE_PHY | ( |  | ) |

Enable PHY

Definition at line 189 of file usbd.h.

## ◆ USBD_ENABLE_USB

#define USBD_ENABLE_USB | ( |  | ) |

Enable USB

Definition at line 187 of file usbd.h.

## ◆ USBD_ENABLE_USB_INT

#define USBD_ENABLE_USB_INT | ( |  | intr | ) |

Enable USB Interrupt

Definition at line 195 of file usbd.h.

## ◆ USBD_GET_ADDR

#define USBD_GET_ADDR | ( |  | ) |

Get USB address

Definition at line 194 of file usbd.h.

## ◆ USBD_GET_BUS_INT_FLAG

#define USBD_GET_BUS_INT_FLAG | ( |  | ) |

Clear Bus interrupt flag

Definition at line 197 of file usbd.h.

## ◆ USBD_GET_EP_INT_FLAG

#define USBD_GET_EP_INT_FLAG | ( |  | ep | ) |

Get EPx interrupt flag

Definition at line 205 of file usbd.h.

## ◆ USBD_IS_ATTACHED

#define USBD_IS_ATTACHED | ( |  | ) |

Check cable connect state

Definition at line 212 of file usbd.h.

## ◆ USBD_SET_ADDR

#define USBD_SET_ADDR | ( |  | addr | ) |

Set USB address

Definition at line 193 of file usbd.h.

## ◆ USBD_SET_CEP_STATE

#define USBD_SET_CEP_STATE | ( |  | flag | ) |

Set CEP state

Definition at line 201 of file usbd.h.

## ◆ USBD_SET_DMA_ADDR

#define USBD_SET_DMA_ADDR | ( |  | addr | ) |

Set DMA transfer address

Definition at line 208 of file usbd.h.

## ◆ USBD_SET_DMA_LEN

#define USBD_SET_DMA_LEN | ( |  | len | ) |

Set DMA transfer length

Definition at line 207 of file usbd.h.

## ◆ USBD_SET_DMA_READ

#define USBD_SET_DMA_READ | ( |  | epnum | ) |

Set DMA transfer type to read

Definition at line 209 of file usbd.h.

## ◆ USBD_SET_DMA_WRITE

#define USBD_SET_DMA_WRITE | ( |  | epnum | ) |

Set DMA transfer type to write

Definition at line 210 of file usbd.h.

## ◆ USBD_SET_MAX_PAYLOAD

#define USBD_SET_MAX_PAYLOAD | ( |  | ep,
|  |  | size
| ) |  |

Set EPx Maximum Packet Size

Definition at line 203 of file usbd.h.

## ◆ USBD_SET_SE0

#define USBD_SET_SE0 | ( |  | ) |

Enable SE0, Force USB PHY Transceiver to Drive SE0

Definition at line 191 of file usbd.h.

## ◆ USBD_START_CEP_IN

#define USBD_START_CEP_IN | ( |  | size | ) |

Start CEP IN Transfer

Definition at line 202 of file usbd.h.