Line 42... |
Line 42... |
`define SC_FRAME_NUM_MSP 5'h15
|
`define SC_FRAME_NUM_MSP 5'h15
|
`define SC_FRAME_NUM_LSP 5'h16
|
`define SC_FRAME_NUM_LSP 5'h16
|
`define SCREG_BUFFER_LEN 5'h17
|
`define SCREG_BUFFER_LEN 5'h17
|
//SCRXStatusRegIndices
|
//SCRXStatusRegIndices
|
`define NAK_SET_MASK 8'h10
|
`define NAK_SET_MASK 8'h10
|
//`define CRC_ERROR_BIT 0
|
`define SC_CRC_ERROR_BIT 0
|
//`define BIT_STUFF_ERROR_BIT 1
|
`define SC_BIT_STUFF_ERROR_BIT 1
|
//`define RX_OVERFLOW_BIT 2
|
`define SC_RX_OVERFLOW_BIT 2
|
//`define RX_TIME_OUT_BIT 3
|
`define SC_RX_TIME_OUT_BIT 3
|
//`define NAK_SENT_BIT 4
|
`define SC_NAK_SENT_BIT 4
|
//`define STALL_SENT_BIT 5
|
`define SC_STALL_SENT_BIT 5
|
//`define ACK_RXED_BIT 6
|
`define SC_ACK_RXED_BIT 6
|
//`define DATA_SEQUENCE_BIT 7
|
`define SC_DATA_SEQUENCE_BIT 7
|
//SCEndPointControlRegIndices
|
//SCEndPointControlRegIndices
|
`define ENDPOINT_ENABLE_BIT 0
|
`define ENDPOINT_ENABLE_BIT 0
|
`define ENDPOINT_READY_BIT 1
|
`define ENDPOINT_READY_BIT 1
|
`define ENDPOINT_OUTDATA_SEQUENCE_BIT 2
|
`define ENDPOINT_OUTDATA_SEQUENCE_BIT 2
|
`define ENDPOINT_SEND_STALL_BIT 3
|
`define ENDPOINT_SEND_STALL_BIT 3
|
Line 63... |
Line 63... |
`define SC_TX_LINE_STATE_LSBIT 1
|
`define SC_TX_LINE_STATE_LSBIT 1
|
`define SC_TX_LINE_STATE_MSBIT 2
|
`define SC_TX_LINE_STATE_MSBIT 2
|
`define SC_DIRECT_CONTROL_BIT 3
|
`define SC_DIRECT_CONTROL_BIT 3
|
`define SC_FULL_SPEED_LINE_POLARITY_BIT 4
|
`define SC_FULL_SPEED_LINE_POLARITY_BIT 4
|
`define SC_FULL_SPEED_LINE_RATE_BIT 5
|
`define SC_FULL_SPEED_LINE_RATE_BIT 5
|
|
`define SC_CONNECT_TO_HOST_BIT 6
|
//SCinterruptRegIndices
|
//SCinterruptRegIndices
|
`define TRANS_DONE_BIT 0
|
`define TRANS_DONE_BIT 0
|
`define RESUME_INT_BIT 1
|
`define RESUME_INT_BIT 1
|
`define RESET_EVENT_BIT 2 //Line has entered reset state or left reset state
|
`define RESET_EVENT_BIT 2 //Line has entered reset state or left reset state
|
`define SOF_RECEIVED_BIT 3
|
`define SOF_RECEIVED_BIT 3
|
`define NAK_SENT_INT_BIT 4
|
`define NAK_SENT_INT_BIT 4
|
|
`define VBUS_DET_INT_BIT 5
|
//TXTransactionTypes
|
//TXTransactionTypes
|
`define SC_SETUP_TRANS 0
|
`define SC_SETUP_TRANS 0
|
`define SC_IN_TRANS 1
|
`define SC_IN_TRANS 1
|
`define SC_OUTDATA_TRANS 2
|
`define SC_OUTDATA_TRANS 2
|
//timeOuts
|
//timeOuts
|
`define SC_RX_PACKET_TOUT 18
|
`define SC_RX_PACKET_TOUT 18
|
|
|
|
//line status reg
|
|
`define VBUS_PRES_BIT 2
|
|
|
`endif //usbSlaveControl_h_vdefined
|
`endif //usbSlaveControl_h_vdefined
|
|
|
No newline at end of file
|
No newline at end of file
|