v2.0.0
hstx_fifo.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8#ifndef _HARDWARE_STRUCTS_HSTX_FIFO_H
9#define _HARDWARE_STRUCTS_HSTX_FIFO_H
10
15#include "hardware/address_mapped.h"
16#include "hardware/regs/hstx_fifo.h"
17
18// Reference to datasheet: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf#tab-registerlist_hstx_fifo
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/hstx_fifo.h.
22//
23// Bit-field descriptions are of the form:
24// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
26 typedef struct {
27 _REG_(HSTX_FIFO_STAT_OFFSET) // HSTX_FIFO_STAT
28 // FIFO status
29 // 0x00000400 [10] WOF (0) FIFO was written when full
30 // 0x00000200 [9] EMPTY (-)
31 // 0x00000100 [8] FULL (-)
32 // 0x000000ff [7:0] LEVEL (0x00)
33 io_rw_32 stat;
34
35 _REG_(HSTX_FIFO_FIFO_OFFSET) // HSTX_FIFO_FIFO
36 // Write access to FIFO
37 // 0xffffffff [31:0] FIFO (0x00000000)
38 io_wo_32 fifo;
39} hstx_fifo_hw_t;
40
41#define hstx_fifo_hw ((hstx_fifo_hw_t *)HSTX_FIFO_BASE)
42static_assert(sizeof (hstx_fifo_hw_t) == 0x0008, "");
43
44#endif // _HARDWARE_STRUCTS_HSTX_FIFO_H
45
address_mapped.h
hstx_fifo_hw_t
Definition: hstx_fifo.h:26
stat
Definition: stat.h:12