1234567891011121314151617181920212223 |
- //! 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);
- write_csr!(0x042, __write_ucause);
- /// Writes the CSR
- pub unsafe fn write(bits: usize) {
- _write(bits)
- }
|