|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
USB FS / HS register window (device-mode subset). More...
#include <ra8_usb_regs.h>
Data Fields | |
| volatile uint16_t | SYSCFG |
| +0x000 System Configuration. | |
| volatile uint16_t | BUSWAIT |
| +0x002 CPU bus wait. | |
| volatile uint16_t | SYSSTS0 |
| +0x004 System Status 0. | |
| volatile uint16_t | _r0 |
| +0x006 Reserved. | |
| volatile uint16_t | DVSTCTR0 |
| +0x008 Device State Control. | |
| volatile uint16_t | _r1 [k_ra8_usb_pad_5] |
| Reserved. | |
| volatile uint16_t | CFIFO |
| +0x014 Control FIFO data port. | |
| volatile uint16_t | _r2 |
| +0x016 Reserved. | |
| volatile uint16_t | D0FIFO |
| +0x018 DMA FIFO 0 data port. | |
| volatile uint16_t | _r3 |
| +0x01A Reserved. | |
| volatile uint16_t | D1FIFO |
| +0x01C DMA FIFO 1 data port. | |
| volatile uint16_t | _r4 |
| +0x01E Reserved. | |
| volatile uint16_t | CFIFOSEL |
| +0x020 Control FIFO select. | |
| volatile uint16_t | CFIFOCTR |
| +0x022 Control FIFO control. | |
| volatile uint16_t | _r5 [k_ra8_usb_pad_2] |
| Reserved. | |
| volatile uint16_t | D0FIFOSEL |
| +0x028 DMA FIFO 0 select. | |
| volatile uint16_t | D0FIFOCTR |
| +0x02A DMA FIFO 0 control. | |
| volatile uint16_t | D1FIFOSEL |
| +0x02C DMA FIFO 1 select. | |
| volatile uint16_t | D1FIFOCTR |
| +0x02E DMA FIFO 1 control. | |
| volatile uint16_t | INTENB0 |
| +0x030 Interrupt Enable 0. | |
| volatile uint16_t | INTENB1 |
| +0x032 Interrupt Enable 1. | |
| volatile uint16_t | _r6 |
| +0x034 Reserved. | |
| volatile uint16_t | BRDYENB |
| +0x036 BRDY Interrupt Enable. | |
| volatile uint16_t | NRDYENB |
| +0x038 NRDY Interrupt Enable. | |
| volatile uint16_t | BEMPENB |
| +0x03A BEMP Interrupt Enable. | |
| volatile uint16_t | SOFCFG |
| +0x03C SOF Output Configuration. | |
| volatile uint16_t | _r7 |
| +0x03E Reserved. | |
| volatile uint16_t | INTSTS0 |
| +0x040 Interrupt Status 0. | |
| volatile uint16_t | INTSTS1 |
| +0x042 Interrupt Status 1. | |
| volatile uint16_t | _r8 |
| +0x044 Reserved. | |
| volatile uint16_t | BRDYSTS |
| +0x046 BRDY Interrupt Status. | |
| volatile uint16_t | NRDYSTS |
| +0x048 NRDY Interrupt Status. | |
| volatile uint16_t | BEMPSTS |
| +0x04A BEMP Interrupt Status. | |
| volatile uint16_t | FRMNUM |
| +0x04C Frame Number. | |
| volatile uint16_t | _r9 |
| +0x04E Reserved. | |
| volatile uint16_t | USBADDR |
| +0x050 USB Address. | |
| volatile uint16_t | _ra |
| +0x052 Reserved. | |
| volatile uint16_t | USBREQ |
| +0x054 USB Request type/bRequest. | |
| volatile uint16_t | USBVAL |
| +0x056 USB Request wValue. | |
| volatile uint16_t | USBINDX |
| +0x058 USB Request wIndex. | |
| volatile uint16_t | USBLENG |
| +0x05A USB Request wLength. | |
| volatile uint16_t | DCPCFG |
| +0x05C DCP Configuration. | |
| volatile uint16_t | DCPMAXP |
| +0x05E DCP Max Packet. | |
| volatile uint16_t | DCPCTR |
| +0x060 DCP Control. | |
| volatile uint16_t | _rb |
| +0x062 Reserved. | |
| volatile uint16_t | PIPESEL |
| +0x064 Pipe window select. | |
| volatile uint16_t | _rc |
| +0x066 Reserved. | |
| volatile uint16_t | PIPECFG |
| +0x068 Selected pipe config. | |
| volatile uint16_t | PIPEBUF |
| +0x06A Selected pipe buffer. | |
| volatile uint16_t | PIPEMAXP |
| +0x06C Selected pipe max packet. | |
| volatile uint16_t | PIPEPERI |
| +0x06E Selected pipe period. | |
| volatile uint16_t | PIPECTR [k_ra8_usb_pipectr_count] |
| +0x070 PIPE1..9 ctrl. | |
USB FS / HS register window (device-mode subset).
Modelled after the FSP/CMSIS R_USB_FS0_Type and R_USB_HS0_Type register layouts, restricted to the offsets the device-mode driver actually touches. Trailing HS-only registers (PHYSET, LPCTRL, LPSTS, BCCTRL, ...) are intentionally omitted; the driver does not enable HS-PHY power-down sequences yet.
Definition at line 126 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r0 |
+0x006 Reserved.
Definition at line 130 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r1[k_ra8_usb_pad_5] |
Reserved.
Definition at line 132 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r2 |
+0x016 Reserved.
Definition at line 134 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r3 |
+0x01A Reserved.
Definition at line 136 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r4 |
+0x01E Reserved.
Definition at line 138 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r5[k_ra8_usb_pad_2] |
Reserved.
Definition at line 141 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r6 |
+0x034 Reserved.
Definition at line 148 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r7 |
+0x03E Reserved.
Definition at line 153 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r8 |
+0x044 Reserved.
Definition at line 156 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_r9 |
+0x04E Reserved.
Definition at line 161 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_ra |
+0x052 Reserved.
Definition at line 163 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_rb |
+0x062 Reserved.
Definition at line 171 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::_rc |
+0x066 Reserved.
Definition at line 173 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::BEMPENB |
+0x03A BEMP Interrupt Enable.
Definition at line 151 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_data_out(), internal_host_ctrl_status(), internal_host_init_defaults(), internal_pipe_arm_irq(), priv_pipe_quiesce(), priv_usb_init_common(), ra8_usb_device_deinit(), ra8_usb_host_bulk_out(), and ra8_usb_host_deinit().
| volatile uint16_t r_usb_regs_t::BEMPSTS |
+0x04A BEMP Interrupt Status.
Definition at line 159 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_data_out(), internal_host_ctrl_setup(), internal_host_ctrl_status(), internal_irq_complete_in(), internal_irq_recover_in_nak(), internal_pipe_finalize(), ra8_usb_device_busreset_rearm(), ra8_usb_host_bulk_out(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::BRDYENB |
+0x036 BRDY Interrupt Enable.
Definition at line 149 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_data_arm(), internal_host_ctrl_status(), internal_host_init_defaults(), internal_pipe_arm_irq(), priv_pipe_quiesce(), priv_usb_init_common(), ra8_usb_dcp_out_arm(), ra8_usb_dcp_out_read(), ra8_usb_device_deinit(), ra8_usb_host_bulk_in(), and ra8_usb_host_deinit().
| volatile uint16_t r_usb_regs_t::BRDYSTS |
+0x046 BRDY Interrupt Status.
Definition at line 157 of file ra8_usb_regs.h.
Referenced by internal_host_bulk_rx_packet(), internal_host_ctrl_data_in(), internal_host_ctrl_setup(), internal_host_ctrl_status(), internal_host_dcp_in_wait(), internal_pipe_finalize(), priv_handle_ctrl_out_data(), ra8_usb_dcp_out_arm(), ra8_usb_dcp_out_read(), ra8_usb_device_busreset_rearm(), ra8_usb_host_pipe_setup(), and ra8_usb_queue_out().
| volatile uint16_t r_usb_regs_t::BUSWAIT |
+0x002 CPU bus wait.
Definition at line 128 of file ra8_usb_regs.h.
Referenced by priv_usbhs_phy_bringup().
| volatile uint16_t r_usb_regs_t::CFIFO |
+0x014 Control FIFO data port.
Definition at line 133 of file ra8_usb_regs.h.
Referenced by internal_dcp_in_drain(), internal_fifo_read_hs_head(), internal_fifo_read_hs_tail(), internal_fifo_write_hs_head(), priv_fifo_read(), and priv_fifo_write().
| volatile uint16_t r_usb_regs_t::CFIFOCTR |
+0x022 Control FIFO control.
Definition at line 140 of file ra8_usb_regs.h.
Referenced by internal_dcp_in_drain(), internal_dcp_in_zlp(), internal_dcp_reset_defaults(), internal_host_bulk_rx_packet(), internal_host_ctrl_data_arm(), internal_host_ctrl_data_in(), internal_host_ctrl_data_out(), internal_host_ctrl_status(), priv_dcp_push_chunk(), priv_wait_frdy(), ra8_usb_dcp_in_data(), ra8_usb_dcp_out_arm(), ra8_usb_dcp_out_read(), ra8_usb_queue_in(), and ra8_usb_queue_out().
| volatile uint16_t r_usb_regs_t::CFIFOSEL |
+0x020 Control FIFO select.
Definition at line 139 of file ra8_usb_regs.h.
Referenced by internal_dcp_in_drain(), internal_host_init_defaults(), priv_dvst_default_state(), priv_fifo_read(), priv_fifo_write(), priv_select_cfifo(), and priv_usb_init_common().
| volatile uint16_t r_usb_regs_t::D0FIFO |
+0x018 DMA FIFO 0 data port.
Definition at line 135 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::D0FIFOCTR |
+0x02A DMA FIFO 0 control.
Definition at line 143 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::D0FIFOSEL |
+0x028 DMA FIFO 0 select.
Definition at line 142 of file ra8_usb_regs.h.
Referenced by internal_host_init_defaults(), and priv_usb_init_common().
| volatile uint16_t r_usb_regs_t::D1FIFO |
+0x01C DMA FIFO 1 data port.
Definition at line 137 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::D1FIFOCTR |
+0x02E DMA FIFO 1 control.
Definition at line 145 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::D1FIFOSEL |
+0x02C DMA FIFO 1 select.
Definition at line 144 of file ra8_usb_regs.h.
Referenced by internal_host_init_defaults(), and priv_usb_init_common().
| volatile uint16_t r_usb_regs_t::DCPCFG |
+0x05C DCP Configuration.
Definition at line 168 of file ra8_usb_regs.h.
Referenced by internal_dcp_reset_defaults(), internal_host_ctrl_data_out(), internal_host_ctrl_status(), internal_host_init_defaults(), and priv_usb_init_common().
| volatile uint16_t r_usb_regs_t::DCPCTR |
+0x060 DCP Control.
Definition at line 170 of file ra8_usb_regs.h.
Referenced by internal_dvst_dispatch_if_new(), internal_host_ctrl_data_arm(), internal_host_ctrl_data_out(), internal_host_ctrl_setup(), internal_host_ctrl_status(), internal_host_dcp_in_wait(), internal_host_init_defaults(), internal_host_setup_wait(), priv_dcp_pid(), priv_dvst_default_state(), priv_usb_init_common(), ra8_usb_control_response(), ra8_usb_dcp_in_data(), ra8_usb_dcp_out_arm(), and ra8_usb_host_setup_request().
| volatile uint16_t r_usb_regs_t::DCPMAXP |
+0x05E DCP Max Packet.
Definition at line 169 of file ra8_usb_regs.h.
Referenced by internal_dcp_reset_defaults(), internal_host_ctrl_setup(), internal_host_data_phase(), internal_host_init_defaults(), priv_usb_init_common(), and ra8_usb_host_set_target().
| volatile uint16_t r_usb_regs_t::DVSTCTR0 |
+0x008 Device State Control.
Definition at line 131 of file ra8_usb_regs.h.
Referenced by priv_host_program_devadd(), priv_irq_dvst_prelude(), ra8_usb_host_bus_reset(), ra8_usb_host_deinit(), ra8_usb_host_init(), and ra8_usb_host_set_uact().
| volatile uint16_t r_usb_regs_t::FRMNUM |
+0x04C Frame Number.
Definition at line 160 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::INTENB0 |
+0x030 Interrupt Enable 0.
Definition at line 146 of file ra8_usb_regs.h.
Referenced by intenb0_watchdog_entry(), internal_host_init_defaults(), priv_dvst_default_state(), priv_usb_init_common(), ra8_usb_device_busreset_rearm(), ra8_usb_device_deinit(), and ra8_usb_host_deinit().
| volatile uint16_t r_usb_regs_t::INTENB1 |
+0x032 Interrupt Enable 1.
Definition at line 147 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_setup(), internal_host_init_defaults(), priv_usb_init_common(), ra8_usb_device_deinit(), and ra8_usb_host_deinit().
| volatile uint16_t r_usb_regs_t::INTSTS0 |
+0x040 Interrupt Status 0.
Definition at line 154 of file ra8_usb_regs.h.
Referenced by internal_ctrt_handle_valid(), internal_dvst_dispatch_if_new(), priv_dvst_default_state(), priv_usb_init_common(), ra8_usb_clear_status(), ra8_usb_dispatch(), ra8_usb_get_device_state(), ra8_usb_get_status(), ra8_usb_intsts0_snapshot(), ra8_usb_read_setup_if_valid(), and ra8_usb_read_setup_unconditional().
| volatile uint16_t r_usb_regs_t::INTSTS1 |
+0x042 Interrupt Status 1.
Definition at line 155 of file ra8_usb_regs.h.
Referenced by internal_ack_spurious(), and internal_host_setup_wait().
| volatile uint16_t r_usb_regs_t::NRDYENB |
+0x038 NRDY Interrupt Enable.
Definition at line 150 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_data_arm(), internal_host_init_defaults(), priv_pipe_quiesce(), priv_usb_init_common(), ra8_usb_device_deinit(), and ra8_usb_host_deinit().
| volatile uint16_t r_usb_regs_t::NRDYSTS |
+0x048 NRDY Interrupt Status.
Definition at line 158 of file ra8_usb_regs.h.
Referenced by internal_host_ctrl_status(), internal_host_dcp_in_wait(), ra8_usb_device_busreset_rearm(), ra8_usb_host_pipe_setup(), and ra8_usb_rearm_out_pipe().
| volatile uint16_t r_usb_regs_t::PIPEBUF |
+0x06A Selected pipe buffer.
Definition at line 175 of file ra8_usb_regs.h.
Referenced by ra8_usb_configure_endpoint(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::PIPECFG |
+0x068 Selected pipe config.
Definition at line 174 of file ra8_usb_regs.h.
Referenced by ra8_usb_configure_endpoint(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::PIPECTR[k_ra8_usb_pipectr_count] |
+0x070 PIPE1..9 ctrl.
Definition at line 178 of file ra8_usb_regs.h.
Referenced by internal_host_wait_pipe(), internal_irq_recover_in_nak(), internal_pipe_finalize(), priv_pipe_pid(), ra8_usb_device_busreset_rearm(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::PIPEMAXP |
+0x06C Selected pipe max packet.
Definition at line 176 of file ra8_usb_regs.h.
Referenced by ra8_usb_configure_endpoint(), ra8_usb_host_bulk_in(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::PIPEPERI |
+0x06E Selected pipe period.
Definition at line 177 of file ra8_usb_regs.h.
Referenced by ra8_usb_configure_endpoint(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::PIPESEL |
+0x064 Pipe window select.
Definition at line 172 of file ra8_usb_regs.h.
Referenced by ra8_usb_configure_endpoint(), ra8_usb_host_bulk_in(), and ra8_usb_host_pipe_setup().
| volatile uint16_t r_usb_regs_t::SOFCFG |
+0x03C SOF Output Configuration.
Definition at line 152 of file ra8_usb_regs.h.
| volatile uint16_t r_usb_regs_t::SYSCFG |
+0x000 System Configuration.
Definition at line 127 of file ra8_usb_regs.h.
Referenced by demo_worker_capture_echo_probes(), internal_host_hs_bringup(), internal_usbhs_enable_syscfg(), priv_usbfs_module_bringup(), priv_usbhs_phy_bringup(), ra8_usb_device_attach(), ra8_usb_device_deinit(), ra8_usb_device_init(), ra8_usb_host_deinit(), ra8_usb_host_init(), and ux_dcd_ra8_usb_initialize().
| volatile uint16_t r_usb_regs_t::SYSSTS0 |
+0x004 System Status 0.
Definition at line 129 of file ra8_usb_regs.h.
Referenced by ra8_usb_device_attach(), and ra8_usb_host_line_state().
| volatile uint16_t r_usb_regs_t::USBADDR |
+0x050 USB Address.
Definition at line 162 of file ra8_usb_regs.h.
Referenced by internal_host_init_defaults(), and ra8_usb_set_address().
| volatile uint16_t r_usb_regs_t::USBINDX |
+0x058 USB Request wIndex.
Definition at line 166 of file ra8_usb_regs.h.
Referenced by internal_ctrt_handle_valid(), internal_host_ctrl_setup(), priv_dvst_default_state(), ra8_usb_host_setup_request(), ra8_usb_read_setup_if_valid(), and ra8_usb_read_setup_unconditional().
| volatile uint16_t r_usb_regs_t::USBLENG |
+0x05A USB Request wLength.
Definition at line 167 of file ra8_usb_regs.h.
Referenced by internal_ctrt_handle_valid(), internal_host_ctrl_setup(), priv_dvst_default_state(), ra8_usb_host_setup_request(), ra8_usb_read_setup_if_valid(), and ra8_usb_read_setup_unconditional().
| volatile uint16_t r_usb_regs_t::USBREQ |
+0x054 USB Request type/bRequest.
Definition at line 164 of file ra8_usb_regs.h.
Referenced by internal_ctrt_handle_valid(), internal_host_ctrl_setup(), priv_dvst_default_state(), ra8_usb_host_setup_request(), ra8_usb_read_setup_if_valid(), and ra8_usb_read_setup_unconditional().
| volatile uint16_t r_usb_regs_t::USBVAL |
+0x056 USB Request wValue.
Definition at line 165 of file ra8_usb_regs.h.
Referenced by internal_ctrt_handle_valid(), internal_host_ctrl_setup(), priv_dvst_default_state(), ra8_usb_host_setup_request(), ra8_usb_read_setup_if_valid(), and ra8_usb_read_setup_unconditional().