d1_pac/dsp_msgbox/msgbox/
msgbox_msg_status.rs1#[doc = "Register `msgbox_msg_status%s` reader"]
2pub type R = crate::R<MSGBOX_MSG_STATUS_SPEC>;
3#[doc = "Field `msg_num` reader - Message Number\n\nNumber of unread messages in the message queue. Here, limit to eight messages per message queue."]
4pub type MSG_NUM_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:3 - Message Number\n\nNumber of unread messages in the message queue. Here, limit to eight messages per message queue."]
7 #[inline(always)]
8 pub fn msg_num(&self) -> MSG_NUM_R {
9 MSG_NUM_R::new((self.bits & 0x0f) as u8)
10 }
11}
12#[doc = "Message Box Message Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msgbox_msg_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct MSGBOX_MSG_STATUS_SPEC;
14impl crate::RegisterSpec for MSGBOX_MSG_STATUS_SPEC {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`msgbox_msg_status::R`](R) reader structure"]
18impl crate::Readable for MSGBOX_MSG_STATUS_SPEC {}
19#[doc = "`reset()` method sets msgbox_msg_status%s to value 0"]
20impl crate::Resettable for MSGBOX_MSG_STATUS_SPEC {
21 const RESET_VALUE: Self::Ux = 0;
22}