Skip to content

Commit

Permalink
P4: JPEG+INT
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Apr 1, 2024
1 parent 48864e0 commit 9b948e7
Show file tree
Hide file tree
Showing 36 changed files with 3,219 additions and 4,042 deletions.
12 changes: 6 additions & 6 deletions esp32p4/src/i3c_mst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct RegisterBlock {
int_clr: INT_CLR,
int_raw: INT_RAW,
int_st: INT_ST,
int_st_ena: INT_ST_ENA,
int_ena: INT_ENA,
_reserved10: [u8; 0x04],
reset_ctrl: RESET_CTRL,
buffer_status_level: BUFFER_STATUS_LEVEL,
Expand Down Expand Up @@ -92,8 +92,8 @@ impl RegisterBlock {
}
#[doc = "0x3c - The Interrupt status will be updated in INTR_STATUS register if corresponding Status Enable bit set."]
#[inline(always)]
pub const fn int_st_ena(&self) -> &INT_ST_ENA {
&self.int_st_ena
pub const fn int_ena(&self) -> &INT_ENA {
&self.int_ena
}
#[doc = "0x44 - NA"]
#[inline(always)]
Expand Down Expand Up @@ -262,10 +262,10 @@ pub mod int_raw;
pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
#[doc = "NA"]
pub mod int_st;
#[doc = "INT_ST_ENA (rw) register accessor: The Interrupt status will be updated in INTR_STATUS register if corresponding Status Enable bit set.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_st_ena::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_st_ena::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_st_ena`] module"]
pub type INT_ST_ENA = crate::Reg<int_st_ena::INT_ST_ENA_SPEC>;
#[doc = "INT_ENA (rw) register accessor: The Interrupt status will be updated in INTR_STATUS register if corresponding Status Enable bit set.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_ena::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_ena::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_ena`] module"]
pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
#[doc = "The Interrupt status will be updated in INTR_STATUS register if corresponding Status Enable bit set."]
pub mod int_st_ena;
pub mod int_ena;
#[doc = "RESET_CTRL (rw) register accessor: NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`reset_ctrl::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`reset_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@reset_ctrl`] module"]
pub type RESET_CTRL = crate::Reg<reset_ctrl::RESET_CTRL_SPEC>;
#[doc = "NA"]
Expand Down
130 changes: 65 additions & 65 deletions esp32p4/src/i3c_mst/int_clr.rs
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
#[doc = "Register `INT_CLR` writer"]
pub type W = crate::W<INT_CLR_SPEC>;
#[doc = "Field `TX_DATA_BUF_THLD_INT_CLR` writer - NA"]
pub type TX_DATA_BUF_THLD_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RX_DATA_BUF_THLD_INT_CLR` writer - NA"]
pub type RX_DATA_BUF_THLD_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `IBI_STATUS_THLD_INT_CLR` writer - NA"]
pub type IBI_STATUS_THLD_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CMD_BUF_EMPTY_THLD_INT_CLR` writer - NA"]
pub type CMD_BUF_EMPTY_THLD_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESP_READY_INT_CLR` writer - NA"]
pub type RESP_READY_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NXT_CMD_REQ_ERR_INT_CLR` writer - NA"]
pub type NXT_CMD_REQ_ERR_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TRANSFER_ERR_INT_CLR` writer - NA"]
pub type TRANSFER_ERR_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TRANSFER_COMPLETE_INT_CLR` writer - NA"]
pub type TRANSFER_COMPLETE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `COMMAND_DONE_INT_CLR` writer - NA"]
pub type COMMAND_DONE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DETECT_START_INT_CLR` writer - NA"]
pub type DETECT_START_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESP_BUF_OVF_INT_CLR` writer - NA"]
pub type RESP_BUF_OVF_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `IBI_DATA_BUF_OVF_INT_CLR` writer - NA"]
pub type IBI_DATA_BUF_OVF_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `IBI_STATUS_BUF_OVF_INT_CLR` writer - NA"]
pub type IBI_STATUS_BUF_OVF_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `IBI_HANDLE_DONE_INT_CLR` writer - NA"]
pub type IBI_HANDLE_DONE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `IBI_DETECT_INT_CLR` writer - NA"]
pub type IBI_DETECT_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CMD_CCC_MISMATCH_INT_CLR` writer - NA"]
pub type CMD_CCC_MISMATCH_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TX_DATA_BUF_THLD` writer - NA"]
pub type TX_DATA_BUF_THLD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `RX_DATA_BUF_THLD` writer - NA"]
pub type RX_DATA_BUF_THLD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IBI_STATUS_THLD` writer - NA"]
pub type IBI_STATUS_THLD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `CMD_BUF_EMPTY_THLD` writer - NA"]
pub type CMD_BUF_EMPTY_THLD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `RESP_READY` writer - NA"]
pub type RESP_READY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `NXT_CMD_REQ_ERR` writer - NA"]
pub type NXT_CMD_REQ_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `TRANSFER_ERR` writer - NA"]
pub type TRANSFER_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `TRANSFER_COMPLETE` writer - NA"]
pub type TRANSFER_COMPLETE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `COMMAND_DONE` writer - NA"]
pub type COMMAND_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `DETECT_START` writer - NA"]
pub type DETECT_START_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `RESP_BUF_OVF` writer - NA"]
pub type RESP_BUF_OVF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IBI_DATA_BUF_OVF` writer - NA"]
pub type IBI_DATA_BUF_OVF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IBI_STATUS_BUF_OVF` writer - NA"]
pub type IBI_STATUS_BUF_OVF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IBI_HANDLE_DONE` writer - NA"]
pub type IBI_HANDLE_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `IBI_DETECT` writer - NA"]
pub type IBI_DETECT_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[doc = "Field `CMD_CCC_MISMATCH` writer - NA"]
pub type CMD_CCC_MISMATCH_W<'a, REG> = crate::BitWriter1C<'a, REG>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
Expand All @@ -42,98 +42,98 @@ impl W {
#[doc = "Bit 0 - NA"]
#[inline(always)]
#[must_use]
pub fn tx_data_buf_thld_int_clr(&mut self) -> TX_DATA_BUF_THLD_INT_CLR_W<INT_CLR_SPEC> {
TX_DATA_BUF_THLD_INT_CLR_W::new(self, 0)
pub fn tx_data_buf_thld(&mut self) -> TX_DATA_BUF_THLD_W<INT_CLR_SPEC> {
TX_DATA_BUF_THLD_W::new(self, 0)
}
#[doc = "Bit 1 - NA"]
#[inline(always)]
#[must_use]
pub fn rx_data_buf_thld_int_clr(&mut self) -> RX_DATA_BUF_THLD_INT_CLR_W<INT_CLR_SPEC> {
RX_DATA_BUF_THLD_INT_CLR_W::new(self, 1)
pub fn rx_data_buf_thld(&mut self) -> RX_DATA_BUF_THLD_W<INT_CLR_SPEC> {
RX_DATA_BUF_THLD_W::new(self, 1)
}
#[doc = "Bit 2 - NA"]
#[inline(always)]
#[must_use]
pub fn ibi_status_thld_int_clr(&mut self) -> IBI_STATUS_THLD_INT_CLR_W<INT_CLR_SPEC> {
IBI_STATUS_THLD_INT_CLR_W::new(self, 2)
pub fn ibi_status_thld(&mut self) -> IBI_STATUS_THLD_W<INT_CLR_SPEC> {
IBI_STATUS_THLD_W::new(self, 2)
}
#[doc = "Bit 3 - NA"]
#[inline(always)]
#[must_use]
pub fn cmd_buf_empty_thld_int_clr(&mut self) -> CMD_BUF_EMPTY_THLD_INT_CLR_W<INT_CLR_SPEC> {
CMD_BUF_EMPTY_THLD_INT_CLR_W::new(self, 3)
pub fn cmd_buf_empty_thld(&mut self) -> CMD_BUF_EMPTY_THLD_W<INT_CLR_SPEC> {
CMD_BUF_EMPTY_THLD_W::new(self, 3)
}
#[doc = "Bit 4 - NA"]
#[inline(always)]
#[must_use]
pub fn resp_ready_int_clr(&mut self) -> RESP_READY_INT_CLR_W<INT_CLR_SPEC> {
RESP_READY_INT_CLR_W::new(self, 4)
pub fn resp_ready(&mut self) -> RESP_READY_W<INT_CLR_SPEC> {
RESP_READY_W::new(self, 4)
}
#[doc = "Bit 5 - NA"]
#[inline(always)]
#[must_use]
pub fn nxt_cmd_req_err_int_clr(&mut self) -> NXT_CMD_REQ_ERR_INT_CLR_W<INT_CLR_SPEC> {
NXT_CMD_REQ_ERR_INT_CLR_W::new(self, 5)
pub fn nxt_cmd_req_err(&mut self) -> NXT_CMD_REQ_ERR_W<INT_CLR_SPEC> {
NXT_CMD_REQ_ERR_W::new(self, 5)
}
#[doc = "Bit 6 - NA"]
#[inline(always)]
#[must_use]
pub fn transfer_err_int_clr(&mut self) -> TRANSFER_ERR_INT_CLR_W<INT_CLR_SPEC> {
TRANSFER_ERR_INT_CLR_W::new(self, 6)
pub fn transfer_err(&mut self) -> TRANSFER_ERR_W<INT_CLR_SPEC> {
TRANSFER_ERR_W::new(self, 6)
}
#[doc = "Bit 7 - NA"]
#[inline(always)]
#[must_use]
pub fn transfer_complete_int_clr(&mut self) -> TRANSFER_COMPLETE_INT_CLR_W<INT_CLR_SPEC> {
TRANSFER_COMPLETE_INT_CLR_W::new(self, 7)
pub fn transfer_complete(&mut self) -> TRANSFER_COMPLETE_W<INT_CLR_SPEC> {
TRANSFER_COMPLETE_W::new(self, 7)
}
#[doc = "Bit 8 - NA"]
#[inline(always)]
#[must_use]
pub fn command_done_int_clr(&mut self) -> COMMAND_DONE_INT_CLR_W<INT_CLR_SPEC> {
COMMAND_DONE_INT_CLR_W::new(self, 8)
pub fn command_done(&mut self) -> COMMAND_DONE_W<INT_CLR_SPEC> {
COMMAND_DONE_W::new(self, 8)
}
#[doc = "Bit 9 - NA"]
#[inline(always)]
#[must_use]
pub fn detect_start_int_clr(&mut self) -> DETECT_START_INT_CLR_W<INT_CLR_SPEC> {
DETECT_START_INT_CLR_W::new(self, 9)
pub fn detect_start(&mut self) -> DETECT_START_W<INT_CLR_SPEC> {
DETECT_START_W::new(self, 9)
}
#[doc = "Bit 10 - NA"]
#[inline(always)]
#[must_use]
pub fn resp_buf_ovf_int_clr(&mut self) -> RESP_BUF_OVF_INT_CLR_W<INT_CLR_SPEC> {
RESP_BUF_OVF_INT_CLR_W::new(self, 10)
pub fn resp_buf_ovf(&mut self) -> RESP_BUF_OVF_W<INT_CLR_SPEC> {
RESP_BUF_OVF_W::new(self, 10)
}
#[doc = "Bit 11 - NA"]
#[inline(always)]
#[must_use]
pub fn ibi_data_buf_ovf_int_clr(&mut self) -> IBI_DATA_BUF_OVF_INT_CLR_W<INT_CLR_SPEC> {
IBI_DATA_BUF_OVF_INT_CLR_W::new(self, 11)
pub fn ibi_data_buf_ovf(&mut self) -> IBI_DATA_BUF_OVF_W<INT_CLR_SPEC> {
IBI_DATA_BUF_OVF_W::new(self, 11)
}
#[doc = "Bit 12 - NA"]
#[inline(always)]
#[must_use]
pub fn ibi_status_buf_ovf_int_clr(&mut self) -> IBI_STATUS_BUF_OVF_INT_CLR_W<INT_CLR_SPEC> {
IBI_STATUS_BUF_OVF_INT_CLR_W::new(self, 12)
pub fn ibi_status_buf_ovf(&mut self) -> IBI_STATUS_BUF_OVF_W<INT_CLR_SPEC> {
IBI_STATUS_BUF_OVF_W::new(self, 12)
}
#[doc = "Bit 13 - NA"]
#[inline(always)]
#[must_use]
pub fn ibi_handle_done_int_clr(&mut self) -> IBI_HANDLE_DONE_INT_CLR_W<INT_CLR_SPEC> {
IBI_HANDLE_DONE_INT_CLR_W::new(self, 13)
pub fn ibi_handle_done(&mut self) -> IBI_HANDLE_DONE_W<INT_CLR_SPEC> {
IBI_HANDLE_DONE_W::new(self, 13)
}
#[doc = "Bit 14 - NA"]
#[inline(always)]
#[must_use]
pub fn ibi_detect_int_clr(&mut self) -> IBI_DETECT_INT_CLR_W<INT_CLR_SPEC> {
IBI_DETECT_INT_CLR_W::new(self, 14)
pub fn ibi_detect(&mut self) -> IBI_DETECT_W<INT_CLR_SPEC> {
IBI_DETECT_W::new(self, 14)
}
#[doc = "Bit 15 - NA"]
#[inline(always)]
#[must_use]
pub fn cmd_ccc_mismatch_int_clr(&mut self) -> CMD_CCC_MISMATCH_INT_CLR_W<INT_CLR_SPEC> {
CMD_CCC_MISMATCH_INT_CLR_W::new(self, 15)
pub fn cmd_ccc_mismatch(&mut self) -> CMD_CCC_MISMATCH_W<INT_CLR_SPEC> {
CMD_CCC_MISMATCH_W::new(self, 15)
}
}
#[doc = "NA\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
Expand All @@ -145,7 +145,7 @@ impl crate::RegisterSpec for INT_CLR_SPEC {
impl crate::Writable for INT_CLR_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xffff;
}
#[doc = "`reset()` method sets INT_CLR to value 0"]
impl crate::Resettable for INT_CLR_SPEC {
Expand Down
Loading

0 comments on commit 9b948e7

Please sign in to comment.