1#[doc = "Register `DAI` reader"]
2pub struct R(crate::R<DAI_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DAI_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DAI_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DAI_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `DAI` reader - Index (n) of device address (see DAB\\[n\\]
17and DAP\\[n\\]) that obtained an address match."]
18pub type DAI_R = crate::FieldReader<u8, u8>;
19impl R {
20 #[doc = "Bits 0:2 - Index (n) of device address (see DAB\\[n\\]
21and DAP\\[n\\]) that obtained an address match."]
22 #[inline(always)]
23 pub fn dai(&self) -> DAI_R {
24 DAI_R::new((self.bits & 7) as u8)
25 }
26}
27#[doc = "Device address match index.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dai](index.html) module"]
28pub struct DAI_SPEC;
29impl crate::RegisterSpec for DAI_SPEC {
30 type Ux = u32;
31}
32#[doc = "`read()` method returns [dai::R](R) reader structure"]
33impl crate::Readable for DAI_SPEC {
34 type Reader = R;
35}
36#[doc = "`reset()` method sets DAI to value 0"]
37impl crate::Resettable for DAI_SPEC {
38 #[inline(always)]
39 fn reset_value() -> Self::Ux {
40 0
41 }
42}