VS1005g Datasheet
10 VS1005 PERIPHERALS AND REGISTERS
USB_RDPTR Bits
Bits Description
Name
USB_RDPTR
9:0 Packet Read Pointer
This buffer marks the index position of the last word that the DSP has successfully read from
the receive packet buffer. DSP should control this register and update the position after each
packet it has read from the receive buffer. After reset this register is zero.
USB_WRPTR Bits
Name
Bits Description
USB_WRPTR
9:0 Packet Write Pointer
After a packet has been received from the PC, the USB hardware updates this pointer to the
receive buffer memory. USB_WRPTR is index location of the next free word location in the USB
receive buffer. When USB_RDPTR equals to USB_WRPTR, the packet input buffer is empty.
After reset this register is zero.
USB_UTMIR Bits
Name
Bits Description
USB_UTMIR_LSTATE
USB_UTMIR_CNT
15:14 USB bus line state
13:0 USB frame counter, master mode
USB_UTMIW Bits
Bits Description
Name
USB_UTMIW_ORIDE
15 Bus override
14 Reserved, use ’0’
USB_UTMIW_J
USB_UTMIW_HSHK
USB_UTMIW_K
USB_UTMIW_RCVSEL
USB_UTMIW_TERMSEL
USB_UTMIW_OPMOD
6
5
4
3
2
Drive chirp J
Reset handshake
Drive chirp K
Receiver select
Termination select
1:0 Operation mode
USB_HOST Bits
Name
Bits Description
USB_HOST_PID
USB_HOST_ISOC
USB_HOST_TX
15:12 USB host packet id
11 Disable NAK packet send
9
USB host send packet
USB_EP_SENDn Bits
Bits Description
Name
USB_EP_SENDnt_TXR
15 Packet ready for transmission
USB_EP_SENDn_ADDR
USB_EP_SENDn_LEN
13:10 Starting location of packet
9:0 Length of packet in bytes (0..1023)
Version: 0.2, 2012-03-16
68