?? hw_usb.h
字號:
#define USB_RXFUNCADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR1
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR1_MULTTRAN 0x00000080 // Multiple Translators.
#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address.
#define USB_RXHUBADDR1_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT1
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port.
#define USB_RXHUBPORT1_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address.
#define USB_TXFUNCADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR2
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR2_MULTTRAN 0x00000080 // Multiple Translators.
#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address.
#define USB_TXHUBADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT2
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port.
#define USB_TXHUBPORT2_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address.
#define USB_RXFUNCADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR2
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR2_MULTTRAN 0x00000080 // Multiple Translators.
#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address.
#define USB_RXHUBADDR2_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT2
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port.
#define USB_RXHUBPORT2_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
// register.
//
//*****************************************************************************
#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address.
#define USB_TXFUNCADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBADDR3
// register.
//
//*****************************************************************************
#define USB_TXHUBADDR3_MULTTRAN 0x00000080 // Multiple Translators.
#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address.
#define USB_TXHUBADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXHUBPORT3
// register.
//
//*****************************************************************************
#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port.
#define USB_TXHUBPORT3_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
// register.
//
//*****************************************************************************
#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address.
#define USB_RXFUNCADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBADDR3
// register.
//
//*****************************************************************************
#define USB_RXHUBADDR3_MULTTRAN 0x00000080 // Multiple Translators.
#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address.
#define USB_RXHUBADDR3_ADDR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXHUBPORT3
// register.
//
//*****************************************************************************
#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port.
#define USB_RXHUBPORT3_PORT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_CSRL0 register.
//
//*****************************************************************************
#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout.
#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear.
#define USB_CSRL0_STATUS 0x00000040 // Status Packet.
#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear.
#define USB_CSRL0_REQPKT 0x00000020 // Request Packet.
#define USB_CSRL0_STALL 0x00000020 // Send Stall.
#define USB_CSRL0_SETEND 0x00000010 // Setup End.
#define USB_CSRL0_ERROR 0x00000010 // Error.
#define USB_CSRL0_DATAEND 0x00000008 // Data End.
#define USB_CSRL0_SETUP 0x00000008 // Setup Packet.
#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled.
#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready.
#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready.
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_CSRH0 register.
//
//*****************************************************************************
#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable.
#define USB_CSRH0_DT 0x00000002 // Data Toggle.
#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO.
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_COUNT0 register.
//
//*****************************************************************************
#define USB_COUNT0_COUNT_M 0x0000007F // Count.
#define USB_COUNT0_COUNT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TYPE0 register.
//
//*****************************************************************************
#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed.
#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_NAKLMT register.
//
//*****************************************************************************
#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit.
#define USB_NAKLMT_NAKLMT_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
//
//*****************************************************************************
#define USB_TXMAXP1_MULT_M 0x0000F800 // Multiplier.
#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload.
#define USB_TXMAXP1_MULT_S 11
#define USB_TXMAXP1_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
//
//*****************************************************************************
#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
#define USB_TXCSRL1_INCTX 0x00000080 // Incomplete Transmit.
#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle.
#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled.
#define USB_TXCSRL1_STALL 0x00000010 // Send Stall.
#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet.
#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO.
#define USB_TXCSRL1_ERROR 0x00000004 // Error.
#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun.
#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty.
#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready.
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
//
//*****************************************************************************
#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set.
#define USB_TXCSRH1_ISO 0x00000040 // ISO.
#define USB_TXCSRH1_MODE 0x00000020 // Mode.
#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable.
#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle.
#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode.
#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable.
#define USB_TXCSRH1_DT 0x00000001 // Data Toggle.
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
//
//*****************************************************************************
#define USB_RXMAXP1_MULT_M 0x0000F800 // Multiplier.
#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload.
#define USB_RXMAXP1_MULT_S 11
#define USB_RXMAXP1_MAXLOAD_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
//
//*****************************************************************************
#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle.
#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled.
#define USB_RXCSRL1_STALL 0x00000020 // Send Stall.
#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet.
#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO.
#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error.
#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout.
#define USB_RXCSRL1_OVER 0x00000004 // Overrun.
#define USB_RXCSRL1_ERROR 0x00000004 // Error.
#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full.
#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready.
//*****************************************************************************
//
// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
//
//*****************************************************************************
#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -