From ed612cb8a297b1baa31ec88ad263cc47cbf46108 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 30 May 2022 00:58:22 +0200 Subject: [PATCH] usb: unify StatRx, StatTx. --- data/registers/usb_v1.yaml | 29 +++++++---------------------- data/registers/usb_v2.yaml | 29 +++++++---------------------- 2 files changed, 14 insertions(+), 44 deletions(-) diff --git a/data/registers/usb_v1.yaml b/data/registers/usb_v1.yaml index 259b17f..db68627 100644 --- a/data/registers/usb_v1.yaml +++ b/data/registers/usb_v1.yaml @@ -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 diff --git a/data/registers/usb_v2.yaml b/data/registers/usb_v2.yaml index f5d20de..f326227 100644 --- a/data/registers/usb_v2.yaml +++ b/data/registers/usb_v2.yaml @@ -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