# ucause.rs - source
Source of the Rust file `/home/runner/.cargo/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/register/ucause.rs`.
Keywords: rust, rustlang, rust-lang

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17

    //! ucause register

    /// ucause register
    #[derive(Clone, Copy, Debug)]
    pub struct Ucause {
        bits: usize,
    }

    impl Ucause {
        /// Returns the contents of the register as raw bits
        #[inline]
        pub fn bits(&self) -> usize {
            self.bits
        }
    }

    read_csr_as!(Ucause, 0x042, __read_ucause);