usb: unify StatRx, StatTx.

This commit is contained in:
Dario Nieuwenhuis 2022-05-30 00:58:22 +02:00
parent 805f86c8cb
commit ed612cb8a2
2 changed files with 14 additions and 44 deletions

View File

@ -114,7 +114,7 @@ fieldset/EPR:
description: STAT_TX
bit_offset: 4
bit_size: 2
enum: STAT_TX
enum: STAT
- name: DTOG_TX
description: DTOG_TX
bit_offset: 6
@ -140,7 +140,7 @@ fieldset/EPR:
description: STAT_RX
bit_offset: 12
bit_size: 2
enum: STAT_RX
enum: STAT
- name: DTOG_RX
description: DTOG_RX
bit_offset: 14
@ -240,33 +240,18 @@ enum/EP_TYPE:
- name: Interrupt
description: Interrupt endpoint
value: 3
enum/STAT_RX:
enum/STAT:
bit_size: 2
variants:
- name: Disabled
description: all reception requests addressed to this endpoint are ignored
description: all requests addressed to this endpoint are ignored
value: 0
- name: Stall
description: the endpoint is stalled and all reception requests result in a STALL handshake
description: the endpoint is stalled and all requests result in a STALL handshake
value: 1
- name: Nak
description: the endpoint is naked and all reception requests result in a NAK handshake
description: the endpoint is naked and all requests result in a NAK handshake
value: 2
- name: Valid
description: this endpoint is enabled for reception
value: 3
enum/STAT_TX:
bit_size: 2
variants:
- name: Disabled
description: all transmission requests addressed to this endpoint are ignored
value: 0
- name: Stall
description: the endpoint is stalled and all transmission requests result in a STALL handshake
value: 1
- name: Nak
description: the endpoint is naked and all transmission requests result in a NAK handshake
value: 2
- name: Valid
description: this endpoint is enabled for transmission
description: this endpoint is enabled, requests are ACKed
value: 3

View File

@ -170,7 +170,7 @@ fieldset/EPR:
description: STAT_TX
bit_offset: 4
bit_size: 2
enum: STAT_TX
enum: STAT
- name: DTOG_TX
description: DTOG_TX
bit_offset: 6
@ -196,7 +196,7 @@ fieldset/EPR:
description: STAT_RX
bit_offset: 12
bit_size: 2
enum: STAT_RX
enum: STAT
- name: DTOG_RX
description: DTOG_RX
bit_offset: 14
@ -338,33 +338,18 @@ enum/SDET:
- name: DCP
description: DCP detected
value: 1
enum/STAT_RX:
enum/STAT:
bit_size: 2
variants:
- name: Disabled
description: all reception requests addressed to this endpoint are ignored
description: all requests addressed to this endpoint are ignored
value: 0
- name: Stall
description: the endpoint is stalled and all reception requests result in a STALL handshake
description: the endpoint is stalled and all requests result in a STALL handshake
value: 1
- name: Nak
description: the endpoint is naked and all reception requests result in a NAK handshake
description: the endpoint is naked and all requests result in a NAK handshake
value: 2
- name: Valid
description: this endpoint is enabled for reception
value: 3
enum/STAT_TX:
bit_size: 2
variants:
- name: Disabled
description: all transmission requests addressed to this endpoint are ignored
value: 0
- name: Stall
description: the endpoint is stalled and all transmission requests result in a STALL handshake
value: 1
- name: Nak
description: the endpoint is naked and all transmission requests result in a NAK handshake
value: 2
- name: Valid
description: this endpoint is enabled for transmission
description: this endpoint is enabled, requests are ACKed
value: 3