Skip to content

Commit

Permalink
Added unknown PMD register.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostie314159 committed Oct 30, 2024
1 parent 755e9a1 commit 4c8201d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
13 changes: 12 additions & 1 deletion esp32/src/wifi/tx_slot_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ pub struct TX_SLOT_PARAMETERS {
ht_sig: HT_SIG,
ht_unknown: HT_UNKNOWN,
duration: DURATION,
_reserved_end: [u8; 0x28],
_reserved5: [u8; 0x04],
pmd: PMD,
_reserved_end: [u8; 0x20],
}
impl TX_SLOT_PARAMETERS {
#[doc = "0x00 - PLCP1"]
Expand Down Expand Up @@ -35,6 +37,11 @@ impl TX_SLOT_PARAMETERS {
pub const fn duration(&self) -> &DURATION {
&self.duration
}
#[doc = "0x18 - "]
#[inline(always)]
pub const fn pmd(&self) -> &PMD {
&self.pmd
}
}
#[doc = "PLCP1 (rw) register accessor: PLCP1\n\nYou can [`read`](crate::Reg::read) this register and get [`plcp1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`plcp1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@plcp1`] module"]
pub type PLCP1 = crate::Reg<plcp1::PLCP1_SPEC>;
Expand All @@ -56,3 +63,7 @@ pub mod ht_unknown;
pub type DURATION = crate::Reg<duration::DURATION_SPEC>;
#[doc = "duration of the frame exchange"]
pub mod duration;
#[doc = "PMD (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`pmd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmd`] module"]
pub type PMD = crate::Reg<pmd::PMD_SPEC>;
#[doc = ""]
pub mod pmd;
28 changes: 28 additions & 0 deletions esp32/src/wifi/tx_slot_parameters/pmd.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#[doc = "Register `PMD` reader"]
pub type R = crate::R<PMD_SPEC>;
#[doc = "Register `PMD` writer"]
pub type W = crate::W<PMD_SPEC>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
write!(f, "{}", self.bits())
}
}
impl W {}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`pmd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PMD_SPEC;
impl crate::RegisterSpec for PMD_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`pmd::R`](R) reader structure"]
impl crate::Readable for PMD_SPEC {}
#[doc = "`write(|w| ..)` method takes [`pmd::W`](W) writer structure"]
impl crate::Writable for PMD_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets PMD to value 0"]
impl crate::Resettable for PMD_SPEC {
const RESET_VALUE: u32 = 0;
}
5 changes: 4 additions & 1 deletion esp32/svd/patches/esp32-wifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _add:
size: 32
addressBlock:
offset: 0x0
size: 0x2000
size: 0x2100
usage: registers
registers:

Expand Down Expand Up @@ -315,6 +315,9 @@ WIFI:
description: duration of the frame exchange
addressOffset: 0x10
access: read-write
PMD:
addressOffset: 0x18
access: read-write
CRYPTO_KEY_ENTRY%s:
dim: 16
dimIncrement: 40
Expand Down

0 comments on commit 4c8201d

Please sign in to comment.