v2.0.0
dma_debug.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8#ifndef _HARDWARE_STRUCTS_DMA_DEBUG_H
9#define _HARDWARE_STRUCTS_DMA_DEBUG_H
10
15#include "hardware/address_mapped.h"
16#include "hardware/regs/dma.h"
17
18// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_dma
19//
20// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
21// _REG_(x) will link to the corresponding register in hardware/regs/dma.h.
22//
23// Bit-field descriptions are of the form:
24// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
26typedef struct {
27 _REG_(DMA_CH0_DBG_CTDREQ_OFFSET) // DMA_CH0_DBG_CTDREQ
28 // Read: get channel DREQ counter (i
29 // 0x0000003f [5:0] CH0_DBG_CTDREQ (0x00)
30 io_rw_32 dbg_ctdreq;
31
32 _REG_(DMA_CH0_DBG_TCR_OFFSET) // DMA_CH0_DBG_TCR
33 // Read to get channel TRANS_COUNT reload value, i
34 // 0xffffffff [31:0] CH0_DBG_TCR (0x00000000)
35 io_ro_32 dbg_tcr;
36
37 uint32_t _pad0[14];
38} dma_debug_channel_hw_t;
39
40typedef struct {
41 dma_debug_channel_hw_t ch[16];
42} dma_debug_hw_t;
43
44#define dma_debug_hw ((dma_debug_hw_t *)(DMA_BASE + DMA_CH0_DBG_CTDREQ_OFFSET))
45
46#endif // _HARDWARE_STRUCTS_DMA_DEBUG_H
47
address_mapped.h
dma_debug_channel_hw_t
Definition: dma_debug.h:26
dma_debug_hw_t
Definition: dma_debug.h:40